Skip to content

sanglyb/ps-changeAndSetLocalAdmins

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ps-changeAndSetLocalAdmins

PowerShell scripts for adding and changing passwords for local administraotors.

To run scripts you should run runScript.ps1. It executes script add-local-admins.ps1 on remote host. Also it gets list of computers, where to add admins or change their passwords from file !hosts.txt. It takes usernames and passwords from file !users.txt

!users.txt should be in csv format, for example something like that: user1,Passw0rd user2,Passw0rd user3,Passw0rd

Each host in file !hosts.txt should be on single line, like comp1 comp2 comp3

On remote computers must be enabled remote powershell execution.

More info in my blog - https://www.mytechnote.ru/article/skript-dlya-smeny-paroley-lokalnym-administratoram-powershell

About

PowerShell scripts for adding and changing passwords for local administraotors.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published