Seems that creating a new local user in Windows 11 isn't quite as easy as you'd expect. But PowerShell makes it fairly simple. To create a new local "backup/emergency" user you can issue these commands from an Admin PowerShell. Of course, make sure to use a good solid password. The second command will add the user to the local Administrators group.
PS>New-LocalUser -Name BackupUser -AccountNeverExpires
cmdlet New-LocalUser at command pipeline position 1
Supply values for the following parameters:
Password: **********
Name Enabled Description
---- ------- -----------
BackupUser True
PS>Add-LocalGroupMember -Name Administrators -Member BackupUser
It should be noted that is you are looking to utilize Remote Desktop on this machine, it will need to be Windows 11 Pro. You can get that info with this command.
Get-WmiObject win32_operatingsystem | select Caption, Version
Caption Version
------- -------
Microsoft Windows 11 Home 10.0.26100
And, to grab your MAK, there's a command for that too:
(Get-WmiObject -query 'select * from SoftwareLicensingService').OA3xOriginalProductKey
No comments:
Post a Comment