System Local User account password to be change
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