Network Administrator Knowledgebase


February 27, 2009  7:18 PM

Autoit script that allows to install Autocad 2009 unattended

Michael Khanin Michael Khanin Profile: Michael Khanin

This is an Autoit script that allows to install Autocad 2009 unattended. Create a file Acad2009_Custome.au3 with the following content:

If WinExists(@ScriptName) Then Exit
AutoItWinSetTitle(@ScriptName)
AutoItSetOption(“TrayIconDebug”, 1)
;AutoItSetOption(“SendKeyDelay”, 10)

global $title=’AutoCAD 2009′, $ScriptDir=’D:\ins\Apps\Acad2009′, $file=’setup.exe’
Run ( $ScriptDir&’\’&$file,””, @SW_HIDE )

WinWait(“AutoCAD 2009″, “Perform a standard installation on this workstation”)
controlclick($title, “”, “ListBox2″)

WinWaitActive($title, “Autodesk Design Review 2009″)
ControlClick($title, “”, “Button5″)

WinWaitActive($title, “Autodesk Design Review 2009″)
ControlClick($title, “”, “Button1″)

WinWaitActive($title, “Software LICENSE AGREEMENT”)
Send(“!a”)

WinWaitActive($title, “Software LICENSE AGREEMENT”)
controlclick($title, “&Next >”, “Button4″)

WinWaitActive($title, “Product and User Information”)
Send(“00000000000″)

WinWaitActive($title, “Product and User Information”)
Send(“!fAdminInfo”)

WinWaitActive($title, “Product and User Information”)
Send(“!lAdminInfo”)

WinWaitActive($title, “Product and User Information”)
Send(“!oAdminInfo”)

WinWaitActive($title, “Product and User Information”)
controlclick($title, “&Next >”, “Button1″)

WinWaitActive($title, “Review – Configure – Install”)
controlclick($title, “”, “Button1″)

WinWaitActive($title, “Select the License Type”)
controlclick($title, “”, “Button12″)

WinWaitActive($title, “Install optional tools”)
controlclick($title, “C&ustom”, “Button2″)

WinWaitActive($title, “Feature description”)
Send(“!e”)

WinWaitActive($title, “Feature description”)
Send(“{SPACE}”)

WinWaitActive($title, “Select the Installation Type”)
controlclick($title, “&Next”, “Button12″)

WinWaitActive($title, “Configuration Progress: Page 3 of 3″)
ControlClick($title, “”, “Button6″)

WinWaitActive($title, “Review – Configure – Install”)
ControlClick($title, “I&nstall”, “Button3″)

WinWaitActive(“AutoCAD 2009″, “Installation Complete”)
Send(“!d”)
Send(“!a”)

WinWaitActive(“AutoCAD 2009″, “Installation Complete”)
ControlClick($title, “&Finish”, “Button1″)

NOTE: Remember to change Serial Number.

February 27, 2009  7:05 PM

Script to get information about “Installed HotFixes” from remote computer / server

Michael Khanin Michael Khanin Profile: Michael Khanin

This small scripts allows to get information from remote computer / server. All data will  be saved in XML format. Create a .bat file and put into in the following context:

@Echo off

Rem .
Rem . http://thesystemadministrator.com -  http://www.admininfo.ca
Rem .

@Echo Please wait….

SET STOREPATH=C:\TMP
SET RCOMP= “Put here IP or Name of remote computer / server”

set DM=ADMININFO
set USR=ADM
set PASS=PASSWORD

NET USE \\%RCOMP%\ipc$ /user:%DM%\%USR% %PASS%  > NUL 2>&1

REM ………. Checking OS Version ……….
For /F “Tokens=1,2,3* Delims= ” %%a in (’@REG QUERY “\\%RCOMP%\HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion” /v ProductName^| find /i “ProductName”‘) Do SET OSVER=%%d
IF “%OSVER%” == “Windows 2000″ @Echo %OSVER% &goto :EOF

