Create local admin account and Uninstall local admin account

Iron Contributor

Dear all,

Can I check with you guys the below steps?

 

Devices > Windows > Create custom profile > 

OMA-URI 

Create a local admin account

./Device/Vendor/MSFT/Accounts/Users/localadmin/Password

./Device/Vendor/MSFT/Accounts/Users/localadmin/LocalUserGroup

 

Sk73_0-1638515776992.png

Should be correct, right? If I want to use Intune manager to create a local admin and push it to the user device.

 

Group

Doesn't matter to assign to a Device/User group, right?

 

Problem

Sk73_1-1638516268591.png

 

Sk73_2-1638516276126.png

Sk73_3-1638516343841.png

Sk73_5-1638516394814.png

 

In the overview, it shows an error, but I check my machine, actually, the local acc is created.

 

Also, can I ask how to use Intune manager to delete the local admin account?

 

Will be grateful for any help you can provide.

Thanks.

Sk-73

 

 

 

 

 

 

3 Replies

Hi @Rudy_Ooms_MVP

Thank you for your kind advice.

I follow the below path and try to find out my local account to check the expected value.  

Sk73_0-1638574594564.png

But unfortunately, I couldn't find my local admin account.

So, I decide to delete the local admin account and delete the Configuration Profile as well. Start over again. 

 

Hopefully, this can fix the issue.

Oh ya, also, I have tweak a bit my string.

Previous
./Device/Vendor/MSFT/Accounts/Users/Test User/LocalUserGroup

Now
./Device/Vendor/MSFT/Accounts/Users/TestUser/LocalUserGroup

The local account user name now is without space.