You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@vcl.apache.org by ar...@apache.org on 2008/12/30 20:02:47 UTC

svn commit: r730215 - in /incubator/vcl/trunk/managementnode/tools/Sysprep_Vista: ./ Logs/ Scripts/ Utilities/ Utilities/PsTools/

Author: arkurth
Date: Tue Dec 30 11:02:46 2008
New Revision: 730215

URL: http://svn.apache.org/viewvc?rev=730215&view=rev
Log:
Added Sysprep_Vista directory. This contains the files necessary to configure Windows Vista.  Dependency utilities have been removed.  Product keys and passwords have been replaced.

Added:
    incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/
    incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Logs/
    incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/
    incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/Sysprep.xml
    incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/autoadminlogon_disable.reg   (with props)
    incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/autoadminlogon_enable.reg   (with props)
    incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/autologon_disable.cmd
    incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/autologon_enable.cmd
    incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/cleanup_hard_drive.cmd
    incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/configure_kms.cmd
    incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/configure_networking.vbs
    incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/defrag.cmd
    incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/delete_profile_files.txt
    incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/disable_scheduled_tasks.cmd
    incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/disk_cleanup.cmd
    incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/disk_cleanup.reg
    incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/hibernation_disable.cmd
    incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/ipv6_disable.cmd
    incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/ipv6_disable.reg
    incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/kms.cmd
    incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/newsid_accept_eula.reg
    incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/nodyndns.reg
    incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/pagefile_disable.cmd
    incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/set_computer_name.vbs
    incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/set_default_permissions.cmd
    incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/set_network_location.cmd
    incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/update_cygwin.cmd
    incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/vcl_startup.cmd
    incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/vcl_startup_firewall.cmd
    incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Utilities/
    incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Utilities/CleanUp.exe   (with props)
    incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Utilities/EmptyRecycleBin.exe   (with props)
    incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Utilities/PsTools/

Added: incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/Sysprep.xml
URL: http://svn.apache.org/viewvc/incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/Sysprep.xml?rev=730215&view=auto
==============================================================================
--- incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/Sysprep.xml (added)
+++ incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/Sysprep.xml Tue Dec 30 11:02:46 2008
@@ -0,0 +1,109 @@
+<?xml version="1.0" encoding="utf-8"?>
+<unattend xmlns="urn:schemas-microsoft-com:unattend">
+    <settings pass="generalize">
+        <component name="Microsoft-Windows-Security-Licensing-SLC" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+            <SkipRearm>1</SkipRearm>
+        </component>
+    </settings>
+    <settings pass="specialize">
+        <component name="Microsoft-Windows-Deployment" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+            <RunSynchronous>
+                <RunSynchronousCommand wcm:action="add">
+                    <Path>cmd.exe /c reg.exe add &quot;HKLM\SOFTWARE\Policies\Microsoft\Windows NT\CurrentVersion\NetworkList\Signatures\FirstNetwork&quot; /v Category /t REG_DWORD /d 00000001 /f &gt; C:\VCL\Logs\setnetworklocation.txt</Path>
+                    <Description>Set Network Location</Description>
+                    <Order>1</Order>
+                </RunSynchronousCommand>
+                <RunSynchronousCommand wcm:action="add">
+                    <Description>Set Vista activation KMS server</Description>
+                    <Path>cmd.exe /c cscript.exe //NoLogo %SystemRoot%\system32\slmgr.vbs -skms kms.unity.ad.ncsu.edu:1688 &gt; C:\VCL\Logs\set_kms.txt</Path>
+                    <Order>2</Order>
+                </RunSynchronousCommand>
+                <RunSynchronousCommand wcm:action="add">
+                    <Description>Activate Vista</Description>
+                    <Order>3</Order>
+                    <Path>cmd.exe /c cscript.exe //NoLogo %SystemRoot%\system32\slmgr.vbs -ato &gt; C:\VCL\Logs\kms_activate.txt</Path>
+                </RunSynchronousCommand>
+            </RunSynchronous>
+            <RunAsynchronous>
+                <RunAsynchronousCommand wcm:action="add">
+                    <Description>Test specialize</Description>
+                    <Order>1</Order>
+                    <Path>cmd.exe /c &quot;time /T &amp;&amp; echo specialize-asynch&quot; &gt; C:\VCL\Logs\specialize-asynch.txt</Path>
+                </RunAsynchronousCommand>
+            </RunAsynchronous>
+        </component>
+        <component name="Microsoft-Windows-Security-Licensing-SLC-UX" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+            <SkipAutoActivation>true</SkipAutoActivation>
+        </component>
+        <component name="Microsoft-Windows-UnattendedJoin" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+            <Identification>
+                <JoinWorkgroup>VCL</JoinWorkgroup>
+            </Identification>
+        </component>
+        <component name="Microsoft-Windows-DNS-Client" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+            <Interfaces>
+                <Interface wcm:action="add">
+                    <DisableDynamicUpdate>true</DisableDynamicUpdate>
+                    <EnableAdapterDomainNameRegistration>false</EnableAdapterDomainNameRegistration>
+                    <Identifier>*</Identifier>
+                </Interface>
+            </Interfaces>
+        </component>
+        <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+            <ComputerName>*</ComputerName>
+        </component>
+    </settings>
+    <settings pass="oobeSystem">
+        <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+            <AutoLogon>
+                <Password>
+                    <Value>NwB2AGMAIQBAAE4AYwA4AHUAUABhAHMAcwB3AG8AcgBkAA==</Value>
+                    <PlainText>false</PlainText>
+                </Password>
+                <Enabled>true</Enabled>
+                <Username>root</Username>
+            </AutoLogon>
+            <Display>
+                <ColorDepth>32</ColorDepth>
+                <DPI>120</DPI>
+                <HorizontalResolution>1024</HorizontalResolution>
+                <VerticalResolution>768</VerticalResolution>
+                <RefreshRate>72</RefreshRate>
+            </Display>
+            <LogonCommands>
+                <AsynchronousCommand wcm:action="add">
+                    <CommandLine>C:\VCL\Scripts\updatecygwin.cmd oobeSystem &gt; C:\VCL\Logs\oobeSystem-updatecygwin.txt</CommandLine>
+                    <Description>Update Cygwin SSH Service</Description>
+                    <Order>1</Order>
+                </AsynchronousCommand>
+            </LogonCommands>
+            <OOBE>
+                <HideEULAPage>true</HideEULAPage>
+                <NetworkLocation>Other</NetworkLocation>
+                <ProtectYourPC>3</ProtectYourPC>
+                <SkipUserOOBE>true</SkipUserOOBE>
+            </OOBE>
+            <UserAccounts>
+                <LocalAccounts>
+                    <LocalAccount wcm:action="add">
+                        <Password>
+                            <Value>NwB2AGMAIQBAAE4AYwA4AHUAUABhAHMAcwB3AG8AcgBkAA==</Value>
+                            <PlainText>false</PlainText>
+                        </Password>
+                        <Name>root</Name>
+                        <Group>Administrators</Group>
+                        <DisplayName>VCL root account</DisplayName>
+                    </LocalAccount>
+                </LocalAccounts>
+            </UserAccounts>
+            <TimeZone>Eastern Standard Time</TimeZone>
+        </component>
+        <component name="Microsoft-Windows-International-Core" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+            <InputLocale>en-US</InputLocale>
+            <SystemLocale>en-US</SystemLocale>
+            <UILanguage>en-US</UILanguage>
+            <UserLocale>en-US</UserLocale>
+        </component>
+    </settings>
+    <cpi:offlineImage cpi:source="wim:d:/distribution/operating%20systems/windows%20vista/sources/install.wim#Windows Vista ENTERPRISE" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
+</unattend>

