May 13 2022 02:48 PM
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, now when they are coming back I have to change the password. I know there is a work around to login to the device as myself and run the script $Set-LocalUser -Name admin -PasswordNeverExpires 1 . I have attempted to run the same script through Endpoint as a test and receiving failed as it's status. Is this a possible script to run, and what needs to be added to the script if so.
Thank you
May 13 2022 06:42 PM
May 13 2022 11:14 PM
May 14 2022 05:47 AM
May 14 2022 05:59 AM
May 14 2022 07:13 AM
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 14 2022 07:16 AM
did you test it with a new enrolled device or an existing device ?
May 16 2022 07:09 AM
SolutionMay 29 2022 12:13 PM
Nov 07 2022 06:19 AM
May 16 2022 07:09 AM
Solution