If you have local access to a machine you have total control over it. Here we create a new user and assign it to the local “Administrator” group – to gain local Admin rights. Use “computer management” to view local users and groups.
Step 1 – Create a user in powershell
net user IT Skyisblue2015 /ADD
- net user
- user name to create (IT)
- password to set (Skyisblue2015)
We can view the new account using the command
net user IT
This defaults to the local “users” groups – and we want to be admin.
Administrators is a default local group – which you can view under “Computer Management”.
Here we see the Administrators group now contains our new “IT” user.. excellent!! But how did I do that?
Step 2 – Escalate to Admin
net localgroup Administrators IT /add
- net localgroup
- name of group (we want Administrators)
- name of object or…
View original post 28 more words