Added: incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/autoadminlogon_disable.reg
URL: http://svn.apache.org/viewvc/incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/autoadminlogon_disable.reg?rev=730215&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/autoadminlogon_disable.reg
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/autoadminlogon_enable.reg
URL: http://svn.apache.org/viewvc/incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/autoadminlogon_enable.reg?rev=730215&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/autoadminlogon_enable.reg
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/autologon_disable.cmd
URL: http://svn.apache.org/viewvc/incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/autologon_disable.cmd?rev=730215&view=auto
==============================================================================
--- incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/autologon_disable.cmd (added)
+++ incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/autologon_disable.cmd Tue Dec 30 11:02:46 2008
@@ -0,0 +1 @@
+reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "AutoAdminLogon" /t REG_SZ /d "0" /f
\ No newline at end of file

Added: incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/autologon_enable.cmd
URL: http://svn.apache.org/viewvc/incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/autologon_enable.cmd?rev=730215&view=auto
==============================================================================
--- incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/autologon_enable.cmd (added)
+++ incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/autologon_enable.cmd Tue Dec 30 11:02:46 2008
@@ -0,0 +1,2 @@
+reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "AutoAdminLogon" /t REG_SZ /d "1" /f
+reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "DefaultUserName" /t REG_SZ /d "root" /f
\ No newline at end of file

Added: incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/cleanup_hard_drive.cmd
URL: http://svn.apache.org/viewvc/incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/cleanup_hard_drive.cmd?rev=730215&view=auto
==============================================================================
--- incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/cleanup_hard_drive.cmd (added)
+++ incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/cleanup_hard_drive.cmd Tue Dec 30 11:02:46 2008
@@ -0,0 +1,206 @@
+echo off
+cls
+
+rem Get the name of this batch file and the directory it is running from
+set SCRIPT_NAME=%~nx0
+set SCRIPT_DIR=%~dp0
+set SCRIPT_DIR=%SCRIPT_DIR:~0,-1%
+echo Directory %SCRIPT_NAME% is running from: %SCRIPT_DIR%
+echo.
+
+set UTILITIES=%SCRIPT_DIR%\Utilities
+set VCL_SCRIPTS=%SCRIPT_DIR%\Scripts
+set WINDOWS_SCRIPTS=%SystemRoot%\System32\GroupPolicy\User\Scripts
+set WIN_SETUP_SCRIPTS=%SystemRoot%\Setup\Scripts
+set DOCS=%SystemDrive%\Users
+set RM=C:\Cygwin\bin\rm.exe
+
+echo Utilities directory: %UTILITIES%
+echo Scripts directory: %VCL_SCRIPTS%
+echo Group policy scripts directory: %WINDOWS_SCRIPTS%
+echo Windows setup scripts directory: %WIN_SETUP_SCRIPTS%
+echo User profiles directory: %DOCS%
+
+rem Check the argument and set the NEW_COMPUTER_NAME variable
+if "%1"=="" (
+   set NEW_COMPUTER_NAME=VCL-Computer
+) ELSE (
+   set NEW_COMPUTER_NAME=%1
+)
+echo Computer name saved in image will be: %NEW_COMPUTER_NAME%
+
+echo -------------------------------------------------------
+echo.
+
+:CLEAN
+set DELETE=%TEMP%
+echo Removing files and subdirectories in %DELETE%...
+FOR /F "usebackq delims==" %%x IN (`if exist "%DELETE%\*" dir /b /a:d "%DELETE%\*"`) DO rmdir /S /Q "%DELETE%\%%x"
+FOR /F "usebackq delims==" %%x IN (`if exist "%DELETE%\*" dir /b /a:-d "%DELETE%\*"`) DO del /A /S /Q /F "%DELETE%\%%x"
+echo.
+
+echo -------------------------------------------------------
+echo.
+
+set DELETE=%TMP%
+echo Removing files and subdirectories in %DELETE%...
+FOR /F "usebackq delims==" %%x IN (`if exist "%DELETE%\*" dir /b /a:d "%DELETE%\*"`) DO rmdir /S /Q "%DELETE%\%%x"
+FOR /F "usebackq delims==" %%x IN (`if exist "%DELETE%\*" dir /b /a:-d "%DELETE%\*"`) DO del /A /S /Q /F "%DELETE%\%%x"
+echo.
+
+echo -------------------------------------------------------
+echo.
+
+set DELETE=%SystemRoot%\Temp
+echo Removing files and subdirectories in %DELETE%...
+FOR /F "usebackq delims==" %%x IN (`if exist "%DELETE%\*" dir /b /a:d "%DELETE%\*"`) DO rmdir /S /Q "%DELETE%\%%x"
+FOR /F "usebackq delims==" %%x IN (`if exist "%DELETE%\*" dir /b /a:-d "%DELETE%\*"`) DO del /A /S /Q /F "%DELETE%\%%x"
+echo.
+
+echo -------------------------------------------------------
+echo.
+
+echo Removing "%SystemRoot%\*.tmp" files...
+del /A /S /Q /F "%SystemRoot%\*.tmp"
+echo.
+
+echo -------------------------------------------------------
+echo.
+
+set DELETE=%SystemRoot%\ie7updates
+echo Removing files and subdirectories in %DELETE%...
+FOR /F "usebackq delims==" %%x IN (`if exist "%DELETE%\*" dir /b /a:d "%DELETE%\*"`) DO rmdir /S /Q "%DELETE%\%%x"
+FOR /F "usebackq delims==" %%x IN (`if exist "%DELETE%\*" dir /b /a:-d "%DELETE%\*"`) DO del /A /S /Q /F "%DELETE%\%%x"
+echo.
+
+echo -------------------------------------------------------
+echo.
+
+set DELETE=%SystemRoot%\ServicePackFiles
+echo Removing files and subdirectories in %DELETE%...
+FOR /F "usebackq delims==" %%x IN (`if exist "%DELETE%\*" dir /b /a:d "%DELETE%\*"`) DO rmdir /S /Q "%DELETE%\%%x"
+FOR /F "usebackq delims==" %%x IN (`if exist "%DELETE%\*" dir /b /a:-d "%DELETE%\*"`) DO del /A /S /Q /F "%DELETE%\%%x"
+echo.
+
+echo -------------------------------------------------------
+echo.
+
+set DELETE=%SystemRoot%\SoftwareDistribution\Download
+echo Removing files and subdirectories in %DELETE%...
+FOR /F "usebackq delims==" %%x IN (`if exist "%DELETE%\*" dir /b /a:d "%DELETE%\*"`) DO rmdir /S /Q "%DELETE%\%%x"
+FOR /F "usebackq delims==" %%x IN (`if exist "%DELETE%\*" dir /b /a:-d "%DELETE%\*"`) DO del /A /S /Q /F "%DELETE%\%%x"
+echo.
+
+echo -------------------------------------------------------
+echo.
+
+rem Minidump files are created if an application crashes, used for debugging
+set DELETE=%SystemRoot%\Minidump
+echo Removing files and subdirectories in %DELETE%...
+FOR /F "usebackq delims==" %%x IN (`if exist "%DELETE%\*" dir /b /a:d "%DELETE%\*"`) DO rmdir /S /Q "%DELETE%\%%x"
+FOR /F "usebackq delims==" %%x IN (`if exist "%DELETE%\*" dir /b /a:-d "%DELETE%\*"`) DO del /A /S /Q /F "%DELETE%\%%x"
+echo.
+
+echo -------------------------------------------------------
+echo.
+
+rem $NtUninstall...$ are uninstall files for Windows updates
+set DELETE=%SystemRoot%\$NtUninstall
+echo Removing files and subdirectories in %DELETE%...
+FOR /F "usebackq delims==" %%x IN (`if exist "%DELETE%*" dir /b "%DELETE%*"`) DO rmdir /S /Q "%SystemRoot%\%%x"
+echo.
+
+echo -------------------------------------------------------
+echo.
+
+rem $NtServicePackUninstall...$ are uninstall files for Windows service packs
+set DELETE=%SystemRoot%\$NtServicePackUninstall
+echo Removing files and subdirectories in %DELETE%...
+FOR /F "usebackq delims==" %%x IN (`dir /b "%DELETE%*"`) DO rmdir /S /Q "%SystemRoot%\%%x"
+echo.
+
+echo -------------------------------------------------------
+echo.
+
+rem $MSI*Uninstall...$ are uninstall files for Windows Installer service updates (msiexec.exe)
+set DELETE=%SystemRoot%\$MSI*Uninstall
+echo Removing files and subdirectories in %DELETE%...
+FOR /F "usebackq delims==" %%x IN (`dir /b "%DELETE%*"`) DO rmdir /S /Q "%SystemRoot%\%%x"
+echo.
+
+echo -------------------------------------------------------
+echo.
+
+rem Dr Watson logs and memory dumps
+set DELETE=%ALLUSERSPROFILE%\Application Data\Microsoft\Dr Watson
+echo Removing directory %DELETE%...
+if exist "%DELETE%" rmdir /S /Q "%DELETE%"
+echo.
+
+echo -------------------------------------------------------
+echo.
+
+echo Setting permissions and removing %SystemRoot%\inf\infcache.1...
+if exist "%SystemRoot%\inf\infcache.1" call "%VCL_SCRIPTS%\set_default_permissions.cmd" "%SystemRoot%\inf\infcache.1"
+if exist "%SystemRoot%\inf\infcache.1" del /A /S /Q /F "%SystemRoot%\inf\infcache.1"
+echo.
+
+rem inf\oem* and infcache.1 files are cached OEM drivers, removal suggested by vernalex.com
+echo Removing cached OEM drivers at "%SystemRoot%\inf\oem*.*"...
+if exist "%SystemRoot%\inf\oem*.*" del /A /S /Q /F "%SystemRoot%\inf\oem*.*"
+echo.
+
+echo -------------------------------------------------------
+echo.
+
+echo Emptying Recycle Bin...
+"%UTILITIES%\EmptyRecycleBin.exe" /q
+echo.
+
+echo.
+
+:PROFILES
+
+FOR /F "usebackq delims=," %%f in ("%SCRIPT_DIR%\delete_profile_files.txt") DO ^
+echo ------------------------------------------------------- & ^
+echo Cleaning up user profiles: %%f... & ^
+FOR /F "usebackq delims==" %%u IN (`dir /b /a:d "%DOCS%\*"`) DO ^
+echo. && ^
+echo Checking directory: "%DOCS%\%%u\%%f" && ^
+if exist "%DOCS%\%%u\%%f" ^
+echo Directory exists: "%DOCS%\%%u\%%f" && ^
+echo Removing deny permissions on: "%DOCS%\%%u\%%f" && ^
+echo %ICACLS% "%DOCS%\%%u\%%f" /C /T /remove:d Everyone && ^
+%ICACLS% "%DOCS%\%%u\%%f" /C /T /remove:d Everyone && ^
+FOR /F "usebackq delims==" %%x IN (`dir /b /a "%DOCS%\%%u\%%f\*"`) DO ^
+echo Removing attributes: "%DOCS%\%%u\%%f\%%x" && ^
+echo Deleting: "%DOCS%\%%u\%%f\%%x" && ^
+%RM% -vrf "%DOCS%\%%u\%%f\%%x"
+
+echo.
+
+echo -------------------------------------------------------
+echo.
+
+:AFS
+echo Stopping AFS client service...
+"%SystemRoot%\system32\sc.exe" stop TransarcAFSDaemon
+echo Removing AFSCache and afsd_init.log files
+if exist "%SystemRoot%\AFSCache" del /A /S /Q /F "%SystemRoot%\AFSCache"
+if exist "%SystemRoot%\afsd_init.log" del /A /S /Q /F "%SystemRoot%\afsd_init.log"
+echo.
+
+echo -------------------------------------------------------
+echo.
+
+:DISK_CLEANUP
+echo Running Disk Cleanup...
+call "%VCL_SCRIPTS%\disk_cleanup.cmd"
+
+echo -------------------------------------------------------
+echo.
+
+:END
+echo Done
+
+exit /B 0

