|
I tested several scenarios: 1) batch file in startup
script in GPO with non-privileged user logging on – job appeared in AT. 2) Your script in startup
script in GPO with non-privileged user logging on – job appeared in AT. 3) Your script in logon
script in GPO with non-privileged user logging on – job did not appear in AT. So I verified your results that this does
not work from a logon script with
a non-privileged user, and I verified that the same script can schedule jobs on the computer from a startup script. Hope that helps – Rich --------------------------------------------------------------------------- From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Harding, Devon If I put this in the Logon Scripts, it
runs but just for local administrators. I need this to run for ALL users. From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of joe Error messages? Do you
get anything? Do you know for sure the script is running? From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Well it didn’t
work….here’s the script: strComputer = "." strNewCmd = "C:\PROGRA~1\INTERN~1\iexplore.exe
-new http://www.domain.com" Set objWMIService =
GetObject("winmgmts:{impersonationLevel=impersonate}!\\" &
strComputer & "\root\cimv2") Set colScheduledTasks
=
objWMIService.ExecQuery("Select * from Win32_ScheduledJob") For Each objTask in colScheduledTasks
intJobID = objTask.JobID
strCurCmd = objTask.Command
If strCurCmd = strNewCmd Then
Set objInstance =
objWMIService.Get("Win32_ScheduledJob.JobID=" & intJobID)
objInstance.Delete
End If Next Set objNewJob =
objWMIService.Get("Win32_ScheduledJob") errJobCreated = objNewJob.Create (strNewCmd,
"********110000.000000-240", True , 1 OR 2 OR 4 OR 8 OR 16, , ,
JobID) From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of joe I can't
visualize why it shouldn't work. From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of It’ll
only schedule tasks on logon scripts, not startup. Someone correct me if
I’m wrong. From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rich Milburn Can you
set it to be a startup script instead of a logon script (computer configuration
> software section of GPO instead of user configuration > software
section) then it will run with privs, not as the non-admin. --------------------------------------------------------------------------- From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of The
problem is the at.exe command can only be run by administrators. How can
I allow non-admins to run at.exe therefore allowing my script to work. From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tim Vander Kooi What is
your OS? Is it a user specific task or a computer based task? If it is a task
scheduled to run after the user logs on I'm sure it is permissions, or lack
there of. Tim
Vander Kooi Microsoft
Systems Administrator Explorer
Pipeline From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of I created a GPO for all Domain Users
to run a .vbs script to create a Scheduled Task. It works with Domain
Admins, but not with regular users. How can I fix this? Windows
Systems Engineer Southern
Wine & Spirits - BSG 954-602-2469 __________________________________ -------APPLEBEE'S
INTERNATIONAL, INC. CONFIDENTIALITY NOTICE-------
|
- RE: [ActiveDir] GPO Permissions with .vbs Rich Milburn
- RE: [ActiveDir] GPO Permissions with .vbs Harding, Devon
- RE: [ActiveDir] GPO Permissions with .vbs Harding, Devon
- Re: [ActiveDir] GPO Permissions with .vbs Kamlesh Parmar
- Re: [ActiveDir] GPO Permissions with .vbs Kamlesh Parmar
- RE: [ActiveDir] GPO Permissions with .vbs Harding, Devon
