[파워쉘]로컬사용자 패스워드 변경
# Script/Powershell2016. 1. 5. 13:58[파워쉘]로컬사용자 패스워드 변경

$user = [adsi]"WinNT://$env:computerName/[사용자이름] $user.setpassword("암호")

[파워쉘]로컬사용자 리스트 추출
# Script/Powershell2016. 1. 4. 18:07[파워쉘]로컬사용자 리스트 추출

Get-WmiObject -Class Win32_UserAccount -Filter "LocalAccount='True'" | Select PSComputername, Name, Status, Disabled, AccountType, Lockout, PasswordRequired, PasswordChangeable, SID 출처 : https://mcpmag.com/articles/2015/04/15/reporting-on-local-accounts.aspx

image