Added: incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/configure_kms.cmd
URL: http://svn.apache.org/viewvc/incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/configure_kms.cmd?rev=730215&view=auto
==============================================================================
--- incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/configure_kms.cmd (added)
+++ incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/configure_kms.cmd Tue Dec 30 11:02:46 2008
@@ -0,0 +1,7 @@
+echo Configuring Vista to use a KMS server for activation...
+cscript.exe //NoLogo %SystemRoot%\system32\slmgr.vbs -skms kms.unity.ad.ncsu.edu:1688
+echo.
+
+echo Attempting to activate Vista...
+cscript.exe //NoLogo %SystemRoot%\system32\slmgr.vbs -ato
+echo.
\ No newline at end of file

Added: incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/configure_networking.vbs
URL: http://svn.apache.org/viewvc/incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/configure_networking.vbs?rev=730215&view=auto
==============================================================================
--- incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/configure_networking.vbs (added)
+++ incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/configure_networking.vbs Tue Dec 30 11:02:46 2008
@@ -0,0 +1,199 @@
+strSystem32="%SystemRoot%\system32"
+
+' Assemble the networking commands
+CMD_ROUTE_FLUSH=strSystem32 & "\route.exe -f"
+CMD_ROUTE_PRINT=strSystem32 & "\route.exe print"
+CMD_IPCONFIG_RENEW=strSystem32 & "\ipconfig.exe /renew"
+CMD_IPCONFIG_RELEASE=strSystem32 & "\ipconfig.exe /release"
+
+' Renew the DHCP lease to make sure not to retrieve old information
+RunCommand CMD_IPCONFIG_RELEASE, "Releasing DHCP lease"
+RunCommand CMD_IPCONFIG_RENEW, "Renewing DHCP lease"
+
+Dim PRIVATE_NAME, PRIVATE_IP, PRIVATE_GATEWAY
+Dim PUBLIC_NAME, PUBLIC_IP, PUBLIC_GATEWAY
+
+' Use WMI to retrieve the networking configuration
+get_network_configuration
+print_hr
+
+WScript.Echo "PRIVATE_NAME          = " & PRIVATE_NAME
+WScript.Echo "PRIVATE_IP            = " & PRIVATE_IP
+WScript.Echo "PRIVATE_GATEWAY       = " & PRIVATE_GATEWAY
+WScript.Echo "PUBLIC_NAME           = " & PUBLIC_NAME
+WScript.Echo "PUBLIC_IP             = " & PUBLIC_IP
+WScript.Echo "PUBLIC_GATEWAY        = " & PUBLIC_GATEWAY
+
+' Check if all the required information was found
+If Len(PRIVATE_GATEWAY) > 0 And Len(PUBLIC_GATEWAY) > 0 Then
+	WScript.Echo "Successfully retrieved network configuration"
+Else
+	WScript.Echo "Failed to retrieve network configuration, returning exit status 1"
+	WScript.Quit 1
+End If
+
+' Assemble the networking commands which need other information
+CMD_ROUTE_ADD_PUBLIC_GATEWAY=strSystem32 & "\route.exe -p ADD 0.0.0.0 MASK 0.0.0.0 " & PUBLIC_GATEWAY & " METRIC 1"
+CMD_ROUTE_ADD_PRIVATE_GATEWAY=strSystem32 & "\route.exe -p ADD 0.0.0.0 MASK 0.0.0.0 " & PRIVATE_GATEWAY & " METRIC 2"
+CMD_ROUTE_DELETE_PUBLIC_GATEWAY=strSystem32 & "\route.exe DELETE 0.0.0.0 MASK 0.0.0.0 " & PUBLIC_GATEWAY
+CMD_ROUTE_DELETE_PRIVATE_GATEWAY=strSystem32 & "\route.exe DELETE 0.0.0.0 MASK 0.0.0.0 " & PRIVATE_GATEWAY
+CMD_SET_NTSYSLOG_GATEWAY=strSystem32 & "\reg.exe ADD HKLM\SOFTWARE\SaberNet /v syslog /d " & PRIVATE_GATEWAY & " /f"
+
+' Run commands to configure networking
+' Keep a total of the exit codes
+intExitCodeTotal = 0
+intExitCodeTotal = intExitCodeTotal + RunCommand(CMD_ROUTE_DELETE_PUBLIC_GATEWAY, "Deleting route to public default gateway")
+intExitCodeTotal = intExitCodeTotal + RunCommand(CMD_ROUTE_DELETE_PRIVATE_GATEWAY, "Deleting route to private default gateway")
+intExitCodeTotal = intExitCodeTotal + RunCommand(CMD_ROUTE_ADD_PUBLIC_GATEWAY, "Adding route to public default gateway")
+intExitCodeTotal = intExitCodeTotal + RunCommand(CMD_ROUTE_ADD_PRIVATE_GATEWAY, "Adding route to private default gateway")
+intExitCodeTotal = intExitCodeTotal + RunCommand(CMD_SET_NTSYSLOG_GATEWAY, "Configuring SyslogNT to use private default gateway")
+RunCommand CMD_ROUTE_PRINT, "Printing routing table"
+
+print_hr
+
+' Update syslog - stop and restart service
+objWMIService = ""
+intSleep = 1500
+
+WScript.Echo strService & " service has Started"
+WScript.Quit 0
+
+WScript.Quit intExitCodeTotal
+
+'-----------------------------------------------------------------------------
+function get_network_configuration
+	' Connect to local computer via WMI
+	Set wmi = GetObject("winmgmts:{impersonationLevel=impersonate}!\\.\root\cimv2")
+
+	' Get a list of network adapters
+	' NetConnectionStatus: 0 = Disconnected, 1 = Connecting, 2 = Connected
+	Set wmi_NAs = wmi.ExecQuery("SELECT * FROM Win32_NetworkAdapter WHERE " & _
+											"NetConnectionStatus = 2 " & _
+											"AND Name LIKE '%Broadcom%'" & _
+											"AND NOT ServiceName LIKE '%loop%'")
+
+	' Loop through neteork adapters
+	If (wmi_NAs.count = 0) Then
+		WScript.Echo "No network adapters were found"
+		WScript.Quit 1
+	End If
+
+	' Loop through neteork adapters
+	For Each NA in wmi_NAs
+		WScript.Echo "----------------------------------------------------------------------"
+		WScript.Echo "*** " & NA.Description & " ***"
+		WScript.Echo
+
+		'' Print all of the the Win32_NetworkAdapter properties
+		'For Each NA_property in NA.Properties_
+		'	If Not IsNull(NA_property.Value) Then
+		'		print_variable NA_property.Value, "NA:" & NA_property.Name
+		'	End If
+		'Next
+
+		' Get a list of network adapter configurations matching the index of the network adapter
+		Set wmi_NACs = wmi.ExecQuery("SELECT * FROM Win32_NetworkAdapterConfiguration WHERE Index = '" & NA.Index & "'")
+		If (wmi_NACs.count > 0) Then
+			For Each NAC in wmi_NACs
+				WScript.Echo
+
+				'' Print all of the the Win32_NetworkAdapterConfiguration properties
+				'For Each NAC_property in NAC.Properties_
+				'	If Not IsNull(NAC_property.Value) Then
+				'		print_variable NAC_property.Value, "NAC:" & NAC_property.Name
+				'	End If
+				'Next
+
+				' Use a regular expression to check if the IP address is private
+				strPatternPrivate = "(10\.[\d\.]+)"
+				strIPAddressMatchPrivate = RegExpVal(strPatternPrivate, Join(NAC.IPAddress), 0)
+				If Len(strIPAddressMatchPrivate) > 0 Then
+					PRIVATE_IP = strIPAddressMatchPrivate
+					PRIVATE_NAME = NA.NetConnectionID
+					PRIVATE_DESCRIPTION = NA.Description
+					PRIVATE_GATEWAY = Join(NAC.DefaultIPGateway)
+
+					WScript.Echo "* PRIVATE_NAME          = " & PRIVATE_NAME
+					WScript.Echo "* PRIVATE_IP            = " & PRIVATE_IP
+					WScript.Echo "* PRIVATE_GATEWAY       = " & PRIVATE_GATEWAY
+				End If
+
+				' Use a regular expression to check if the IP address is public
+				strPatternPublic = "(152\.[\d\.]+)"
+				strIPAddressMatchPublic = RegExpVal(strPatternPublic, Join(NAC.IPAddress), 0)
+				If Len(strIPAddressMatchPublic) > 0 Then
+					PUBLIC_IP = strIPAddressMatchPublic
+					PUBLIC_NAME = NA.NetConnectionID
+					PUBLIC_DESCRIPTION = NA.Description
+					PUBLIC_GATEWAY = Join(NAC.DefaultIPGateway)
+
+					WScript.Echo "* PUBLIC_NAME          = " & PUBLIC_NAME
+					WScript.Echo "* PUBLIC_IP            = " & PUBLIC_IP
+					WScript.Echo "* PUBLIC_GATEWAY       = " & PUBLIC_GATEWAY
+				End If
+
+			Next
+		End if
+	Next
+End function
+
+'-----------------------------------------------------------------------------
+function print_variable(arr, strTitle)
+	If Not IsNull(arr) Then
+		If IsArray(arr) Then
+			For Each element In arr
+				WScript.Echo strTitle & " = " & element
+			Next
+		Else
+			WScript.Echo strTitle & " = " & arr
+		End If
+	Else
+		WScript.Echo strTitle & " = NULL"
+	End If
+End function
+
+'-----------------------------------------------------------------------------
+Function RegExpVal(strPattern, strString, idx)
+	On Error Resume Next
+	Dim regEx, Match, Matches, RetStr
+	Set regEx        = New RegExp
+	regEx.Pattern    = strPattern
+	regEx.IgnoreCase = True
+	regEx.Global     = True
+	Set Matches      = regEx.Execute( strString )
+	RegExpVal        = Matches( 0 ).SubMatches( idx )
+End Function
+
+'-----------------------------------------------------------------------------
+Function RunCommand (strCommand, strDescription)
+	print_hr
+	WScript.Echo strDescription & ", command: " & strCommand
+	Set objShell = CreateObject("WScript.Shell")
+	Set objExecResult = objShell.Exec(strCommand)
+
+	If objExecResult.ProcessID = 0 And objExecResult.Status = 1 Then
+		WScript.Echo strDescription & " failed: " & err.Description
+		WScript.Quit 1
+	End If
+
+	Do
+		intStatus = objExecResult.Status
+		WScript.StdOut.Write objExecResult.StdOut.ReadAll()
+		WScript.StdErr.Write objExecResult.StdErr.ReadAll()
+		If intStatus <> 0 Then Exit Do
+		WScript.Sleep 10
+	Loop
+
+	If objExecResult.ExitCode > 0 Then
+		WScript.Echo strDescription & " failed, exit code: " & objExecResult.ExitCode
+	Else
+		WScript.Echo strDescription & " successful, exit code: " & objExecResult.ExitCode
+	End If
+
+	RunCommand = objExecResult.ExitCode
+End Function
+
+'-----------------------------------------------------------------------------
+Function print_hr
+	WScript.Echo "----------------------------------------------------------------------"
+End Function
\ No newline at end of file

