System Local User account password to be change
Question
Hi Experts,
I am looking an option to set new password for workstations local user account / Default Administrator using Intune. I build a vbscipt which just set new password for the system local account password. VBscript works fine when i run using command prompt locally but through Intune its working for some system and some not.
I have converted the below VBscipt to Windows app (Win32) and created package in Intune to run on the system. But there is mandatory field to set Detection rules. I am not finding what to set as there is no registry or other change can be locate in the system to update in the detection rule.
Could you please let know if there any way to achieve this task ( Change / set new password for across system ) using InTune ?
Set WshNetwork = WScript.CreateObject(“WScript.Network”)
strComputer = “.”
Set objUser = GetObject(“WinNT://” & strComputer & “/Administrator,user”)
objUser.SetPassword “***********” ‘ Enter new password between brackets
objUser.SetInfo
Answers ( 2 )
I used a similar script to implement the admin account solution through Intune and it worked fine.
The following command might just work
net user HTMDUser HTMDPASSWORD /add
Thank you.. Could you please help with the step by step process to get this done with Intune ?