@echo ^<?xml version=”1.0″ encoding=”ISO-8859-1″?^> > %STOREPATH%\%RCOMP%_CompInfo.xml
@echo ^<Report^>^<Lang^>en^</Lang^> >> %STOREPATH%\%RCOMP%_CompInfo.xml
@echo ^<Title^>Report of %RCOMP%^</Title^> >> %STOREPATH%\%RCOMP%_CompInfo.xml

REM ………. Installed HotFixes ……….
@echo ^<Group^>^<Title^>Installed HotFixes^</Title^>  >> %STOREPATH%\%RCOMP%_CompInfo.xml
For /F “Tokens=1,2 Delims==” %%a in (‘”@WMIC /node:%RCOMP% /user:”%DM%\%USR%” /password:%PASS% QFE get HotFixID /value | find /i “HotFixID””‘) Do @echo ^<Item^>^<Title^>%%a^</Title^>^<Value^>%%b^</Value^>^</Item^> >> %STOREPATH%\%RCOMP%_CompInfo.xml
@echo ^</Group^> >> %STOREPATH%\%RCOMP%_CompInfo.xml
REM ………. Installed HotFixes ……….

@echo ^</Report^> >> %STOREPATH%\%RCOMP%_CompInfo.xml

Note: Remember to set IP or Name of remote computer / server

That it!


February 27, 2009  7:03 PM

Script to get information about “Installed Applications” from remote computer / server

Michael Khanin Michael Khanin Profile: Michael Khanin

This small scripts allows to get information from remote computer / server. All data will  be saved in XML format. Create a .bat file and put into in the following context:

@Echo off

Rem .
Rem . http://thesystemadministrator.com -  http://www.admininfo.ca
Rem .

@Echo Please wait….

SET STOREPATH=C:\TMP
SET RCOMP= “Put here IP or Name of remote computer / server”

set DM=ADMININFO
set USR=ADM
set PASS=PASSWORD

NET USE \\%RCOMP%\ipc$ /user:%DM%\%USR% %PASS%  > NUL 2>&1

REM ………. Checking OS Version ……….
For /F “Tokens=1,2,3* Delims= ” %%a in (’@REG QUERY “\\%RCOMP%\HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion” /v ProductName^| find /i “ProductName”‘) Do SET OSVER=%%d
IF “%OSVER%” == “Windows 2000″ @Echo %OSVER% &goto :EOF

@echo ^<?xml version=”1.0″ encoding=”ISO-8859-1″?^> > %STOREPATH%\%RCOMP%_CompInfo.xml
@echo ^<Report^>^<Lang^>en^</Lang^> >> %STOREPATH%\%RCOMP%_CompInfo.xml
@echo ^<Title^>Report of %RCOMP%^</Title^> >> %STOREPATH%\%RCOMP%_CompInfo.xml

REM ………. Installed Applications ……….
@echo ^<Group^>^<Title^>Installed Applications^</Title^>  >> %STOREPATH%\%RCOMP%_CompInfo.xml
For /F “Tokens=1,2 Delims==” %%a in (‘”@WMIC /node:%RCOMP% /user:”%DM%\%USR%” /password:%PASS% PRODUCT get Description /value | find /i “Description””‘) Do @echo ^<Item^>^<Title^>%%a^</Title^>^<Value^>%%b^</Value^>^</Item^> >> %STOREPATH%\%RCOMP%_CompInfo.xml
@echo ^</Group^> >> %STOREPATH%\%RCOMP%_CompInfo.xml
REM ………. Installed Applications ……….

@echo ^</Report^> >> %STOREPATH%\%RCOMP%_CompInfo.xml

Note: Remember to set IP or Name of remote computer / server

That it!


February 27, 2009  7:02 PM

Script to get information about “Services” from remote computer / server

Michael Khanin Michael Khanin Profile: Michael Khanin

This small scripts allows to get information from remote computer / server. All data will  be saved in XML format. Create a .bat file and put into in the following context:

@Echo off

Rem .
Rem . http://thesystemadministrator.com -  http://www.admininfo.ca
Rem .

@Echo Please wait….

SET STOREPATH=C:\TMP
SET RCOMP= “Put here IP or Name of remote computer / server”

set DM=ADMININFO
set USR=ADM
set PASS=PASSWORD

