Showing posts with label Batch. Show all posts
Showing posts with label Batch. Show all posts

Tuesday, April 24, 2007

An error has occurred in the script on this page

regsvr32 msscript.ocx
regsvr32 dispex.dll
regsvr32 vbscript.dll

Monday, April 23, 2007

Problem https connexion

Regsvr32 Initpki.dll /s
Regsvr32 Dssenh.dll /s
Regsvr32 Gpkcsp.dll /s
Regsvr32 Sccbase.dll /s
Regsvr32 Slbcsp.dll /s
Regsvr32 Mssip32.dll /s
Regsvr32 Cryptdlg.dll /s
Regsvr32 Softpub.dLL /s
Regsvr32 Wintrust.dll /s
Regsvr32 Rsaenh.dll /s

Sunday, April 1, 2007

Install WinZIP 8.0/9.0 in Silent Mode

ECHO Install WinZIP 8.0/9.0
if not exist "C:\Program Files\WinZip" md "C:\Program Files\WinZip"
echo d|xcopy /E /C /Q /H /K /O /Y "E:\Install\WinZip" "C:\Program Files\WinZip"
"C:\Program Files\WinZip\WINZIP32.EXE" /noqp /notip /autoinstall

Install .NET Framework 1.1 in Silent Mode

ECHO Install .NET Framework 1.1
L:\IE6F\dotnetfx.exe /q:a /c:"install /l /q"

Install MDAC 2.8 in Silent Mode

ECHO Install MDAC 2.8
D:\MDAC28.exe /Q:A /R:N /C:"DASETUP.EXE /Q /N"

Install Internet Explorer 6 SP1 in Silent Mode

ECHO Install Internet Explorer 6 SP1
"D:\ie6setup.exe" /Q:A /R:N /C:"ie6wzd /S:""#e"" /Q:A /R:N"

Install Windows 2000 MUI in Silent Mode

ECHO Install Windows 2000 french MUI
"E:\W2KMUIFR\MUISETUP.exe" /i 0411 0c0a 040c /d 040c /r /s

REM /i Specifies the user interface language(s) to be installed.
REM 0411 Japanese 0c0a Spanish 040c French
REM /d Specifies the default user interface language (applied to all new user accounts and used in places such as the Winlogon screen)
REM /u Specifies the user interface language(s) to be uninstalled
REM /r Specifies that the reboot message should not be displayed
REM /s Specifies that the installation complete message should not be displayed

Install Oracle 8.1.7 in Silent Mode

ECHO Install Oracle 8.1.7
"D:\install\win32\setup.exe" -responsefile "E:\clientappuser.rsp" -silent

REM SETUP.EXE -RESPONSEFILE FILENAME [-SILENT] [-NOWELCOME]
REM FILENAME = Identifies the specific response file
REM -SILENT = Runs Oracle Universal Installer in complete silent mode. The Welcome window is suppressed automatically.
REM -NOWELCOME = Suppresses the Welcome window that appears during installation

Friday, March 30, 2007

How to use cusrmgr.exe

CUsrMgr Ver 1.0 Jan98 by G.Zanzen (c) MCS Central Europe
Sets a random password to a user
usage: -u UserName [-m \\MachineName] \\ default LocalMachine
Resetting Password Function
-p Set to a random password
-P xxx Sets password to xxx
User Functions
-r xxx Renames user to xxx
-d xxx deletes user xxx
Group Functions
-rlg xxx yyy Renames local group xxx to yyy
-rgg xxx yyy Renames global group xxx to yyy
-alg xxx Add user (-u UserName) to local group xxx
-agg xxx Add user (-u UserName) to global group xxx
-dlg xxx deletes user (-u UserName) from local group xxx
-dgg xxx deletes user (-u UserName) from global group xxx
SetProperties Functions
-c xxx sets Comment to xxx
-f xxx sets Full Name to xxx
-U xxx sets UserProfile to xxx
-n xxx sets LogonScript to xxx
-h xxx sets HomeDir to xxx

-H x sets HomeDirDrive to x

+s xxxx sets property xxxx
-s xxxx resets property xxxx
where xxxx can be any of the following properties:
MustChangePassword
CanNotChangePassword
PasswordNeverExpires
AccountDisabled
AccountLockout
RASUser
returns 0 on success

Add User/Group to Localgroup with cusrmgr.exe

copy \\vls-sen-sdc01\netlogon\cusrmgr.exe C:\

C:

REM Add User Mayer Password:P@sSwoRd
net user Mayer P@sSwoRd /add

REM Add User Mayer to Localgroup Administrators
net localgroup administrators Mayer /add

REM Add Group "Domain\GroupName" to Localgroup Administrators
net localgroup administrators Domain\GroupName /add

REM Rename User Administrator to NewAdmin Password:NewPass
cusrmgr -u administrator -r NewAdmin -P NewPass

REM Set User Mayer's password to NewP@sSwoRd
cusrmgr -u Mayer -P NewP@sSwoRd

REM Add User Mayer to Localgroup Administrators
cusrmgr -u Mayer -alg administrators

del C:\cusrmgr.exe
net time \\vls-sen-sdc01 /set /y

 
visitors since March 26 2007
©2007