Re: Deleting Scheduled Tasks across the Enterprise using SMS 2003
- From: "Garth" <Spam@xxxxxxx>
- Date: Fri, 19 Oct 2007 12:36:43 -0400
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@xxxxxxxxxxxxxxxx
Kim 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,
>
> 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.
>
you just create a package, add a program with the command line, at
/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
.
- Follow-Ups:
- 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
- Prev by Date: Re: SCCM 2007 Installing Clients
- Next by Date: Re: Deleting Scheduled Tasks across the Enterprise using SMS 2003
- 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
|
Loading