@echo off 

echo.
echo Please wait while starting the Virtual Disk Service...
sc config vds start= demand
sc start vds
echo.
echo Done...


echo.
echo Please wait while romoving Admini Share and ICW...
reg add "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\lanmanserver\parameters" /v "AutoShareServer" /t REG_DWORD /d 0 /f 
reg add "HKEY_CURRENT_USER\Software\Microsoft\Internet Connection Wizard" /v Completed /t REG_BINARY /d 01000000 /f 
reg add "HKEY_CURRENT_USER\Software\Microsoft\Internet Connection Wizard" /v ShellNext /t REG_SZ /d http://localhost/cpmgr/login.asp /f 
echo.
echo Done...

echo.
echo Please wait while adding Legal Notice MSG and title...
reg add "HKEY_LOCAL_MACHINE\software\microsoft\windows\Currentversion\policies\system" /v "legalnoticecaption" /t REG_SZ /d "CallPilot Server Maintenance Console - Authorized use only" /f 
reg add "HKEY_LOCAL_MACHINE\software\microsoft\windows\Currentversion\policies\system" /v "legalnoticetext" /t REG_SZ /d "FOLLOW NORTEL NETWORKS MAINTENANCE PROCEDURES. Do not install software, hardware or make configuration changes except as explicitly authorized by Nortel Networks. Unauthorized access to any program or data on this system is not permitted. This system may be monitored at any time for operational reasons, therefore, if you are not an authorized user, PLEASE LOG OUT IMMEDIATELY. This console is intended to be used only for CallPilot system maintenance operators. Please log out when maintenance operations are complete." /f 
echo.
echo Done...

echo.
echo Please wait while re-setting boot entry timeout...
bootcfg /timeout 5
echo.
echo Done...

echo.
echo.
echo Please wait while system setting services to automatic start...
echo.

sc config SNMP start= demand 

sc config nbhalmon start= auto 
sc config MSFTPSVC start= auto 
sc config W3SVC start= auto 
sc config nbosaofs start= auto 
sc config nbosavs103 start= auto 
sc config nbosavs102 start= auto 
sc config nbosavs start= auto 
sc config nmaos start= auto 
sc config MPCXLDAP start= auto 
sc config RemoteAccess start= auto 
sc config "CTMS Server" start= auto 
sc config evtrtr start= auto 
echo Done...

echo.
echo Please wait while changing CD-ROM drive letter...
diskpart /s %WINDIR%\system32\setcdz\setcdz.txt 
echo.
echo Done...


echo.
echo Please wait while disabling the Virtual Disk Service...
sc config vds start= disabled
echo.
echo Done...

echo.
echo.
echo Please wait while system removing unused files and rebooting...
echo.
\windows\system32\setcdz\chgadmpswd.vbs 
\windows\system32\restart.vbs 
echo.

echo Done...
