Re: VBscript that restart the domain comptuer
- From: "Richard Mueller [MVP]" <rlmueller-nospam@xxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 22 Dec 2008 08:30:32 -0600
"madal" <madal@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:2E458F2D-48E9-4577-ABA0-0B4E59B13EE0@xxxxxxxxxxxxxxxx
I would like to restart domain computer once a day and like to deploy
script
via GPO. Would it be possible ? also at the time it restarts i would like
to
call another vbscript that deletes some files in computer.
Can someone point out how to achieve this ?
With a GPO you can deploy logon, logoff, startup, and shutdown scripts. The
shutdown script, for example, runs during shutdown. It does not initiate
shutdown. I don't see how a GPO script would meet your needs. Logon and
logoff scripts run with the credentials of the user, who probably does not
have permission to restart or delete files.
A VBScript program using WMI can shutdown or restart a computer remotely.
For example:
http://www.microsoft.com/technet/scriptcenter/guide/sas_cpm_gmen.mspx
Perhaps you could restart the computers remotely. You could read computer
names from a text file. WMI can also be used in a VBScript program to
remotely delete files. For example:
http://www.microsoft.com/technet/scriptcenter/guide/sas_fil_vudw.mspx
You need a query for the specific files you want to delete. Browse more of
"Microsoft Windows 2000 Scripting Guide" for more on using WMI queries to
delete files meeting your conditions:
http://www.microsoft.com/technet/scriptcenter/guide/sas_fil_ciaj.mspx
--
Richard Mueller
MVP Directory Services
Hilltop Lab - http://www.rlmueller.net
--
.
- Follow-Ups:
- Re: VBscript that restart the domain comptuer
- From: madal
- Re: VBscript that restart the domain comptuer
- References:
- VBscript that restart the domain comptuer
- From: madal
- VBscript that restart the domain comptuer
- Prev by Date: VBscript that restart the domain comptuer
- Next by Date: Re: VBscript that restart the domain comptuer
- Previous by thread: VBscript that restart the domain comptuer
- Next by thread: Re: VBscript that restart the domain comptuer
- Index(es):
Relevant Pages
|