Miller Bonnie L. <[EMAIL PROTECTED]> wrote on 10/06/2008 
10:42:42 AM:

> How about one of these?
> 
> http://www.hypernews.org/HyperNews/get/computers/languages/60/1.html
> 
> http://blogs.technet.com/filecab/archive/2007/05/01/synchronizing-
> offline-files-from-the-command-line.aspx

AH! Thanks!

> BTW, if you can, please post what you come up with.  We are doing 
> some fixes on laptops with offline cache issues right now and this 
> looks handy!

Well, disregarding all the interactive prompting:

First I'd probably remotely execute "%SYSTEMROOT%\SYSTEM32\MOBSYNC 
/LOGOFF", using something like "PSEXEC" from SysInternals, probably 
(doesn't appear that you can MOBSYNC a remote PC).

Then:
reg add \\%host%\HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\NetCache 
/v FormatDatabase /t REG_DWORD /d 1
reg query \\%host%\HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\NetCache 
/s

("%host%" being the IP address or hostname of the system to affect)

Next, refresh the GPO with either a remote execution of "GPUPDATE /FORCE" 
or "SECEDIT /REFRESHPOLICY USER_POLICY /ENFORCE "
(we still have a lot of Windows 2000 machines, so we'd have to check the 
OS by looking at .. something I haven't figured out yet :-))

Last, I'd remotely reboot, again using "PSSHUTDOWN".

Haven't had time to fully flesh this out, but my co-worker has the 
scripted parts of adding the reg keys working ...

Thanks, and HTH
 
~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

Reply via email to