Added: incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/defrag.cmd
URL: http://svn.apache.org/viewvc/incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/defrag.cmd?rev=730215&view=auto
==============================================================================
--- incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/defrag.cmd (added)
+++ incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/defrag.cmd Tue Dec 30 11:02:46 2008
@@ -0,0 +1,7 @@
+rem Defragments the hard drive
+rem -w            Performs full defragmentation. Attempts to consolidate all file
+rem               fragments, regardless of their size.
+rem -v            Specifies verbose mode. The defragmentation and analysis output
+rem               is more detailed.
+
+"%SystemRoot%\system32\Defrag.exe" %SystemDrive% -w -v
\ No newline at end of file

Added: incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/delete_profile_files.txt
URL: http://svn.apache.org/viewvc/incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/delete_profile_files.txt?rev=730215&view=auto
==============================================================================
--- incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/delete_profile_files.txt (added)
+++ incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/delete_profile_files.txt Tue Dec 30 11:02:46 2008
@@ -0,0 +1,5 @@
+Cookies
+Local Settings\Temp
+Recent
+Local Settings\Recent
+Local Settings\Temporary Internet Files
\ No newline at end of file

Added: incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/disable_scheduled_tasks.cmd
URL: http://svn.apache.org/viewvc/incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/disable_scheduled_tasks.cmd?rev=730215&view=auto
==============================================================================
--- incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/disable_scheduled_tasks.cmd (added)
+++ incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/disable_scheduled_tasks.cmd Tue Dec 30 11:02:46 2008
@@ -0,0 +1,60 @@
+rem http://support.microsoft.com/kb/939039
+
+rem------------------------------------------------------------------
+rem This task defragments the computers hard disk drives.
+
+set TITLE=defragment hard disk drives
+set TASK_NAME=\Microsoft\Windows\Defrag\ScheduledDefrag
+
+echo Disabling %TITLE% scheduled task...
+"%SystemRoot%\system32\schtasks.exe" /Change /DISABLE /TN "%TASK_NAME%"
+if errorlevel 1 goto FAIL
+echo.
+
+rem------------------------------------------------------------------
+rem This task creates regular system protection points.
+
+set TITLE=system restore
+set TASK_NAME=\Microsoft\Windows\SystemRestore\SR
+
+echo Disabling %TITLE% scheduled task...
+"%SystemRoot%\system32\schtasks.exe" /Change /DISABLE /TN "%TASK_NAME%"
+if errorlevel 1 goto FAIL
+echo.
+
+
+rem------------------------------------------------------------------
+rem If the user has consented to participate in the Windows 
+rem Customer Experience Improvement Program, this job collects 
+rem and sends usage data to Microsoft.
+
+set TITLE=consolidator
+set TASK_NAME=\Microsoft\Windows\Customer Experience Improvement Program\Consolidator
+
+echo Disabling %TITLE% scheduled task...
+"%SystemRoot%\system32\schtasks.exe" /Change /DISABLE /TN "%TASK_NAME%"
+if errorlevel 1 goto FAIL
+echo.
+
+rem------------------------------------------------------------------
+rem This scheduled task prompts the Microsoft Windows Software 
+rem Quality Metrics opt-in notification.
+
+set TITLE=optin notification
+set TASK_NAME=\Microsoft\Windows\Customer Experience Improvement Program\OptinNotification
+
+echo Disabling %TITLE% scheduled task...
+"%SystemRoot%\system32\schtasks.exe" /Change /DISABLE /TN "%TASK_NAME%"
+if errorlevel 1 goto FAIL
+echo.
+
+
+rem------------------------------------------------------------------
+
+:SUCCESS
+echo Disable %TITLE% scheduled task: SUCCESS
+exit /B 0
+
+:FAIL
+echo Disable %TITLE% scheduled task: FAIL
+exit /B 1

