#191997 - 2009-01-30 08:44 PM
Re: Migrate Offline Files to a New Server
[Re: masken]
|
sns
Just in Town
Registered: 2009-01-30
Posts: 2
Loc: Canada
|
I am new to the forum (1st post) and a newbie to kixtart! This udf would fix a major issue I have at one of my cleints sites. The question I have is: how do I apply this udf in a script? I know that the "syntax" states to use MigOfflineFiles("ServerOld", "ServerNew") but when I replace the server old and server new with the names of the servers, I get this error:
ERROR : expected ')'! Script: U:\offlinefiles.KIX Line : 65
This is basically how it looks in the my offlinefiles.kix file:
MigOfflineFiles("myoldservername", "mynewservername")
----UDF below---- line 64 ; Is Offline Files enabled? line 65 $RetCode = WSHPipe("csccmd /IsEnabled",1) line 66 If UCase($RetCode[0]) = "DISABLED"
I went through and read the forum sticky on using udfs in script but I think maybe Im just to new to get this one going w/o any help. Any one have any idea what I am doing wrong?
*edit* I needed to add the udf "wshpipe" into the script. Now it's returning values.
After implementing this udf into my kix logon script I found that the warning in the notification area was still complaining about being offline on the old server. it was also still throwing errors when trying to synchronize. After doing some digging I found that if this is run once and the computer restarted this will clear those warnings.
reg add "hklm\SOFTWARE\Microsoft\Windows\CurrentVersion\netcache" /v FormatDatabase /t reg_dword /d 00000001
I put this into my current login script after the original script is called "\\myserver\netlogon\kix32 \\myserver\netlogon\kixtart.kix" in my batch file.
Hope this helps
Edited by sns (2009-02-06 04:00 PM)
|
|
Top
|
|
|
|
Moderator: Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart
|
1 registered
(Allen)
and 1198 anonymous users online.
|
|
|