@ECHO OFF :Prompt ::Prompting technician for machine name/IP which to connect SET /P TargetMachine=Please enter the machine name or IP address: CLS ECHO Symantec Uninstaller Password Check on \\%TargetMachine% :Menu ECHO. ECHO 1. Symantec Uninstaller Password Check (Enabled 0x0 or disabled 0x1) ECHO 2. Symantec Uninstaller Password On (0x0) ECHO 3. Symantec Uninstaller Password Off (0x1) set choice= set /p choice=Please type in your choice and press enter. if not '%choice%'==' set choice=%choice:~0,1% if '%choice%'=='1' goto SymantecPasswordCheck if '%choice%'=='2' goto SymantecPasswordOn if '%choice%'=='3' goto SymantecPasswordOff ECHO "%choice%" is not valid please try again ECHO. goto Menu ::Listing 3: CheckSP.cmd :SymantecPasswordCheck @reg query "\\%TargetMachine%\HKLM\SOFTWARE\Intel\LANDesk\VirusProtect6\CurrentVersion" /v UseVPUninstallPassword GOTO Prompt ::Listing 4: SPOn.cmd :SymantecPasswordOn @reg add "\\%TargetMachine%\HKLM\SOFTWARE\Intel\LANDesk\VirusProtect6\CurrentVersion" /v UseVPUninstallPassword /t REG_DWORD /d 1 /f @reg add "\\%TargetMachine%\HKLM\SOFTWARE\Intel\LANDesk\VirusProtect6\CurrentVersion" /v LockUnloadServices /t REG_DWORD /d 1 /f GOTO Prompt ::Listing 5: SPOff.cmd :SymantecPasswordOff @reg add "\\%TargetMachine%\HKLM\SOFTWARE\Intel\LANDesk\VirusProtect6\CurrentVersion" /v UseVPUninstallPassword /t REG_DWORD /d 0 /f @reg add "\\%TargetMachine%\HKLM\SOFTWARE\Intel\LANDesk\VirusProtect6\CurrentVersion" /v LockUnloadServices /t REG_DWORD /d 0 /f GOTO Prompt