Added: incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/disk_cleanup.cmd
URL: http://svn.apache.org/viewvc/incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/disk_cleanup.cmd?rev=730215&view=auto
==============================================================================
--- incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/disk_cleanup.cmd (added)
+++ incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/disk_cleanup.cmd Tue Dec 30 11:02:46 2008
@@ -0,0 +1,19 @@
+set SCRIPT_DIR=%~dp0
+
+echo Importing Disk Cleanup registry settings...
+"%SystemRoot%\system32\reg.exe" IMPORT "%SCRIPT_DIR%disk_cleanup.reg"
+if errorlevel 1 goto FAIL
+echo.
+
+echo Running Disk Cleanup...
+"%SystemRoot%\system32\cleanmgr.exe" /SAGERUN:01
+if errorlevel 1 goto FAIL
+echo.
+
+:SUCCESS
+echo Disk Cleanup: SUCCESS
+exit /B 0
+
+:FAIL
+echo Disk Cleanup: FAIL
+exit /B 1

Added: incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/disk_cleanup.reg
URL: http://svn.apache.org/viewvc/incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/disk_cleanup.reg?rev=730215&view=auto
==============================================================================
--- incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/disk_cleanup.reg (added)
+++ incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/disk_cleanup.reg Tue Dec 30 11:02:46 2008
@@ -0,0 +1,72 @@
+Windows Registry Editor Version 5.00
+
+; This registry file contains the entries to turn on all cleanmgr options 
+; The state flags below are set to 1, so use the command: 'CLEANMGR /sagerun:1'
+
+[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\explorer\VolumeCaches]
+
+[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\explorer\VolumeCaches\Active Setup Temp Folders]
+"StateFlags0001"=dword:00000002
+
+[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\explorer\VolumeCaches\Content Indexer Cleaner]
+"StateFlags0001"=dword:00000002
+
+[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\explorer\VolumeCaches\Downloaded Program Files]
+"StateFlags0001"=dword:00000002
+
+[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\explorer\VolumeCaches\Hibernation File]
+"StateFlags0001"=dword:00000002
+
+[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\explorer\VolumeCaches\Internet Cache Files]
+"StateFlags0001"=dword:00000002
+
+[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\explorer\VolumeCaches\Memory Dump Files]
+"StateFlags0001"=dword:00000002
+
+[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\explorer\VolumeCaches\Offline Pages Files]
+"StateFlags0001"=dword:00000002
+
+[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\explorer\VolumeCaches\Old ChkDsk Files]
+"StateFlags0001"=dword:00000002
+
+[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\explorer\VolumeCaches\Previous Installations]
+"StateFlags0001"=dword:00000002
+
+[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\explorer\VolumeCaches\Recycle Bin]
+"StateFlags0001"=dword:00000002
+
+[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\explorer\VolumeCaches\Setup Log Files]
+"StateFlags0001"=dword:00000000
+
+[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\explorer\VolumeCaches\System error memory dump files]
+"StateFlags0001"=dword:00000002
+
+[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\explorer\VolumeCaches\System error minidump files]
+"StateFlags0001"=dword:00000002
+
+[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\explorer\VolumeCaches\Temporary Files]
+"StateFlags0001"=dword:00000002
+
+[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\explorer\VolumeCaches\Temporary Setup Files]
+"StateFlags0001"=dword:00000002
+
+[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\explorer\VolumeCaches\Temporary Sync Files]
+"StateFlags0001"=dword:00000002
+
+[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\explorer\VolumeCaches\Thumbnail Cache]
+"StateFlags0001"=dword:00000002
+
+[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\explorer\VolumeCaches\Upgrade Discarded Files]
+"StateFlags0001"=dword:00000002
+
+[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\explorer\VolumeCaches\Windows Error Reporting Archive Files]
+"StateFlags0001"=dword:00000002
+
+[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\explorer\VolumeCaches\Windows Error Reporting Queue Files]
+"StateFlags0001"=dword:00000002
+
+[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\explorer\VolumeCaches\Windows Error Reporting System Archive Files]
+"StateFlags0001"=dword:00000002
+
+[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\explorer\VolumeCaches\Windows Error Reporting System Queue Files]
+"StateFlags0001"=dword:00000002

