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 I tried the above VBS scripts from the technet link, and got: X:\PHA Scripts>cscript CscSyncAll.VBS Microsoft (R) Windows Script Host Version 5.7 Copyright (C) Microsoft Corporation. All rights reserved. X:\PHA Scripts\CscSyncAll.VBS(100, 1) SWbemServicesEx: Invalid class So I am unclear as to why it doesn't work. Oh, I can figure out that I need some routines loaded, or need to bind to some API that it's not binding to, or whatever the VBS terminology is, but my searching is failing to find a quick fix ... Last line is what's causing the error ... Set objWMILocator = WScript.CreateObject("WbemScripting.SWbemLocator") Set objWMIServices = objWMILocator.ConnectServer(strComputerName, cWMINameSpace, strUserID, strPassword) Set objCache = objWMIServices.Get("Win32_OfflineFilesCache=@") ~ Finally, powerful endpoint security that ISN'T a resource hog! ~ ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/> ~