NET USE \\%RCOMP%\ipc$ /user:%DM%\%USR% %PASS%  > NUL 2>&1

REM ………. Checking OS Version ……….
For /F “Tokens=1,2,3* Delims= ” %%a in (’@REG QUERY “\\%RCOMP%\HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion” /v ProductName^| find /i “ProductName”‘) Do SET OSVER=%%d
IF “%OSVER%” == “Windows 2000″ @Echo %OSVER% &goto :EOF

@echo ^<?xml version=”1.0″ encoding=”ISO-8859-1″?^> > %STOREPATH%\%RCOMP%_CompInfo.xml
@echo ^<Report^>^<Lang^>en^</Lang^> >> %STOREPATH%\%RCOMP%_CompInfo.xml
@echo ^<Title^>Report of %RCOMP%^</Title^> >> %STOREPATH%\%RCOMP%_CompInfo.xml

REM ………. Services ……….
@echo ^<Group^>^<Title^>Services^</Title^>  >> %STOREPATH%\%RCOMP%_CompInfo.xml
For /F “Tokens=1-4 Delims=,” %%a in (‘”@WMIC /node:%RCOMP% /user:”%DM%\%USR%” /password:%PASS% SERVICE GET Name, StartMode, State, StartName /value /format:csv.xsl | find /i “%RCOMP%””‘) Do @echo ^<Item^>^<ServiceName^>%%b^</ServiceName^>^<StartMode^>%%c^</StartMode^>^<LogOnAs^>%%d^</LogOnAs^>^</Item^> >> %STOREPATH%\%RCOMP%_CompInfo.xml
@echo ^</Group^> >> %STOREPATH%\%RCOMP%_CompInfo.xml
REM ………. Services ……….

@echo ^</Report^> >> %STOREPATH%\%RCOMP%_CompInfo.xml

Note: Remember to set IP or Name of remote computer / server

That it!


February 27, 2009  7:00 PM

Script to get information about “Shares” from remote computer / server

Michael Khanin Michael Khanin Profile: Michael Khanin

This small scripts allows to get information from remote computer / server. All data will  be saved in XML format. Create a .bat file and put into in the following context:

@Echo off

Rem .
Rem . http://thesystemadministrator.com -  http://www.admininfo.ca
Rem .

@Echo Please wait….

SET STOREPATH=C:\TMP
SET RCOMP= “Put here IP or Name of remote computer / server”

set DM=ADMININFO
set USR=ADM
set PASS=PASSWORD

NET USE \\%RCOMP%\ipc$ /user:%DM%\%USR% %PASS%  > NUL 2>&1

REM ………. Checking OS Version ……….
For /F “Tokens=1,2,3* Delims= ” %%a in (’@REG QUERY “\\%RCOMP%\HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion” /v ProductName^| find /i “ProductName”‘) Do SET OSVER=%%d
IF “%OSVER%” == “Windows 2000″ @Echo %OSVER% &goto :EOF

@echo ^<?xml version=”1.0″ encoding=”ISO-8859-1″?^> > %STOREPATH%\%RCOMP%_CompInfo.xml
@echo ^<Report^>^<Lang^>en^</Lang^> >> %STOREPATH%\%RCOMP%_CompInfo.xml
@echo ^<Title^>Report of %RCOMP%^</Title^> >> %STOREPATH%\%RCOMP%_CompInfo.xml

REM ………. Shares ……….
@echo ^<Group^>^<Title^>SHARE^</Title^>  >> %STOREPATH%\%RCOMP%_CompInfo.xml
For /F “Tokens=1,2 Delims==” %%a in (‘”@WMIC /node:%RCOMP% /user:”%DM%\%USR%” /password:%PASS% SHARE get NAME /value | find /i “NAME””‘) Do @echo ^<Item^>^<Title^>%%a^</Title^>^<Value^>%%b^</Value^>^</Item^> >> %STOREPATH%\%RCOMP%_CompInfo.xml
@echo ^</Group^> >> %STOREPATH%\%RCOMP%_CompInfo.xml
REM ………. Shares ……….

@echo ^</Report^> >> %STOREPATH%\%RCOMP%_CompInfo.xml