Added: incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/hibernation_disable.cmd
URL: http://svn.apache.org/viewvc/incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/hibernation_disable.cmd?rev=730215&view=auto
==============================================================================
--- incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/hibernation_disable.cmd (added)
+++ incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/hibernation_disable.cmd Tue Dec 30 11:02:46 2008
@@ -0,0 +1,11 @@
+echo Disabling hibernation...
+"%SystemRoot%\system32\powercfg.exe" /hibernate off
+if errorlevel 1 goto FAIL
+
+:SUCCESS
+echo Disable hibernation: SUCCESS
+exit /B 0
+
+:FAIL
+echo Disable hibernation: FAIL
+exit /B 1

Added: incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/ipv6_disable.cmd
URL: http://svn.apache.org/viewvc/incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/ipv6_disable.cmd?rev=730215&view=auto
==============================================================================
--- incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/ipv6_disable.cmd (added)
+++ incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/ipv6_disable.cmd Tue Dec 30 11:02:46 2008
@@ -0,0 +1,14 @@
+set SCRIPT_DIR=%~dp0
+
+echo Importing registry settings to disable IPv6...
+"%SystemRoot%\system32\reg.exe" IMPORT "%SCRIPT_DIR%disable_ipv6.reg"
+if errorlevel 1 goto FAIL
+echo.
+
+:SUCCESS
+echo Disable IPv6: SUCCESS
+exit /B 0
+
+:FAIL
+echo Disable IPv6: FAIL
+exit /B 1

Added: incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/ipv6_disable.reg
URL: http://svn.apache.org/viewvc/incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/ipv6_disable.reg?rev=730215&view=auto
==============================================================================
--- incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/ipv6_disable.reg (added)
+++ incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/ipv6_disable.reg Tue Dec 30 11:02:46 2008
@@ -0,0 +1,7 @@
+Windows Registry Editor Version 5.00
+
+; This registry file contains the entries to disable all IPv6 components 
+; http://support.microsoft.com/kb/929852
+
+[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters]
+"DisabledComponents"=dword:ffffffff
\ No newline at end of file

Added: incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/kms.cmd
URL: http://svn.apache.org/viewvc/incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/kms.cmd?rev=730215&view=auto
==============================================================================
--- incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/kms.cmd (added)
+++ incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/kms.cmd Tue Dec 30 11:02:46 2008
@@ -0,0 +1,19 @@
+echo Configuring Vista to use a KMS server for activation...
+"%SystemRoot%\system32\cscript.exe" //NoLogo "%SystemRoot%\system32\slmgr.vbs" -skms kms.unity.ad.ncsu.edu:1688
+if errorlevel 1 goto FAIL
+echo.
+
+echo Attempting Microsoft activation...
+"%SystemRoot%\system32\cscript.exe" //NoLogo "%SystemRoot%\system32\slmgr.vbs" -ato
+if errorlevel 1 goto FAIL
+echo.
+
+rem------------------------------------------------------------------
+
+:SUCCESS
+echo Disable %TITLE% scheduled task: SUCCESS
+exit /B 0
+
+:FAIL
+echo Disable %TITLE% scheduled task: FAIL
+exit /B 1

Added: incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/newsid_accept_eula.reg
URL: http://svn.apache.org/viewvc/incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/newsid_accept_eula.reg?rev=730215&view=auto
==============================================================================
--- incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/newsid_accept_eula.reg (added)
+++ incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/newsid_accept_eula.reg Tue Dec 30 11:02:46 2008
@@ -0,0 +1,6 @@
+Windows Registry Editor Version 5.00
+
+; This registry file contains the entries to bypass the license agreement when newsid.exe is run
+
+[HKEY_CURRENT_USER\Software\Sysinternals\NewSID]
+"EulaAccepted"=dword:00000001
\ No newline at end of file

Added: incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/nodyndns.reg
URL: http://svn.apache.org/viewvc/incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/nodyndns.reg?rev=730215&view=auto
==============================================================================
--- incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/nodyndns.reg (added)
+++ incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/nodyndns.reg Tue Dec 30 11:02:46 2008
@@ -0,0 +1,6 @@
+REGEDIT4
+
+[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters]
+"DisableDynamicUpdate"=dword:00000001
+[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters]
+"DisableReverseAddressRegistrations"=dword:00000001
\ No newline at end of file

Added: incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/pagefile_disable.cmd
URL: http://svn.apache.org/viewvc/incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/pagefile_disable.cmd?rev=730215&view=auto
==============================================================================
--- incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/pagefile_disable.cmd (added)
+++ incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/pagefile_disable.cmd Tue Dec 30 11:02:46 2008
@@ -0,0 +1,4 @@
+rem http://support.microsoft.com/kb/892104
+rem This registry setting makes Windows delete the paging file when you shut down Windows. You can then use the method that you want to create an image of the partition where Windows is installed and to deploy the image to the destination computers. The first time that the destination computer is restarted after you deploy the image, the paging file is resized to match the memory model of the destination computer. 
+
+"%SystemRoot%\system32\reg.exe" add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "PagingFiles" /t REG_SZ /d "C:\pagefile.sys 0 0" /f
\ No newline at end of file

