Shutdown script not running

G

Guest

I have added a shutdown script to the local Computer Policy/Computer Configuration/Windows Settings/Scripts/Shutdown object, but the script does not run. Any Ideas would be greatly appreciated. The script is located at c:
Script Below ( copied from earlier posting by Pegasus)

@echo off
echo User=%UserName%, date=%date%, time=%time% 1>c:\test.log 2>c:\test.err
net use 1>>c:\test.log 2>>c:\test.err
 
P

Pegasus \(MVP\)

- What exactly did you specify as a script name in the Local Computer Policy
(path? file name?)
- Where exactly does the script reside (path? file name?)


LeRoy Kadrmas said:
I have added a shutdown script to the local Computer Policy/Computer
Configuration/Windows Settings/Scripts/Shutdown object, but the script does
not run. Any Ideas would be greatly appreciated. The script is located at
c:
 
G

Guest

The file is located at "C:\WINNT\system32\GroupPolicy\Machine\Scripts\Shutdown" and is specified as "test.vbs" in the local computer policy
 
P

Pegasus \(MVP\)

LeRoy Kadrmas said:
The file is located at
"C:\WINNT\system32\GroupPolicy\Machine\Scripts\Shutdown" and is specified as
"test.vbs" in the local computer policy.
Sorry, I'm not an expert in visual basic scripts, I can
only help you with batch files.
 
T

Torgeir Bakken (MVP)

LeRoy said:
The file is located at "C:\WINNT\system32\GroupPolicy\Machine\Scripts\Shutdown" and is specified as "test.vbs" in the local computer policy.

Hi

Is this the content of your test.vbs file (from a earlier post in this thread):

@echo off
echo User=%UserName%, date=%date%, time=%time% 1>c:\test.log 2>c:\test.err
net use 1>>c:\test.log 2>>c:\test.err
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top