![]() ![]() $ErrorActionPreference= 'silentlycontinue' $session.InvokeMethod($namespaceName, $instance, $methodName, 2. $instance = Get-CimInstance -Namespace $namespaceName -ClassName $className -Filter “ParentID=’./Vendor/MSFT’ and InstanceID=’RemoteWipe'” Reset Device WMI PART #MDM WMI Bridge part And you can also create a nice “GUI” instead of the script… :), to make it look better. You can also create a Flow to automate the autopilot part instead. It’s not the nicest script… but it gets the job done. Runs the first script as admin (UAC prompt) and after the first script, it runs the second script (Reset Device) as system. It just simply starts the script… creates 2 scripts.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |