cancel
Showing results for 
Search instead for 
Did you mean: 

Remove old server from offline synch using CSCCMD.exe?

henderson1977
Grafter
Posts: 191
Registered: ‎31-07-2007

Remove old server from offline synch using CSCCMD.exe?

Hi all
There are 500+ profiles and redirected My Docs on serverA. We need to move all profiles and redirected My Docs to serverB. We are using the Microsoft CSCCMD.exe utility to manipulate the local CSC folder with the following logon script:-
\\domain.com\NETLOGON\csccmd.exe /moveshare:\\serverA\mydocs$ \\serverB\mydocs$
\\domain.com\NETLOGON\csccmd.exe /disconnect:\\serverA\mydocs$
\\domain.com\NETLOGON\csccmd.exe /delete:\\serverA\mydocs$ /recurse2
We're having real trouble getting consistency from the script, some machines process fine but others still insist on synch'ing the serverA on logon and logoff which will cause a real headache if hundreds of users report "failed to connect to serverA" messages.
We've also tried csccmd.exe /UNPIN2 command with similar results. All machines are XP SP3.
Any ideas please?
Thanks
Scott
3 REPLIES 3
7up
Community Veteran
Posts: 15,824
Thanks: 1,579
Fixes: 17
Registered: ‎01-08-2007

Re: Remove old server from offline synch using CSCCMD.exe?

I can't help you out much there I'm afraid but our resident Guru might... look for the user name Barry Zubel - Pure genius although I think he's mainly a *nix man.
I need a new signature... i'm bored of the old one!
henderson1977
Grafter
Posts: 191
Registered: ‎31-07-2007

Re: Remove old server from offline synch using CSCCMD.exe?

It has been suggested elsewhere that the the XP SP3 version of fdeploy.dll creates misleading errors in Event Log and that are remedied by reverting to the XP SP2 version of fdeploy.dll.  Does this tally with the "known issue" you allude to?  Are there any other negative side-effects of fdeploy.dll we need to be aware of?  I have tried to replace fdeploy.dll with the XP SP2 version for testing purposes but the XP SP3 version persistently restores itself, so I assume fdeploy.dll is a protected Windows file safeguarded by the System File Checker (SFC)?
We have since managed to get more consistent results and remove the old server synch'ing altogether during logon and logoff with the following approach:-
1 Run the following Logon script at every logon:-
\\domain.com\NETLOGON\csccmd.exe /moveshare:\\serverA\mydocs$ \\serverB\mydocs$
\\domain.com\NETLOGON\csccmd.exe /unpin2:\\serverA\mydocs$ /user /recurse2
\\domain.com\NETLOGON\csccmd.exe /delete:\\serverA\mydocs$ /recurse2
2 Run the following Logoff script at every logoff:-
\\domain.com\NETLOGON\csccmd.exe /unpin2:\\serverA\mydocs$ /user /recurse2
\\domain.com\NETLOGON\csccmd.exe /delete:\\serverA\mydocs$ /recurse2
We had to run both of these Logon and Logoff scripts everytime because users ‘roaming’ to different laptops/desktops were seeing the old server reappear, I assume because each local CSC caches the old server until ‘csccmd.exe /moveshare’ updates it to the new server.
We are piping the results for each user's logon and logoff scripts to a txt file for analytical purposes.  Even though all appears well we are finding inconsistent results within these logfiles.  For example, one machine records no errors such as:-
---------------------------------------------
C:\WINDOWS>\\domain.com\NETLOGON\csccmd.exe /moveshare:\\serverA\mydocs$ \\serverB\mydocs$
The command completed successfully.
C:\WINDOWS>\\domain.com\NETLOGON\csccmd.exe /unpin2:\\serverA\mydocs$ /user /recurse2
Unpinning "\\serverA\mydocs$" -> SUCCESS (PinCount = 0, HintFlags = 0x0)
The command completed successfully.
C:\WINDOWS>\\domain.com\NETLOGON\csccmd.exe /delete:\\serverA\mydocs$ /recurse2
Deleting "\\serverA\mydocs$" -> SUCCESS
The command completed successfully.
---------------------------------------------
…while another machine reports errors have occurred even though the old server is no longer synch’ing, such as:-
---------------------------------------------
C:\WINDOWS>\\domain.com\NETLOGON\csccmd.exe /moveshare:\\serverA\mydocs$ \\serverB\mydocs$
The command completed successfully.
C:\WINDOWS>\\domain.com\NETLOGON\csccmd.exe /unpin2:\\serverA\mydocs$ /user /recurse2
Unpinning "\\serverA\mydocs$" -> ERROR 1
System error 1 has occurred.
Incorrect function.
C:\WINDOWS>\\domain.com\NETLOGON\csccmd.exe /delete:\\serverA\mydocs$ /recurse2
Deleting "\\serverA\mydocs$" -> ERROR 5
System error 5 has occurred.
Access is denied.
--------------------------------------------
… and those machines that were reporting no errors previously have been showing errors at a later date and vice versa, so we have a mixed bag of random errors, despite the old server no longer synch'ing on any of these machines.  “Why worry then?” you ask.  Well, we need to understand the significance of these errors in case we hit problems further down the line.  For example, 2 of the 8 testers have already lost the contents of their MyDocs folder but managed to manually restore them from a previous date.  But how and why did this happen?  We cannot roll out this solution to the wider audience until these issues are understood and resolved.  We couldn’t find anything useful in the Event Logs or userenv.log file.
Any help would be much appreciated.
Scott
7up
Community Veteran
Posts: 15,824
Thanks: 1,579
Fixes: 17
Registered: ‎01-08-2007

Re: Remove old server from offline synch using CSCCMD.exe?

Hello Scott,
I'm afraid I can't really help you out with this. I did suggest you keep an eye out for Barry Zubel as he's our resident expert on these forums. Typically he tends to know pretty much everything but he rarely jumps into topics these days you might be better sending him a PM to see if he can help.
All the best
I need a new signature... i'm bored of the old one!