Re: Running a logon script under another account
- From: "Peter Avalos" <petera@xxxxxxxxxxx>
- Date: Fri, 7 Oct 2005 14:45:50 -0400
Thanks, I'll give it a try and let you know how it works out.
I guess this solution depends on the focus being in the password textbox.
"JHP" <goawayspam@xxxxxxx> wrote in message
news:O$Pp%2332yFHA.2792@xxxxxxxxxxxxxxxxxxxxxxx
> Not sure if this will work for you, but it's worth a try:
>
> Option Explicit
>
> Dim objShell
> Const WindowStyle = 2
> Const WaitOnReturn = False
>
> Set objShell = Wscript.CreateObject("WScript.Shell")
> objShell.Run "RunAs /user:ACCOUNT@DOMAIN " &_
> "C:\DIRECTORY\VSSetup.exe""", WindowStyle, WaitOnReturn
> WScript.Sleep 100
> objShell.Sendkeys "PASSWORD~"
> Set objShell = Nothing
>
> "Peter Avalos" <petera@xxxxxxxxxxx> wrote in message
> news:e6hWTT1yFHA.1856@xxxxxxxxxxxxxxxxxxxxxxx
>> Does anyone know how to run a .vbs logon script under a different account
>> than the account that's logging in? The reason I need to do this is that
>> the script installs a software package if it's not already installed on
>> the machine that the user is logging onto. The Active Directory Group
>> Policy restricts software installation to domain administrators, so I
>> wanted to run this script with elevated priviledges to get around this
>> restriction imposed by the Group Policy. Has anyone effectively dealt
>> with a similar issue?
>>
>> Some background info:
>> --All client machines are Windows XP Pro
>> --Main AD Server (Global Catalog) is 2003. Other domain controllers are
>> 2003 and 2000
>>
>>
>
>
.
- Follow-Ups:
- Re: Running a logon script under another account
- From: Peter Avalos
- Re: Running a logon script under another account
- References:
- Running a logon script under another account
- From: Peter Avalos
- Re: Running a logon script under another account
- From: JHP
- Running a logon script under another account
- Prev by Date: Re: Running a logon script under another account
- Next by Date: Re: Running a logon script under another account
- Previous by thread: Re: Running a logon script under another account
- Next by thread: Re: Running a logon script under another account
- Index(es):
Relevant Pages
|