That is how I do many of them. I also use an if exists clause so it does not 
run every time.

Here is the one I use to reset the computers in windows update. It looks for a 
text file, if it exists it knows hit has already run...if not it runs and 
creates it for the next time.

if exist c:\wsus.txt goto end
echo %date% %time% >> c:\wsus.txt
reg delete HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate /v 
AccountDomainSid /f
reg delete HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate /v 
PingID /f
reg delete HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate /v 
SusClientId /f
net stop wuauserv
net start wuauserv
wuauclt /resetauthorization /detectnow
:end




-----Original Message-----
From: Eric Wittersheim [mailto:[email protected]] 
Sent: Wednesday, September 09, 2009 9:32 AM
To: NT System Admin Issues
Subject: Re: Possible to have GPO assigned software package install at shutdown?

Hmm, Would I then make a batch file to call the msi?  I'll give that a
shot.  Thanks.

On 9/9/09, Kennedy, Jim <[email protected]> wrote:
>
> Assign it as a shutdown script, it is in the computer configuration/windows
> settings/scripts section. There is both startup and shutdown.
>
>
> -----Original Message-----
> From: Eric Wittersheim [mailto:[email protected]]
> Sent: Wednesday, September 09, 2009 9:23 AM
> To: NT System Admin Issues
> Subject: Possible to have GPO assigned software package install at shutdown?
>
> I have a VPN client that I am trying to deploy software to via GPO.
> The problem is that the client connects via the windows VPN client and
> it makes the connection after the computer runs it startup scripts and
> applying the software policy.  Is there anyway to have the software
> install at shutdown instead of startup?  The client is XP SP3 and
> server is W2k3 SP2.
>
> TIA,
>
> Eric
>
> ~ Finally, powerful endpoint security that ISN'T a resource hog! ~
> ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~
>
> ~ Finally, powerful endpoint security that ISN'T a resource hog! ~
> ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~
>
>

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

Reply via email to