Jump to content

How to rename the user acount administrator via VBS?


ivor_lv

Recommended Posts

Anyone know how to rename the user account "administrator" via VBS.

I search on website and only found how to set the password:

strComputer = "."

Set objUser = GetObject("WinNT://" & strComputer & "/administrator, user")

objUser.SetPassword "Pass123456"

objUser.SetInfo

But I want to rename the "administrator".

How to do it?

Anyone can help me ?

Link to comment
Share on other sites


Anyone know how to rename the user account "administrator" via VBS.

I search on website and only found how to set the password:

strComputer = "."

Set objUser = GetObject("WinNT://" & strComputer & "/administrator, user")

objUser.SetPassword "Pass123456"

objUser.SetInfo

But I want to rename the "administrator".

How to do it?

Anyone can help me ?

objUser.SetName "newname"

not sure if that function is available or not

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...