Added: incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/set_computer_name.vbs
URL: http://svn.apache.org/viewvc/incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/set_computer_name.vbs?rev=730215&view=auto
==============================================================================
--- incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/set_computer_name.vbs (added)
+++ incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/set_computer_name.vbs Tue Dec 30 11:02:46 2008
@@ -0,0 +1,109 @@
+strCurrentImagePath = "C:\cygwin\home\root\currentimage.txt"
+strSetnameLogfile = "C:\VCL\Logs\setname.log"
+strWSNamePath = "C:\VCL\Utilities\wsname.exe"
+
+Set objShell = WScript.CreateObject("WScript.Shell")
+
+' Read the currentimage.txt file and find the id= line
+strImageID = GetKeyValue(strCurrentImagePath, "id", "=")
+
+' If image ID wasn't found don't include it
+If Len(strImageID) > 0 Then
+   WScript.Echo "Image ID found in currentimage.txt: " & strImageID
+   strComputerName = "$DNS-" & strImageID
+Else
+   WScript.Echo "Image ID could not be retrieved from currentimage.txt"
+   strComputerName = "$DNS"
+End If
+WScript.Echo "wsname.exe computer name string: " & strComputerName
+
+' Execute the wsname.exe utility
+' Set the computer name to the hostname ($DNS) followed by the image ID
+strSetnameCommand = strWSNamePath & " /N:" & strComputerName & " /LOGFILE:" & strSetnameLogfile & " /IGNOREMEMBERSHIP /ADR /NOSTRICTNAMECHECKING /LONGDNSHOST"
+WScript.Echo "wsname.exe command: " & strSetnameCommand
+
+On Error Resume Next
+objShell.Exec(strSetnameCommand)
+
+if not err.number=0 then 
+   WScript.Echo "Error running setname.exe: " & err.Description
+   vbCritical err.clear
+else
+   WScript.Echo "Successfully ran setname.exe"
+end if
+
+
+
+' Read the currentimage.txt file and find the prettyname= line
+strImagePrettyname = GetKeyValue(strCurrentImagePath, "prettyname", "=")
+
+' If image pretty name wasn't found use the computer name for My Computer
+If Len(strImagePrettyname) > 0 Then
+   WScript.Echo "Image prettyname found in currentimage.txt: " & strImagePrettyname
+   strMyComputerName = strImagePrettyname
+Else
+   WScript.Echo "Image prettyname could not be retrieved from currentimage.txt"
+   strMyComputerName = "%COMPUTERNAME%"
+End If
+
+' Modify the registry key that controls how My Computer is displayed
+' Set it to the image prettyname
+strMyComputerReg = "HKCR\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\"
+On Error Resume Next
+objShell.RegWrite strMyComputerReg, strMyComputerName, "REG_EXPAND_SZ"
+if not err.number=0 then 
+   WScript.Echo "Error setting registry key: " & strMyComputerReg & "\Default: " & strMyComputerName
+   vbCritical err.clear
+else
+   WScript.Echo "Set registry key: " & strMyComputerReg & "\Default: " & strMyComputerName
+end if
+
+On Error Resume Next
+objShell.RegWrite strMyComputerReg & "LocalizedString", strMyComputerName, "REG_EXPAND_SZ"
+if not err.number=0 then 
+   WScript.Echo "Error setting registry key: " & strMyComputerReg & "\LocalizedString: " & strMyComputerName
+   vbCritical err.clear
+else
+   WScript.Echo "Set registry key: " & strMyComputerReg & "\LocalizedString: " & strMyComputerName
+end if
+
+WScript.Quit
+'----------------------------------------------------------
+Function GetKeyValue(strFilePath, strKey, strDeliminator)
+
+   Set objFSO = CreateObject("Scripting.FileSystemObject")
+   On Error Resume Next
+   Set objInputFile = objFSO.OpenTextFile(strCurrentImagePath)
+   
+   if not err.number=0 then 
+      WScript.Echo "Error opening " & strCurrentImagePath & ", " & err.Description
+      vbCritical err.clear
+      GetKeyValue = ""
+   else
+      WScript.Echo "File opened: " & strCurrentImagePath
+
+      strPattern = "^" & strKey & strDeliminator & "(.*)$"
+      Do While Not (objInputFile.atEndOfStream) And Len(strValue)=0
+         strLine = objInputFile.ReadLine
+         strValue = RegExpVal(strPattern, strLine, 0)
+      Loop
+   
+      objInputFile.Close
+   
+      GetKeyValue = strValue
+   end if
+
+End Function
+
+'----------------------------------------------------------
+Function RegExpVal(strPattern, strString, idx)
+	On Error Resume Next
+	Dim regEx, Match, Matches, RetStr
+	Set regEx        = New RegExp
+	regEx.Pattern    = strPattern
+	regEx.IgnoreCase = True
+	regEx.Global     = True
+	Set Matches      = regEx.Execute( strString )
+	RegExpVal        = Matches( 0 ).SubMatches( idx )
+End Function
+'----------------------------------------------------------
\ No newline at end of file

Added: incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/set_default_permissions.cmd
URL: http://svn.apache.org/viewvc/incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/set_default_permissions.cmd?rev=730215&view=auto
==============================================================================
--- incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/set_default_permissions.cmd (added)
+++ incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/set_default_permissions.cmd Tue Dec 30 11:02:46 2008
@@ -0,0 +1,111 @@
+rem Check the argument and set the TARGET_PATH variable
+if %1=="" goto USAGE
+set TARGET_PATH=%1
+
+rem Check if the target is a file or directory
+rem Necessary because icacls.exe dies if you use the /T (traverse subdirectories) switch on a file
+set LAST_CHARACTER=%TARGET_PATH:~-2,-1%
+IF "%LAST_CHARACTER%"=="\" (
+   echo %TARGET_PATH% appears to be a directory
+   set T=/T
+) ELSE IF "%~x1"=="" (
+   echo %TARGET_PATH% appears to be a directory
+   set T=/T
+) ELSE (
+   echo %TARGET_PATH% appears to be a file
+   set T=
+)
+
+set ICACLS=%SystemRoot%\system32\icacls.exe
+set CHMOD=C:\Cygwin\bin\chmod.exe
+set CHOWN=C:\Cygwin\bin\chown.exe
+set CHGRP=C:\Cygwin\bin\chgrp.exe
+set LS=C:\Cygwin\bin\ls.exe
+
+if not exist "%TARGET_PATH%" goto TARGET_NOT_EXIST
+if not exist "%ICACLS%" goto ICACLS_NOT_EXIST
+rem if not exist "%CHMOD%" goto CHMOD_NOT_EXIST
+if not exist "%CHOWN%" goto CHOWN_NOT_EXIST
+rem if not exist "%CHGRP%" goto CHGRP_NOT_EXIST
+
+
+echo Setting default permissions on %TARGET_PATH%...
+echo.
+
+:UNIX_PERMISSIONS
+rem Don't set unix permissions, Windows permissions will override them
+rem echo Setting Unix permissions to 755...
+rem "%CHMOD%" -R -v 755 %TARGET_PATH%
+rem if errorlevel 1 goto FAILED
+rem echo.
+
+rem echo Setting Unix owner to root...
+rem "%CHOWN%" -R -v root %TARGET_PATH%
+rem if errorlevel 1 goto FAILED
+rem echo.
+
+echo Setting Unix ownership to root:None...
+"%CHOWN%" -R -v root:None %TARGET_PATH%
+if errorlevel 1 goto FAILED
+echo.
+
+
+:WINDOWS_PERMISSIONS
+echo Setting Windows owner to root...
+"%ICACLS%" "%TARGET_PATH%" %T% /C /setowner root
+if errorlevel 1 goto FAILED
+echo.
+
+echo Resetting existing NTFS permissions and enabling inherited permissions...
+"%ICACLS%" "%TARGET_PATH%" %T% /C /reset
+if errorlevel 1 goto FAILED
+echo.
+
+echo Setting NTFS permissions...
+"%ICACLS%" "%TARGET_PATH%" /C /grant:r root:(OI)(CI)(F) Administrators:(OI)(CI)(F) Everyone:(OI)(CI)(RX)
+
+if errorlevel 1 goto FAILED
+echo.
+
+
+:RESULTS
+echo New Unix permissions...
+"%LS%" -la %TARGET_PATH%
+echo.
+
+echo New Windows permissions...
+"%ICACLS%" "%TARGET_PATH%"
+echo.
+
+
+:SUCCESS
+echo Successfully set default permissions on "%TARGET_PATH%"
+exit /B 0
+
+:USAGE
+echo Usage: set_default_permissions.cmd [TARGET_PATH]
+exit /B 1
+
+:TARGET_NOT_EXIST
+echo Failed to set default permissions, file or directory does not exist: "%TARGET_PATH%"
+exit /B 1
+
+:ICACLS_NOT_EXIST
+echo Failed to set default permissions, icacls.exe does not exist
+exit /B 1
+
+:CHMOD_NOT_EXIST
+echo Failed to set default permissions, chmod.exe does not exist
+exit /B 1
+
+:CHOWN_NOT_EXIST
+echo Failed to set default permissions, chown.exe does not exist
+exit /B 1
+
+:CHGRP_NOT_EXIST
+echo Failed to set default permissions, chgrp.exe does not exist
+exit /B 1
+
+:FAILED
+echo Failed to set default permissions on %TARGET_PATH%
+exit /B 1

