Forum Discussion
Best practice for Win10 local admin user when computer offline
Create local accounts in all your PCs, you can login anytime you don't need network connection.
Here how to create Local Admin and push it using Intune:
https://www.inthecloud247.com/create-a-local-user-account-on-windows-10-with-microsoft-intune/
Hope this helps!
Moe
Hey Moe, yup I know about this as per the above comments.. I actually have this setup, the only issue is this only creates new local user, but how do you update existing local User accounts?
- Moe_KinaniMay 22, 2020Bronze ContributorHave you tried Intune Powershell to update localuser name or password?
https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.localaccounts/set-localuser?view=powershell-5.1
Moe- Kevin TruongMay 26, 2020Copper Contributor
This is the powershell i did
$NewPassword = ConvertTo-SecureString "PasswordHere" -AsPlainText -Force
Set-LocalUser -Name AdminUser -Password $NewPassword -Description "Backup User 2020-05-26"- Moe_KinaniMay 28, 2020Bronze ContributorHi Kevin,
Have you tried to run it as System not User creds and still getting error?
Moe
- Kevin TruongMay 26, 2020Copper Contributor
so i tried it, and i can manually run the ps1 on my computer, and it works, but when i try to run that as a script in Azure AD intunes, i get a error. What am i missing?