Today I was noticing that some clients on the network were experiencing errors when users logged out and windows synced for them.
In order to fix this, I had to do the following:
- TS to SBS Server
- Navigate to \\SBS\netlogon
- Edit the SBS_LOGIN_SCRIPT.bat file in this directory. It should look like:
\\SBS\Clients\Setup\setup.exe /s SBS
Change it to this:
@echo off
rem ==================================================
rem
rem Title: Login Script
rem Author: The Author
rem Date: April 4 2008
rem Description: Network Login Script
rem
rem ==================================================
:SBS_SETUP
rem Default sbs2k3 client setup
\\SBS\Clients\Setup\setup.exe /s SBS
WSCRIPT.EXE \\SBS\logon_scripts\rm_sync_ext.vbs
Now you have to navigate to My Computer
Go to your C:\ Drive
Create a New Folder named “logon_scripts”
Right Click the folder, select properties
Go to the Sharing Tab. Enable Sharing. Call it “logon_scripts”
Click OK to save
Enter the c:\logon_scripts directory
Edit your login script (rm_sync_ext.vbs), which should look like this
Const sComputer="." Const HKEY_Current_User = &H80000001 'HKCU hive Const sKeyPath = "Software\Microsoft\Windows\CurrentVersion\NetCache\ExclusionErrorSuppressionList"'73 Dim oReg SetoReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & _ sComputer & "\root\default:StdRegProv") oReg.CreateKey HKEY_Current_User, sKeyPath oReg.SetDWORDValue HKEY_Current_User, sKeyPath, ".mdb", 1 oReg.SetDWORDValue HKEY_Current_User, sKeyPath, ".pst", 1
That’s it. Now you should be able to add more lines to the botton of your script to stop from syncing other file types.
Enjoy!