Networking Forums

Networking Forums > Computer Networking > Windows Networking > is there a way to change the local computer administrator password via group policy? Please help

Reply
Thread Tools Display Modes

is there a way to change the local computer administrator password via group policy? Please help

 
 
El CiD
Guest
Posts: n/a

 
      10-17-2007, 03:16 AM
is there a way to change the local computer administrator password via
group policy?

Please let me specify my question. I would like to know if theres a
way to change the administrator password of all computers connected to
my domain controller via the domain policy. I am not speaking of the
domain admin password , but the default windows administrator password
that each computer have prior joining to the domain.


thanks guys.. I appreciate your input.


 
Reply With Quote
 
 
 
 
Mathieu CHATEAU
Guest
Posts: n/a

 
      10-17-2007, 06:18 AM
Hello,

GPO don't have this feature.Uou can use vbscript to achieve this.

Here is a vbscript from the famous Brian Desmond.
Fill a workstations.txt with workstations names and the newPass = ""
If you don't know how to fill the text file, please let me know.
If you administrator local name is not "Administrator", change it in the
script (line WinNT://" & line & "/Administrator, user")


'================================================= =========================
' NAME: Change local administrator password on list of machines
' AUTHOR: Brian Desmond
' DATE : 6/19/2006
'================================================= =========================
Option Explicit

' What to change the password to
Const newPass = ""

Const LogFile = "AdminReset.log"
Const inputFile = "workstations.txt"

Dim fso
Set fso = CreateObject("Scripting.FileSystemObject")

Dim shl
Set shl = WScript.CreateObject("WScript.Shell")

Dim fil
Set fil = fso.OpenTextFile(inputFile)

WriteToLog "Beginning Pass of " & inputFile & " at " & Now()
WScript.Echo "Beginning Pass of " & inputFile & " at " & Now()
'On Error Resume Next

Dim usr
Dim line
Dim exec
Dim pingResults
While Not fil.AtEndOfStream
line = fil.ReadLine

Set exec = shl.Exec("ping -n 2 -w 1000 " & line)
pingResults = LCase(exec.StdOut.ReadAll)

If InStr(pingResults, "reply from") Then
WriteToLog line & " responded to ping"
WScript.Echo line & " responded to ping"

On Error Resume Next

Set usr = GetObject("WinNT://" & line & "/Administrator, user")
usr.SetPassword newPass
usr.SetInfo

If Err.Number <> 0 Then
WriteToLog "Error resetting password on " & line & ": " & Err.Description
WScript.Echo "Error resetting password on " & line & ": " &
Err.Description
Err.Clear
Else
WriteToLog "Password Reset on " & line
WScript.Echo "Password Reset on " & line
End If
Else
WriteToLog line & " did not respond to ping"
WScript.Echo line & " did not respond to ping"
End If
Wend

fil.Close

Sub WriteToLog(LogData)
On Error Resume Next

Dim fil
'8 = ForAppending
Set fil = fso.OpenTextFile(LogFile, 8, True)

fil.WriteLine(LogData)

fil.Close
Set fil = Nothing
End Sub

Set usr = Nothing
Set fil = Nothing
Set fso = Nothing
Set shl = Nothing

--
Cordialement,
Mathieu CHATEAU
English blog: http://lordoftheping.blogspot.com
French blog: http://www.lotp.fr


"El CiD" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> is there a way to change the local computer administrator password via
> group policy?
>
> Please let me specify my question. I would like to know if theres a
> way to change the administrator password of all computers connected to
> my domain controller via the domain policy. I am not speaking of the
> domain admin password , but the default windows administrator password
> that each computer have prior joining to the domain.
>
>
> thanks guys.. I appreciate your input.
>
>


 
Reply With Quote
 
Daniel Sutton
Guest
Posts: n/a

 
      10-17-2007, 02:16 PM
It is not possible to do from group policy, the only things you can really do
in group policy is change the user name for the administrator account and
disable the account altogethor.
A script or a program called Cusrmgr are the only really ways to do this.
Take a look at
http://support.microsoft.com/kb/272530

The scripting guy also wrote a piece on scripting the process

http://www.microsoft.com/technet/scr...7/hey0703.mspx


--
Network Administrator


"El CiD" wrote:

> is there a way to change the local computer administrator password via
> group policy?
>
> Please let me specify my question. I would like to know if theres a
> way to change the administrator password of all computers connected to
> my domain controller via the domain policy. I am not speaking of the
> domain admin password , but the default windows administrator password
> that each computer have prior joining to the domain.
>
>
> thanks guys.. I appreciate your input.
>
>
>

 
Reply With Quote
 
Steve Riley [MSFT]
Guest
Posts: n/a

 
      10-18-2007, 07:26 AM
In Jesper's and my book, Protect Your Windows Network, we included a tool
called Passgen that will help you do this. We've put the tools on our
website, you can download them free.

http://www.protectyourwindowsnetwork.com/tools.htm

--
Steve Riley
(E-Mail Removed)
http://blogs.technet.com/steriley
http://www.protectyourwindowsnetwork.com


"El CiD" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> is there a way to change the local computer administrator password via
> group policy?
>
> Please let me specify my question. I would like to know if theres a
> way to change the administrator password of all computers connected to
> my domain controller via the domain policy. I am not speaking of the
> domain admin password , but the default windows administrator password
> that each computer have prior joining to the domain.
>
>
> thanks guys.. I appreciate your input.
>
>

 
Reply With Quote
 
Maestro
Guest
Posts: n/a

 
      10-18-2007, 10:18 PM
On Oct 18, 2:26 am, "Steve Riley [MSFT]" <steve.ri...@microsoft.com>
wrote:
> In Jesper's and my book, Protect Your Windows Network, we included a tool
> called Passgen that will help you do this. We've put the tools on our
> website, you can download them free.
>
> http://www.protectyourwindowsnetwork.com/tools.htm
>
> --
> Steve Riley
> steve.ri...@microsoft.comhttp://blogs.technet.com/sterileyhttp://www.protectyourwindowsnetwork.com
>
> "El CiD" <yaderw...@hotmail.com> wrote in message
>
> news:(E-Mail Removed)...
>
> > is there a way to change the local computer administrator password via
> > group policy?

>
> > Please let me specify my question. I would like to know if theres a
> > way to change the administrator password of all computers connected to
> > my domain controller via the domain policy. I am not speaking of the
> > domain admin password , but the default windows administrator password
> > that each computer have prior joining to the domain.

>
> > thanks guys.. I appreciate your input.


sites' not working btw

 
Reply With Quote
 
El CiD
Guest
Posts: n/a

 
      10-19-2007, 02:18 AM
THANK YOU!




On Wed, 17 Oct 2007 07:16:00 -0700, Daniel Sutton
<(E-Mail Removed)> wrote:

>It is not possible to do from group policy, the only things you can really do
>in group policy is change the user name for the administrator account and
>disable the account altogethor.
>A script or a program called Cusrmgr are the only really ways to do this.
>Take a look at
>http://support.microsoft.com/kb/272530
>
>The scripting guy also wrote a piece on scripting the process
>
>http://www.microsoft.com/technet/scr...7/hey0703.mspx


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
FTP Problem: Let local user change their password Dan Windows Networking 0 02-25-2007 07:58 PM
Change Administrator Password on XP machines Tom Windows Networking 6 07-07-2006 08:12 AM
The local policy Allow Access to this computer from the network is Carl Windows Networking 0 08-18-2005 01:11 AM
Changing password to connect to a computer in my work group Keith Broadband Hardware 1 11-27-2004 12:05 AM
password prompted for administrator on local machine Juan Windows Networking 2 04-09-2004 04:46 PM



1 2 3 4 5 6 7 8 9 10 11