Startup scripts not working

G

Guest

Hi all,

I have a startup script that was working fine for a while. Now all of a
sudden it doesn't work anymore. The only thing that I know of that changed
was the server that the .exe file is on. It is now a virtual server.

Here is a sample of the script that I have that used to work.

Option explicit
Dim oShell, FSO, file1,

Set oShell = WScript.CreateObject("WScript.Shell")
Set FSO = createobject("Scripting.filesystemobject")

file1 = FSO.FileExists("c:\Program Files\PatchLink\Update Agent\dagent.exe")

If file1 = True Then
oShell.Run "runas /user:domain\username ""\\servername\setup.exe -s"""
WScript.Sleep 1500
oShell.SendKeys "password~"
Else
End If

Set FSO = Nothing

WScript.Quit
 
G

Guest

I can run it as a logged on user and it works fine. I also tested as a local
startup policy using gpedit.msc and that works too. It seems that it just
won't work with the AD startup settings.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top