Note: Remember to set IP or Name of remote computer / server

That it!


February 27, 2009  6:58 PM

Script to get information about “USERS” from remote computer / server

Michael Khanin Michael Khanin Profile: Michael Khanin

This small scripts allows to get information from remote computer / server. All data will  be saved in XML format. Create a .bat file and put into in the following context:

@Echo off

Rem .
Rem . http://thesystemadministrator.com -  http://www.admininfo.ca
Rem .

@Echo Please wait….

SET STOREPATH=C:\TMP
SET RCOMP= “Put here IP or Name of remote computer / server”

set DM=ADMININFO
set USR=ADM
set PASS=PASSWORD

NET USE \\%RCOMP%\ipc$ /user:%DM%\%USR% %PASS%  > NUL 2>&1

REM ………. Checking OS Version ……….
For /F “Tokens=1,2,3* Delims= ” %%a in (’@REG QUERY “\\%RCOMP%\HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion” /v ProductName^| find /i “ProductName”‘) Do SET OSVER=%%d
IF “%OSVER%” == “Windows 2000″ @Echo %OSVER% &goto :EOF

@echo ^<?xml version=”1.0″ encoding=”ISO-8859-1″?^> > %STOREPATH%\%RCOMP%_CompInfo.xml
@echo ^<Report^>^<Lang^>en^</Lang^> >> %STOREPATH%\%RCOMP%_CompInfo.xml
@echo ^<Title^>Report of %RCOMP%^</Title^> >> %STOREPATH%\%RCOMP%_CompInfo.xml

REM ………. Users ……….
@echo ^<Group^>^<Title^>Users^</Title^>  >> %STOREPATH%\%RCOMP%_CompInfo.xml
For /F “Tokens=1,2 Delims==” %%a in (‘”@WMIC /node:%RCOMP% /user:”%DM%\%USR%” /password:%PASS% USERACCOUNT get NAME /value | find /i “NAME””‘) Do @echo ^<Item^>^<Title^>%%a^</Title^>^<Value^>%%b^</Value^>^</Item^> >> %STOREPATH%\%RCOMP%_CompInfo.xml
@echo ^</Group^> >> %STOREPATH%\%RCOMP%_CompInfo.xml
REM ………. Users ……….

@echo ^</Report^> >> %STOREPATH%\%RCOMP%_CompInfo.xml

Note: Remember to set IP or Name of remote computer / server

That it!


February 27, 2009  6:56 PM

Script to get information about “Groups” from remote computer / server

Michael Khanin Michael Khanin Profile: Michael Khanin

This small scripts allows to get information from remote computer / server. All data will  be saved in XML format. Create a .bat file and put into in the following context:

@Echo off

Rem .
Rem . http://thesystemadministrator.com -  http://www.admininfo.ca
Rem .

@Echo Please wait….

SET STOREPATH=C:\TMP
SET RCOMP= “Put here IP or Name of remote computer / server”

set DM=ADMININFO
set USR=ADM
set PASS=PASSWORD

NET USE \\%RCOMP%\ipc$ /user:%DM%\%USR% %PASS%  > NUL 2>&1

REM ………. Checking OS Version ……….
For /F “Tokens=1,2,3* Delims= ” %%a in (’@REG QUERY “\\%RCOMP%\HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion” /v ProductName^| find /i “ProductName”‘) Do SET OSVER=%%d
IF “%OSVER%” == “Windows 2000″ @Echo %OSVER% &goto :EOF

@echo ^<?xml version=”1.0″ encoding=”ISO-8859-1″?^> > %STOREPATH%\%RCOMP%_CompInfo.xml
@echo ^<Report^>^<Lang^>en^</Lang^> >> %STOREPATH%\%RCOMP%_CompInfo.xml
@echo ^<Title^>Report of %RCOMP%^</Title^> >> %STOREPATH%\%RCOMP%_CompInfo.xml

