It generates new admin account with some kind of complex password. If you are with AD and LAPS, you don't need this at all.
local admin script
Anonymous
Hi,
I am wondering what below script will do. When I searched the keywords on google it give not give me the right answer.
$SecurePasswordKey = '76492d1116743f0423413b16050a5345MgB8AE='
$key = (3,4,2,3,56,34,254,222,1,1,2,23,42,3)
$SecurePassword = ConvertTo-SecureString -String $SecurePasswordKey -Key $key
New-LocalUser "admin" -Password $SecurePassword
I want to use this script to configure LAPS.
Windows for business Windows Client for IT Pros Devices and deployment Set up, install, or upgrade
1,544 questions
Windows for business Windows Server User experience PowerShell
Microsoft Security Intune Configuration Manager Deployment
1,071 questions
Microsoft Security Intune Configuration Manager Other
4,608 questions
Windows for business Windows Client for IT Pros User experience Other
Accepted answer
-
Pavel yannara Mirochnitchenko 13,331 Reputation points MVP
2022-06-24T11:49:44.317+00:00
2 additional answers
Sort by: Most helpful
-
Sherry Kissinger 5,526 Reputation points
2022-06-24T11:38:37.75+00:00 This may be the wrong forum for this question. Try asking in a power shell section?
-
Anonymous
2022-06-30T12:44:47.213+00:00 Yes I have generate a simple password and let LAPS changed it.