Kaseya Community

Create Local Administrator Account

  • I've found the following script to be useful as it creates a hidden Administrator account that can be used to log into computers localy if we need to do work onsite.

    It creates a account called "KaseyaAdmin" that is hidden from the local logon page. You can still log into the computer using Control-Alt-Delete twice at the logon screen. This is mostly just used on the computers under our control that arn't on a domain as the same effect can be done using GPO and domain logons much nicer.

    I hope this is of help to some of you.

    Script Name: Create Local Administrator Account
    Script Description: Creates a local Administrator named "KaseyAdmin" and makes it so that that users is hidden from the logon list. The Password can be changed by replaceing the forth word the first net use command.

    IF True
    THEN
    Execute Shell Command
    Parameter 1 : net user KaseyaAdmin KaseyaAdmin /add
    Parameter 2 : 1
    OS Type : 1
    Execute Shell Command
    Parameter 1 : net localgroup Administrators KaseyaAdmin /add
    Parameter 2 : 1
    OS Type : 1
    Set Registry Value
    Parameter 1 : HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsNT\CurrentVersion\Winlogon\SpecialAccounts\UserList
    Parameter 2 : KaseyaAdmin
    Parameter 3 : REG_DWORD
    OS Type : 1
    Write Script Log Entry
    Parameter 1 : User Account "KaseyaAdmin" has been created and hidden from the logon page.
    OS Type : 1

    ELSE


    Legacy Forum Name: Create Local Administrator Account,
    Legacy Posted By Username: Laurence
  • Good Job.



    I've got a Domain Account creation script if anyone is interested.


    Legacy Forum Name: System Administration Scripts,
    Legacy Posted By Username: nigel_bca
  • If you could post the domain user creation script that would be great.

    Legacy Forum Name: System Administration Scripts,
    Legacy Posted By Username: sanderjmk