Forum Discussion
AB21805
May 25, 2023Bronze Contributor
Local admin account creation error
Hi all, I have set a policy to create a local admin which is erroring out on intune: However the account logs in and is part of the admin group. Any ideas why it is erroring...
AB21805
May 26, 2023Bronze Contributor
Thank you! I have a script to enable built in password which works on device as admin but via intune it doesnt is there something easy why? rahuljindal-MVP
$Username = "Administrator"
$Password = "my password" # Set your desired password
# Enable the built-in Administrator account
Enable-LocalUser -Name $Username
# Set the password for the Administrator account
$SecurePassword = ConvertTo-SecureString -String $Password -AsPlainText -Force
Set-LocalUser -Name $Username -Password $SecurePassword
# Verify the Administrator account
Get-LocalUser $Username
rahuljindal-MVP
May 26, 2023Bronze Contributor
Better to create a custom admin account instead of using the built-in. Here is a something you can look at..https://rahuljindalmyit.blogspot.com/2021/05/intune-different-ways-of-setting-local.html
- AB21805May 26, 2023Bronze ContributorAs in I cant get the LAPS to appear in intune
I have set the policy with the correct user name- rahuljindal-MVPMay 26, 2023Bronze ContributorMaybe this can help - https://rahuljindalmyit.blogspot.com/2023/04/windows-laps-with-microsoft-entra-azure.html
- AB21805May 26, 2023Bronze ContributorI want to use LAPS but this doesnt seem to work though and I am unsure why