REM ………. Groups ……….
@echo ^<Group^>^<Title^>Groups^</Title^>  >> %STOREPATH%\%RCOMP%_CompInfo.xml
For /F “Tokens=1,2 Delims==” %%a in (‘”@WMIC /node:%RCOMP% /user:”%DM%\%USR%” /password:%PASS% GROUP get NAME /value | find /i “NAME””‘) Do @echo ^<Item^>^<Title^>%%a^</Title^>^<Value^>%%b^</Value^>^</Item^> >> %STOREPATH%\%RCOMP%_CompInfo.xml
@echo ^</Group^> >> %STOREPATH%\%RCOMP%_CompInfo.xml
REM ………. Groups ……….

@echo ^</Report^> >> %STOREPATH%\%RCOMP%_CompInfo.xml

Note: Remember to set IP or Name of remote computer / server

That it!


February 27, 2009  6:52 PM

Script to get information about “SCSI / RAID CONTROLLERS” from remote computer / server

Michael Khanin Michael Khanin Profile: Michael Khanin

This small scripts allows to get information from remote computer / server. All data will  be saved in XML format. Create a .bat file and put into in the following context:

@Echo off

Rem .
Rem . http://thesystemadministrator.com -  http://www.admininfo.ca
Rem .

@Echo Please wait….

SET STOREPATH=C:\TMP
SET RCOMP= “Put here IP or Name of remote computer / server”

set DM=ADMININFO
set USR=ADM
set PASS=PASSWORD

NET USE \\%RCOMP%\ipc$ /user:%DM%\%USR% %PASS%  > NUL 2>&1

REM ………. Checking OS Version ……….
For /F “Tokens=1,2,3* Delims= ” %%a in (’@REG QUERY “\\%RCOMP%\HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion” /v ProductName^| find /i “ProductName”‘) Do SET OSVER=%%d
IF “%OSVER%” == “Windows 2000″ @Echo %OSVER% &goto :EOF

@echo ^<?xml version=”1.0″ encoding=”ISO-8859-1″?^> > %STOREPATH%\%RCOMP%_CompInfo.xml
@echo ^<Report^>^<Lang^>en^</Lang^> >> %STOREPATH%\%RCOMP%_CompInfo.xml
@echo ^<Title^>Report of %RCOMP%^</Title^> >> %STOREPATH%\%RCOMP%_CompInfo.xml

REM ………. SCSI CONTROLLER ……….
@echo ^<Group^>^<Title^>SCSI CONTROLLER^</Title^>  >> %STOREPATH%\%RCOMP%_CompInfo.xml
For /F “Tokens=1,2 Delims==” %%a in (‘”@WMIC /node:%RCOMP% /user:”%DM%\%USR%” /password:%PASS% SCSICONTROLLER get Description /value | find /i “Description””‘) Do @echo ^<Item^>^<Title^>%%a^</Title^>^<Value^>%%b^</Value^>^</Item^> >> %STOREPATH%\%RCOMP%_CompInfo.xml
@echo ^</Group^> >> %STOREPATH%\%RCOMP%_CompInfo.xml
REM ………. SCSI CONTROLLER ……….

@echo ^</Report^> >> %STOREPATH%\%RCOMP%_CompInfo.xml

Note: Remember to set IP or Name of remote computer / server

That it!


February 27, 2009  6:44 PM

Script to get information about “Logical Disks” from remote computer / server

Michael Khanin Michael Khanin Profile: Michael Khanin

This small scripts allows to get information from remote computer / server. All data will  be saved in XML format. Create a .bat file and put into in the following context:

@Echo off

Rem .
Rem . http://thesystemadministrator.com -  http://www.admininfo.ca
Rem .

@Echo Please wait….

SET STOREPATH=C:\TMP
SET RCOMP= “Put here IP or Name of remote computer / server”

set DM=ADMININFO
set USR=ADM
set PASS=PASSWORD

NET USE \\%RCOMP%\ipc$ /user:%DM%\%USR% %PASS%  > NUL 2>&1

REM ………. Checking OS Version ……….
For /F “Tokens=1,2,3* Delims= ” %%a in (’@REG QUERY “\\%RCOMP%\HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion” /v ProductName^| find /i “ProductName”‘) Do SET OSVER=%%d
IF “%OSVER%” == “Windows 2000″ @Echo %OSVER% &goto :EOF

