local admin script

Anonymous
2022-06-24T11:02:10.91+00:00

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
Windows for business Windows Server User experience PowerShell
Microsoft Security Intune Configuration Manager Deployment
Microsoft Security Intune Configuration Manager Other
Windows for business Windows Client for IT Pros User experience Other
0 comments No comments
{count} votes

Accepted answer
  1. Pavel yannara Mirochnitchenko 13,331 Reputation points MVP
    2022-06-24T11:49:44.317+00:00

    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.

    1 person found this answer helpful.

2 additional answers

Sort by: Most helpful
  1. 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?


  2. Anonymous
    2022-06-30T12:44:47.213+00:00

    Yes I have generate a simple password and let LAPS changed it.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.