Re: Deleting Scheduled Tasks across the Enterprise using SMS 2003
- From: "Kim Oppalfens [MVP]" <""Kim dot Oppalfens\"@google mail.com">
- Date: Fri, 19 Oct 2007 22:09:26 +0200
RicNagy wrote:
Garth, Kimas Garth said there is no need to run this in a batch file.
Created a bat called NightlyRebootTaskDel.bat
In it I have:
Start C:\WINNT\System32\cmd.exe
AT /delete /yes
Exit
When I double click it...it runs and gets rid of the scheduled tasks, however command prompt remains open.
"Garth" wrote:
There is no need for an MSI, you can create a package/program with the commandline only, but if you like you can put it into a batch file.
"RicNagy" <RicNagy@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:80BB5CBC-094A-42B7-A5AA-3801D0588938@xxxxxxxxxxxxxxxxKim I have another question. Instead of building this into a package.
Could I build either a logon script or a .bat file that SMS could call that
would run the
AT /delete /yes from a cmd prompt.
With a .bat my hope would be to run it against a collection and still not
have to install anything on a workstation whereas with a MSI you still are
technically going to install something that has to be removed from ARP.
"Kim Oppalfens [MVP]" <""Kim dot Oppalfen" wrote:
RicNagy wrote:Hello,you just create a package, add a program with the command line, at
I have a question. A while back before I was here, there was an MSI
created. This MSI was distributed via Active Directory and GPO. The purpose
of the MSI was to force nightly reboots of workstations. The only thing that
was built into the MSI was a custom action:
AT.exe 23:59 /interactive /every:M,T,W,TH,F,S,SU cmd.exe /c
c:\winnt\tools\shutdown.exe /R /t:3600
This created a scheduled task on every workstation to reboot them at night.
We no longer need this because we are migrating to SMS 2003.
I tested the uninstall of the MSI using add/remove programs. The program did
uninstall however it did not delete the scheduled task. In fact upon
conclusion of the unininstall it created a second task.
What we would like to do is create collections in SMS 2003. Disable the GPO
for this MSI hence removing the so called program. Then using the created
collections in conjunction with the AT command remove the scheduled tasks.
Now I know the at command would normally would be
AT \\computername /delete /yes and that would delete all scheduled tasks
However my question is how to run this against the collections we create ins
SMS.
/delete /yes
You don't need \\computername since it runs locally anyway.
--
"Everyone is an expert at something"
Kim Oppalfens - Sms Expert for lack of any other expertise
Windows Server System MVP - SMS
http://www.blogcastrepository.com/blogs/kim_oppalfenss_systems_management_ideas/default.aspx
Just use the at command as the commandline of your package.
--
"Everyone is an expert at something"
Kim Oppalfens - Sms Expert for lack of any other expertise
Windows Server System MVP - SMS
http://www.blogcastrepository.com/blogs/kim_oppalfenss_systems_management_ideas/default.aspx
.
- References:
- Re: Deleting Scheduled Tasks across the Enterprise using SMS 2003
- From: Kim Oppalfens [MVP]
- Re: Deleting Scheduled Tasks across the Enterprise using SMS 2003
- From: Garth
- Re: Deleting Scheduled Tasks across the Enterprise using SMS 2003
- From: RicNagy
- Re: Deleting Scheduled Tasks across the Enterprise using SMS 2003
- Prev by Date: Re: Deleting Scheduled Tasks across the Enterprise using SMS 2003
- Next by Date: Re: Updating from sms 2003 to 2007?
- Previous by thread: Re: Deleting Scheduled Tasks across the Enterprise using SMS 2003
- Next by thread: Re: Deleting Scheduled Tasks across the Enterprise using SMS 2003
- Index(es):
Relevant Pages
|