H
hecresper
Hi,
Hopefully, this doesn't turn up to be a double posting. I used FreeAgent
for my first post, but I'm not sure if it went through. So, here it goes.
I created a Workstations OU and a moved all my Domain Computers into that
OU. I created a Workstations GPO specifically for that OU. Now I want to
put that GPO to good use by leveraging the Computer Startup script portion
of it. I made sure that Domain Computers had Read and Apply Policy security
settings. I copied my script into the GPO's Computer Startup script folder.
I added the command line argument needed for my script. I clicked 'OK. The
next day my PCs are all stuck at 'Running startup scripts...' I don't know
what I'm doing wrong here. The script runs fine when done manually.
Here's the script:
@echo off
net use s: \\path-to-replicated-share\support /persistent:no
if exist s:\scriptlog\%computername%.txt goto end
net user administrator %1
echo Administrator password changed > s:\scriptlog\%computername%.txt
:end
net use s: /delete
The %1 gets expanded from the command line argument supplied in the GPO.
Anyone knows of maybe a checklist that I could go through to make sure I
didn't miss something?
Thanks,
Hector
Hopefully, this doesn't turn up to be a double posting. I used FreeAgent
for my first post, but I'm not sure if it went through. So, here it goes.
I created a Workstations OU and a moved all my Domain Computers into that
OU. I created a Workstations GPO specifically for that OU. Now I want to
put that GPO to good use by leveraging the Computer Startup script portion
of it. I made sure that Domain Computers had Read and Apply Policy security
settings. I copied my script into the GPO's Computer Startup script folder.
I added the command line argument needed for my script. I clicked 'OK. The
next day my PCs are all stuck at 'Running startup scripts...' I don't know
what I'm doing wrong here. The script runs fine when done manually.
Here's the script:
@echo off
net use s: \\path-to-replicated-share\support /persistent:no
if exist s:\scriptlog\%computername%.txt goto end
net user administrator %1
echo Administrator password changed > s:\scriptlog\%computername%.txt
:end
net use s: /delete
The %1 gets expanded from the command line argument supplied in the GPO.
Anyone knows of maybe a checklist that I could go through to make sure I
didn't miss something?
Thanks,
Hector