Added: incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/set_network_location.cmd
URL: http://svn.apache.org/viewvc/incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/set_network_location.cmd?rev=730215&view=auto
==============================================================================
--- incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/set_network_location.cmd (added)
+++ incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/set_network_location.cmd Tue Dec 30 11:02:46 2008
@@ -0,0 +1,5 @@
+rem 0=Private (Home/Work), 1=Public
+
+echo Setting registry key to specify network location...
+"%SystemRoot%\System32\reg.exe" add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\CurrentVersion\NetworkList\Signatures\FirstNetwork" /v Category /t REG_DWORD /d 00000000 /f
+echo.
\ No newline at end of file

Added: incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/update_cygwin.cmd
URL: http://svn.apache.org/viewvc/incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/update_cygwin.cmd?rev=730215&view=auto
==============================================================================
--- incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/update_cygwin.cmd (added)
+++ incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/update_cygwin.cmd Tue Dec 30 11:02:46 2008
@@ -0,0 +1,56 @@
+rem This script reconfigures the Cygwin sshd service. 
+rem It regenerates the computer's host keys. This is necessary
+rem when Sysprep is run and a new SID is generated.
+
+@echo off
+
+echo Stopping the Cygwin sshd service...
+net stop sshd
+echo ERRORLEVEL: %ERRORLEVEL%
+
+echo.
+echo Deleting old "passwd" and "group" files...
+del /q c:\cygwin\etc\group
+del /q c:\cygwin\etc\passwd
+c:\cygwin\bin\sleep.exe 1
+
+echo.
+echo Creating new "group" file...
+c:\cygwin\bin\mkgroup.exe -l > c:\cygwin\etc\group
+
+echo.
+echo Creating new "passwd" file and changing root's primary group from 'None' to 'Administrators'
+c:\cygwin\bin\mkpasswd.exe -l | c:\cygwin\bin\sed.exe -e 's/\(^root.*:\)513\(:.*\)/\1544\2/' > c:\cygwin\etc\passwd
+echo ERRORLEVEL: %ERRORLEVEL%
+
+echo.
+echo Restoring ownership of files...
+c:\cygwin\bin\chown.exe -v root:None /etc/ssh*
+c:\cygwin\bin\chown.exe -v -R root:None /home/
+c:\cygwin\bin\chown.exe -v root:None /var/empty
+c:\cygwin\bin\chown.exe -v root:None /var/log/sshd.log
+c:\cygwin\bin\chown.exe -v root:None /var/log/lastlog
+c:\cygwin\bin\sleep.exe 2
+
+echo.
+echo Delete old SSH keys...
+del /q c:\cygwin\etc\ssh_host_*
+
+echo.
+echo Regenerating SSH keys...
+c:\cygwin\bin\ssh-keygen.exe -t rsa1 -f /etc/ssh_host_key -N ""
+c:\cygwin\bin\ssh-keygen.exe -t rsa -f /etc/ssh_host_rsa_key -N ""
+c:\cygwin\bin\ssh-keygen.exe -t dsa -f /etc/ssh_host_dsa_key -N ""
+c:\cygwin\bin\sleep.exe 1
+
+echo.
+echo Setting sshd service startup mode to auto...
+"%SystemRoot%\System32\sc.exe" config sshd start= auto
+echo ERRORLEVEL: %ERRORLEVEL%
+
+echo.
+echo Starting the Cygwin sshd service...
+net start sshd
+echo ERRORLEVEL: %ERRORLEVEL%
+
+exit /B %ERRORLEVEL%

Added: incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/vcl_startup.cmd
URL: http://svn.apache.org/viewvc/incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/vcl_startup.cmd?rev=730215&view=auto
==============================================================================
--- incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/vcl_startup.cmd (added)
+++ incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/vcl_startup.cmd Tue Dec 30 11:02:46 2008
@@ -0,0 +1,52 @@
+@echo off
+
+rem Get the name of this batch file and the directory it is running from
+set SCRIPT_NAME=%~nx0
+set SCRIPT_DIR=%~dp0
+rem Remove trailing slash from SCRIPT_DIR
+set SCRIPT_DIR=%SCRIPT_DIR:~0,-1%
+
+echo -------------------------------------------------------
+echo.
+
+echo Directory %SCRIPT_NAME% is running from: %SCRIPT_DIR%
+echo.
+
+echo %SCRIPT_NAME% beginning to run at:
+time /T
+echo.
+
+echo Stopping ntsyslog service...
+net stop ntsyslog
+echo ERRORLEVEL: %ERRORLEVEL%
+echo.
+
+echo Calling %SCRIPT_DIR%\configure_networking.vbs...
+cscript.exe //NoLogo "%SCRIPT_DIR%\configure_networking.vbs"
+echo ERRORLEVEL: %ERRORLEVEL%
+echo.
+
+echo Starting ntsyslog service...
+net start ntsyslog
+echo ERRORLEVEL: %ERRORLEVEL%
+echo.
+
+echo Calling %SCRIPT_DIR%\update_cygwin.cmd...
+call "%SCRIPT_DIR%\update_cygwin.cmd"
+echo ERRORLEVEL: %ERRORLEVEL%
+echo.
+
+echo Calling %SCRIPT_DIR%\vcl_startup_firewall.cmd...
+call "%SCRIPT_DIR%\vcl_startup_firewall.cmd"
+echo ERRORLEVEL: %ERRORLEVEL%
+echo.
+
+echo Generating application event log entry: %COMPUTERNAME% is READY...
+"%SystemRoot%\system32\eventcreate.exe" /T INFORMATION /L APPLICATION /SO %SCRIPT_NAME% /ID 555 /D "%COMPUTERNAME% is READY."
+echo ERRORLEVEL: %ERRORLEVEL%
+echo.
+
+echo %SCRIPT_NAME% finished at:
+time /T
+
+exit /B 0

Added: incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/vcl_startup_firewall.cmd
URL: http://svn.apache.org/viewvc/incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/vcl_startup_firewall.cmd?rev=730215&view=auto
==============================================================================
--- incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/vcl_startup_firewall.cmd (added)
+++ incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Scripts/vcl_startup_firewall.cmd Tue Dec 30 11:02:46 2008
@@ -0,0 +1,35 @@
+echo Enabling SSH port 22 traffic from the private network...
+
+"%SystemRoot%\System32\netsh.exe" advfirewall firewall set rule ^
+name="VCL: allow SSH port 22 from private network" ^
+new ^
+action=allow ^
+description="Allows incoming TCP port 22 traffic from 10.x.x.x addresses" ^
+dir=in ^
+enable=yes ^
+localip=10.0.0.0/8 ^
+localport=22 ^
+protocol=TCP ^
+remoteip=10.0.0.0/8
+
+echo ERRORLEVEL: %ERRORLEVEL%
+echo.
+
+
+echo Enabling ping traffic from the private network...
+
+"%SystemRoot%\System32\netsh.exe" advfirewall firewall set rule ^
+name="VCL: allow ping from private network" ^
+new ^
+action=allow ^
+description="Allows incoming ping (ICMP type 8) messages from 10.x.x.x addresses" ^
+dir=in ^
+enable=yes ^
+localip=10.0.0.0/8 ^
+protocol=icmpv4:8,any ^
+remoteip=10.0.0.0/8
+
+echo ERRORLEVEL: %ERRORLEVEL%
+echo.
+
+exit /B 0
\ No newline at end of file

Added: incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Utilities/CleanUp.exe
URL: http://svn.apache.org/viewvc/incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Utilities/CleanUp.exe?rev=730215&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Utilities/CleanUp.exe
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Utilities/EmptyRecycleBin.exe
URL: http://svn.apache.org/viewvc/incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Utilities/EmptyRecycleBin.exe?rev=730215&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/vcl/trunk/managementnode/tools/Sysprep_Vista/Utilities/EmptyRecycleBin.exe
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream