|
Yeah, we were talking startup scripts though. You aren't
going to get it to run for non-admins unless you use something that elevates the
permissions temporarily to run it. Startup scripts should run it fine though
because they run as localsystem. So what are the issues you see with running it
as a startup script? From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Harding, Devon Sent: Friday, October 07, 2005 11:28 AM To: [email protected] Subject: RE: [ActiveDir] GPO Permissions with .vbs 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 Alain Lissoir
- RE: [ActiveDir] GPO Permissions with .vbs Rich Milburn
- Re: [ActiveDir] GPO Permissions with .vbs Kamlesh Parmar
- RE: [ActiveDir] GPO Permissions with .vbs joe
- 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 Harding, Devon
