Forum Discussion
ksclifton
May 13, 2022Copper Contributor
Local Admin Password expiration
Hello, I am working on trying to run a script to change the local admin password to not expire. In the early stages of Intune, I setup a local admin account and failed to set the password to expire,...
- May 16, 2022You need to check the "Run script in 64-bit PowerShell Host" as the localgroup*/localuser* cmdlets are only available on a 64-bit PowerShell, otherwise it will fail. 👍
ksclifton
May 14, 2022Copper Contributor
Thank you for the replay, I took the script you gave and put it into PowerShell ISE and saved the .ps1 file.
Added to scrips in Endpoint.
When the script would run, I received
I am assuming, I missed something. The local "admin" account password is still not set to not expire.
I test the PowerShell on the test device and it ran correctly.
May 16, 2022
You need to check the "Run script in 64-bit PowerShell Host" as the localgroup*/localuser* cmdlets are only available on a 64-bit PowerShell, otherwise it will fail. 👍
- kscliftonMay 29, 2022Copper ContributorThank you! Someone before gave me incorrect information when they said that putting it in 64-bit mode was unnecessary.