@echo ^<?xml version=”1.0″ encoding=”ISO-8859-1″?^> > %STOREPATH%\%RCOMP%_CompInfo.xml
@echo ^<Report^>^<Lang^>en^</Lang^> >> %STOREPATH%\%RCOMP%_CompInfo.xml
@echo ^<Title^>Report of %RCOMP%^</Title^> >> %STOREPATH%\%RCOMP%_CompInfo.xml

REM ………. Logical Disks ……….
@echo ^<Group^>^<Title^>Logical Disks^</Title^>  >> %STOREPATH%\%RCOMP%_CompInfo.xml
For /F “Tokens=1-6 Delims=,” %%a in (‘”@WMIC /node:%RCOMP% /user:”%DM%\%USR%” /password:%PASS% LOGICALDISK GET DeviceID, Description, FileSystem, Size, FreeSpace /format:csv.xsl | find /i “%RCOMP%””‘) Do @echo ^<Item^>^<DeviceID^>%%c^</DeviceID^>^<Description^>%%b^</Description^>^<FileSystem^>%%d^</FileSystem^>^<Size^>%%f^</Size^>^<FreeSpace^>%%e^</FreeSpace^>^</Item^> >> %STOREPATH%\%RCOMP%_CompInfo.xml
@echo ^</Group^> >> %STOREPATH%\%RCOMP%_CompInfo.xml
REM ………. Logical Disks ……….

@echo ^</Report^> >> %STOREPATH%\%RCOMP%_CompInfo.xml

Note: Remember to set IP or Name of remote computer / server

That it!


February 27, 2009  6:07 PM

Small script to get “Disks Configuration” from remote computer / server

Michael Khanin Michael Khanin Profile: Michael Khanin

This small scripts allows to get information from remote computer / server. All data will  be saved in XML format. Create a .bat file and put into in the following context:

@Echo off

Rem .
Rem . http://thesystemadministrator.com -  http://www.admininfo.ca
Rem .

@Echo Please wait….

SET STOREPATH=C:\TMP
SET RCOMP= “Put here IP or Name of remote computer / server”

set DM=ADMININFO
set USR=ADM
set PASS=PASSWORD

NET USE \\%RCOMP%\ipc$ /user:%DM%\%USR% %PASS%  > NUL 2>&1

REM ………. Checking OS Version ……….
For /F “Tokens=1,2,3* Delims= ” %%a in (‘@REG QUERY “\\%RCOMP%\HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion” /v ProductName^| find /i “ProductName”‘) Do SET OSVER=%%d
IF “%OSVER%” == “Windows 2000″ @Echo %OSVER% &goto :EOF

@echo ^<?xml version=”1.0″ encoding=”ISO-8859-1″?^> > %STOREPATH%\%RCOMP%_CompInfo.xml
@echo ^<Report^>^<Lang^>en^</Lang^> >> %STOREPATH%\%RCOMP%_CompInfo.xml
@echo ^<Title^>Report of %RCOMP%^</Title^> >> %STOREPATH%\%RCOMP%_CompInfo.xml

REM ………. Disks Configuration ……….
@echo ^<Group^>^<Title^>Disks Configuration^</Title^>  >> %STOREPATH%\%RCOMP%_CompInfo.xml
For /F “Tokens=1-5 Delims=,” %%a in (‘”@WMIC /node:%RCOMP% /user:”%DM%\%USR%” /password:%PASS% DISKDRIVE get Model, InterfaceType, Partitions, MediaType /format:csv.xsl | find /i “1″”‘) Do @echo ^<Item^>^<Model^>%%d^</Model^>^<InterfaceType^>%%b^</InterfaceType^>^<MediaType^>%%c^</MediaType^>^<Parts^>%%e^</Parts^>^</Item^> >> %STOREPATH%\%RCOMP%_CompInfo.xml
@echo ^</Group^> >> %STOREPATH%\%RCOMP%_CompInfo.xml
REM ………. Disks Configuration ……….

@echo ^</Report^> >> %STOREPATH%\%RCOMP%_CompInfo.xml

Note: Remember to set IP or Name of remote computer / server

That it!


Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to: