|
server
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Hardcode credentials?access the remote drives? The users that will run this script will not have their credentials on the server. 'ServerName and HostSitePath variables are assumed. Const OverwriteExisting = TRUE Set objFSO = CreateObject("Scripting.FileSystemObject") objFSO.CopyFile "\\"& ServerName &"\C$\WINDOWS\system32\inetsrv\MetaBase.xml", "\\" & ServerName & HostSitePath & "metabackup\", OverwriteExisting Set objFSO = NOTHING Thanks, Anthony Something in here should help you
http://www.jdhitsolutions.com/resources/scripts/vbrunas.txt Show quoteHide quote "Anthony Cano" <AC***@discussions.microsoft.com> wrote in message news:%23R5CgWSiHHA.4680@TK2MSFTNGP06.phx.gbl... > How can I hardcode credentials into this portion of my script so that I > can access the remote drives? The users that will run this script will > not have their credentials on the server. > > 'ServerName and HostSitePath variables are assumed. > Const OverwriteExisting = TRUE > > Set objFSO = CreateObject("Scripting.FileSystemObject") > > objFSO.CopyFile "\\"& ServerName > &"\C$\WINDOWS\system32\inetsrv\MetaBase.xml", "\\" & ServerName & > HostSitePath & "metabackup\", OverwriteExisting > > Set objFSO = NOTHING > > > > Thanks, > > Anthony > >
Unparsable Query
Remove all members in local Power User Group Delete Parent registry key based on subkey data fire script in remote servers logevent command bombs scheduled task logoff vbs script REMOTE LOGIN & Data Extraction Remove members from local administrators group Scripting change to the Power Management Schedule Task Options Scripting change to the Power Management Schedule Task Options |
|||||||||||||||||||||||