• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

WMI & Scheduled Tasks

tfinch2

Lifer
I need a quick and dirty way to creating a job on a Windoze VM, so I am going to use Scheduled Tasks.

I can across this:

http://www.microsoft.com/techn...man_lpja.mspx?mfr=true

That describes how to do it, but from this it only looks like you can set one up for a specific time, rather that "When my computer starts" like the Scheduled Task GUI allows you to do.

Does anyone have an example that allows you do it on boot rather than at a specific time?

~~~

Moved to Operating Systems where you have a better shot at a solution.

Markbnj, Programming Moderator
 

1. Click Start | Run, type gpedit.msc
2. Expand Computer configuration | Windows Settings, click on Scripts (Startup/Shutdown)
3. Learn to spell "Windows" like an adult 🙂
 
Originally posted by: Smilin

1. Click Start | Run, type gpedit.msc
2. Expand Computer configuration | Windows Settings, click on Scripts (Startup/Shutdown)
3. Learn to spell "Windows" like an adult 🙂

I'm not sure if this is what I'm looking for. Let me give a better explanation of what I need to do. We have X software package installed on many Windows VMs. These VMs are pretty ad hoc, they do not belong to any domain, they are created and deleted on a daily basis for hardware certification testing, etc. This X software package must be explicitly started on each VM when it reboots.

To get around having to go to the VM and start X software package, sometimes we set up a scheduled task to have this software start automatically "When my computer starts" through the Scheduled Task GUI.

What I need to do is create an ISO image that has a script on it that will autorun when I mount the ISO to the VM. This script will create the scheduled task that runs X software package "When my computer starts". I found examples on how to create scheduled tasks, but only for specific times (IE Every Tuesday at 12:30 AM) rather than "When my computer starts".

Also keep in mind I want this software to run prior to anyone logging in to Windows. I would prefer to install X software package as a service, but the decision to not do that was already made.
 
Back
Top