mirror of
https://github.com/fleetdm/fleet
synced 2026-04-21 21:47:20 +00:00
13 lines
No EOL
577 B
PowerShell
13 lines
No EOL
577 B
PowerShell
# Please don't delete. This script is referenced in the guide here: https://fleetdm.com/guides/enforce-disk-encryption
|
|
|
|
$Username = "IT admin"
|
|
$Password = ConvertTo-SecureString "StrongPassword123!" -AsPlainText -Force
|
|
|
|
# Create the local user account
|
|
New-LocalUser -Name $Username -Password $Password -FullName "Fleet IT admin"
|
|
-Description "Admin account used to login when the end user forgets their
|
|
password or the host is returned to Fleet."
|
|
-AccountNeverExpires
|
|
|
|
# Add the user to the Administrators group
|
|
Add-LocalGroupMember -Group "Administrators" -Member $Username |