B
Barkley Bees
This is a continuation of my previous thread 'Local Admin Password change
script for Domain PC's'. We have opted to use a startup script
(adminpass.vbe) to change the local admin passwords on our PC's.
----------------------------------------------------------
Set WshShell = WScript.CreateObject("WScript.Shell")
WSHShell.Run "Net User administrator password
Set WSHShell = Nothing
----------------------------------------------------------
I have created a group policy and link enabled it to a non-production OU for
testing. When logging on with some test machines I could see that it was not
working. Doing a "gpresult /z > c:\gp.txt" would show: "This script has not
yet been executed". I figured it may be a timing issue so I set "Always wait
for the network at computer startup and logon" and enabled it also. It seems
to be hit and miss. Some logons show:
Startup Scripts
---------------
GPO: Local Admin Password Change
Name: adminpass.vbe
Parameters:
LastExecuted: 6:21:49
while others still show "This script has not yet been executed". Only one
time out of about 30 has the local admin password changed successfully
during testing. I am spinning my wheels in the mud it would seem. Appreciate
any pointers that anyone could throw my way.
- I also verified that the script "adminpass.vbe" had replicated to the
SYSVOL of all our DC's.
- I also tried it as a 'shutdown' script but to no avail.
script for Domain PC's'. We have opted to use a startup script
(adminpass.vbe) to change the local admin passwords on our PC's.
----------------------------------------------------------
Set WshShell = WScript.CreateObject("WScript.Shell")
WSHShell.Run "Net User administrator password
Set WSHShell = Nothing
----------------------------------------------------------
I have created a group policy and link enabled it to a non-production OU for
testing. When logging on with some test machines I could see that it was not
working. Doing a "gpresult /z > c:\gp.txt" would show: "This script has not
yet been executed". I figured it may be a timing issue so I set "Always wait
for the network at computer startup and logon" and enabled it also. It seems
to be hit and miss. Some logons show:
Startup Scripts
---------------
GPO: Local Admin Password Change
Name: adminpass.vbe
Parameters:
LastExecuted: 6:21:49
while others still show "This script has not yet been executed". Only one
time out of about 30 has the local admin password changed successfully
during testing. I am spinning my wheels in the mud it would seem. Appreciate
any pointers that anyone could throw my way.
- I also verified that the script "adminpass.vbe" had replicated to the
SYSVOL of all our DC's.
- I also tried it as a 'shutdown' script but to no avail.