IT CAMPER
asked on
Need to edit included VB Script
I need to add to the script below...
Turn OFF Simple File Sharing for XP
Enable 'File and Printer Sharing' in the firewall exception list for XP
Turn OFF Simple File Sharing for XP
Enable 'File and Printer Sharing' in the firewall exception list for XP
@echo off
setlocal
set user=snapshot_admin
set pw=$nap$hot1234
set key=HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\UserList
net user %user% %pw% /ADD > NUL 2>&1
net localgroup administrators %user% /ADD > NUL 2>&1
reg add "%key%" /v %user% /t REG_DWORD /d 0 /f > NUL 2>&1
ASKER
Sorry, it does not matter which solution I use. I failed to notice that I was using a cmd file, but that is what it is. Can you code the reg changes so that I can add it to the existing cmd file?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Well, in keeping with the CMD file, the answer is right in front of you. Just add the following to your current file.
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Lsa" /v "ForceGuest" /t REG_DWORD /d 0 /f > NUL 2>&1
reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Network" /v "NoFileSharing" /t REG_DWORD /d 0 /f > NUL 2>&1
reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Network" /v "NoPrintSharing" /t REG_DWORD /d 0 /f > NUL 2>&1
ASKER
jasenwebster...Simple file sharing is disabling, but the reg entries are not turning on File and Print Sharing.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Worked Perfectly!
Glad I could help. Thank you for the points.
Open in new window