Werbung: SecurityConsole.de verwaltet Ihre Computer mit Security Essentails aus der Cloud!
30 Tage kostenfrei testen und 20% Rabatt für Ihre Bestellung mit Promocode: WBF2685582
(Promocode gültig bis 31.12.2011)

Group:  English: Windows Server » microsoft.public.windows.server.scripting
Thread: Hardcode credentials?

HTVi
TV Discussion Newsgroups

Hardcode credentials?
"Anthony Cano" <ACano[ at ]discussions.microsoft.com> 4/27/2007 11:41:47 PM
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


Re: Hardcode credentials?
"Jeremy" <jeremy[ at ]discussions.microsoft.com> 4/28/2007 1:04:44 AM
Something in here should help you
http://www.jdhitsolutions.com/resources/scripts/vbrunas.txt

"Anthony Cano" <ACano[ at ]discussions.microsoft.com> wrote in message
news:%23R5CgWSiHHA.4680[ at ]TK2MSFTNGP06.phx.gbl...
[Quoted Text]
> 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
>
>

Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net
Suche nach Orten, Städten, Postleitzahlen, Vorwahlen, Kfz-Kennzeichen