home *** CD-ROM | disk | FTP | other *** search
- '=================================================================================
- 'This script is part of the appendix to the Application Compatibility Testing and
- 'Mitigation Guide for Windows XP Service Pack 2. Before using these scripts you
- 'must read the appendix and all Readme.txt files provided with the scripts. The
- 'scripts are designed as functional samples and will require extensive testing and
- 'some modification for use in a production environment.
- '
- 'For information on additional functionality to incorporate into the script, such
- 'as error checking, go to:
- '
- 'http://msdn.microsoft.com/library/default.asp?url=/nhp/default.asp?contentid=28001169
- '
- 'or
- '
- 'http://msdn.microsoft.com/library/default.asp?url=/library/en-us/rmscpt/html/rmscpt.asp
- '
- 'As some of the scripts edit the registry it is important that their functionality and
- 'impact on the machine environment is thoroughly tested before they are used in a
- 'production environment.
- '==================================================================================
- '
- ' AutoAdmin.vbs
- '
- ' Author: Jim Captainino, Terry Tull (Content Master)
- ' Date: 08/20/04
- ' Revision History:
- ' Date Comment
- ' 08/20/04 Initial version started
-
- 'This script configures AutoAdmin logon and places RunOnce.cmd into the RunOnce area
- 'of the registry.
-
- 'Edit the value of DefUsrNme to configure the DefaultUserName
- DefUsrNme = "Administrator"
-
- 'Edit the value of DefUsrPsswd to configure the DefaultPassword
- DefUsrPsswd = "password"
-
- 'Edit the value of DefDomNme to configure the DefaultDomainName
- DefDomNme = "Contoso"
-
- Set WshShell = CreateObject("Wscript.Shell")
-
- WshShell.RegWrite "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\Currentversion\winlogon\" _
- & "DefaultUserName", DefUsrNme, "REG_SZ"
-
- WshShell.RegWrite "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\Currentversion\winlogon\" _
- & "DefaultPassword", DefUsrPsswd, "REG_SZ"
-
- WshShell.RegWrite "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\Currentversion\winlogon\" _
- & "DefaultDomainName", DefUsrNme, "REG_SZ"
-
- 'This line configures AutoAdminLogon
- WshShell.RegWrite "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\Currentversion\winlogon\" _
- & "AutoAdminLogon", "1", "REG_SZ"
-
- 'Edit this line to configure the required path for RunOnce.cmd
- WshShell.RegWrite "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\currentversion\RunOnce\" _
- & "MyScript", "C:\scripts\scenario1\Runonce.cmd", "REG_SZ"
-