Windows Server Tweaks |
Go Back to List of FAQs Previous Next |
On the 2012 Server, open the Control Panel >> Administrative Tools
Right click on Windows PowerShell(x86) and choose Run As Administrator:
At the blue screen, type:
REG ADD HKLM\SYSTEM\CurrentControlSet\Services\LanManWorkstation\Parameters /v DirectoryCacheLifetime /t 4 /d 0 /f REG ADD HKLM\SYSTEM\CurrentControlSet\Services\LanManWorkstation\Parameters /v FileNotFoundCacheLifetime /t 4 /d 0 /f REG ADD HKLM\SYSTEM\CurrentControlSet\Services\LanManWorkstation\Parameters /v FileInfoCacheLifetime /t 4 /d 0 /f
REG ADD HKLM\SYSTEM\CurrentControlSet\Services\LanManWorkstation\Parameters /v EnableOpLocks /t 4 /d 0 /f REG ADD HKLM\SYSTEM\CurrentControlSet\Services\LanManWorkstation\Parameters /v EnableOpLockForceClose /t 4 /d 1 /f REG ADD HKLM\SYSTEM\CurrentControlSet\Services\LanManWorkstation\Parameters /v CachedOpenLimit /t 4 /d 0 /f REG ADD HKLM\SYSTEM\CurrentControlSet\Services\LanManWorkstation\Parameters /v EnableSecuritySignature /t 4 /d 0 /f REG ADD HKLM\SYSTEM\CurrentControlSet\Services\LanManWorkstation\Parameters /v RequireSecuritySignature /t 4 /d 0 /f REG ADD HKLM\SYSTEM\CurrentControlSet\Services\MRXSmb\Parameters /v OplocksDisabled /t 4 /d 1 /f
net user guest /active:yes net share visualjs=c:\visualjs /GRANT:Everyone,FULL net share visualjs=c:\visualjs /GRANT:HomeUsers,FULL rem icacls "C:\VISUALJS" /grant Everyone:F /inheritance:e /T net share printers=C:\WINDOWS\SYSTEM32\SPOOL\PRINTERS /GRANT:HomeUsers,FULL net share printers=C:\WINDOWS\SYSTEM32\SPOOL\PRINTERS /GRANT:Everyone,FULL rem icacls "C:\WINDOWS\SYSTEM32\SPOOL\PRINTERS" /grant Everyone:F /inheritance:e /T netsh advfirewall firewall set rule group="Network Discovery" new enable=Yes netsh advfirewall firewall set rule group="File and Printer Sharing" new enable=Yes netsh advfirewall firewall add rule name="Shopkeeper" dir=in action=allow program="C:\VISUALJS\VJS.EXE" enable=yes netsh advfirewall firewall add rule name="Shopkeeper" dir=out action=allow program="C:\VISUALJS\VJS.EXE" enable=yes
REG ADD HKLM\SYSTEM\CurrentControlSet\Services\LanManServer\Parameters /v EnableOpLocks /t 4 /d 0 /f REG ADD HKLM\SYSTEM\CurrentControlSet\Services\LanManServer\Parameters /v EnableOpLockForceClose /t 4 /d 1 /f REG ADD HKLM\SYSTEM\CurrentControlSet\Services\LanManServer\Parameters /v CachedOpenLimit /t 4 /d 0 /f REG ADD HKLM\SYSTEM\CurrentControlSet\Services\MRXSmb\Parameters /v OplocksDisabled /t 4 /d 1 /f REG ADD HKLM\SYSTEM\CurrentControlSet\Services\MRXSmb\Parameters /v EnableSecuritySignature /t 4 /d 0 /f REG ADD HKLM\SYSTEM\CurrentControlSet\Services\MRXSmb\Parameters /v RequireSecuritySignature /t 4 /d 0 /f
REG ADD HKLM\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters /v AllowInsecureGuestAuth /t 4 /d 1 /f Answer Yes at the following prompt
|