Forums on Intune, SCCM, and Windows 11

Welcome to the forums. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your topics and posts, as well as connect with other members through your own private inbox!

PENDING Renaming Local accounts during OSD

  • Thread starter Thread starter araimondi
  • Start date Start date
  • Replies Replies 1
  • Views Views 1K

araimondi

Well-Known Member
Messages
78
Reaction score
2
Points
8
have this weird issue I cant figure out. I am deploying integrated MDT with SCCM OSD and a step I am doing is renaming the local administrator and guest accounts. I deploy to 6 laptops .. It works fine on 4 of the 6. It just wont work on the 2 newer models (EliteBook 845G7 and Lenovo T495) but works fine on EliteBook 745 G6 and my ther models just fine. I checked the logs and there are no errors. I am using powershell commands to rename them

(Get-WmiObject Win32_UserAccount -Filter "name='administrator'").Rename("newname")

Also tried

Rename-LocalUser -name "Administrator" -NewName "newname"
Rename-LocalUser -Name "Guest" -NewName "newname"
Disable-LocalUser -Name "newname"

Like I said it works on 4 of the 6 models. Anyone ever heard of a issue like this?
 
Back
Top