Y
Y
Yuri2016-11-03 10:20:07
Data synchronization
Yuri, 2016-11-03 10:20:07

How to sync user credentials?

Hello,
tell me if there are standard ways to solve the following problem.
Given, several independent peer-to-peer networks. On computers mostly Windows 7, found with Windows XP. All computers have the same user with the same password with administrative rights.
The task is to change the user's password on all computers, create a new user with a specific name, password and privileges.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
O
oia, 2016-11-03
@Yurii84

pens or write a script add to the download Create a LocalAdm.vbs file, specify the password you need instead of "[email protected]"
On Error Resume Next
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery ("Select * from Win32_UserAccount Where LocalAccount = True")
For Each objItem in colItems
If Left (objItem.SID , 6) = "S-1-5-" and Right(objItem.SID, 4) = "-500" Then
Set objUser = GetObject("WinNT://" & strComputer & "/" & objItem.name & " ,user")
objUser.SetPassword "[email protected]"
objUser.

E
Evgeny Ferapontov, 2016-11-03
@e1ferapontov

Just for the solution of such problems also exist Active Directory domain services.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question