Changes

Jump to navigation Jump to search
473 bytes added ,  09:39, 28 November 2019
m
Line 1: Line 1: −
==== Create User ====
+
==Users and groups==
 +
 
 +
====Create User====
 
  net user username password /ADD
 
  net user username password /ADD
   −
==== List groups ====
+
====List groups====
 
  net localgroup
 
  net localgroup
   −
==== Add user to group ====
+
====Add user to group====
 
  net localgroup group_name UserLoginName /add
 
  net localgroup group_name UserLoginName /add
   −
==== Change user password ====
+
====Change user password====
 
  net user  John  pq12d*12@
 
  net user  John  pq12d*12@
 
To prompt for the password instead
 
To prompt for the password instead
Line 14: Line 16:  
To change domain user account password
 
To change domain user account password
 
  net  user  loginid  *  /domain
 
  net  user  loginid  *  /domain
 +
 +
==Networking==
 +
 +
===Redirect Port===
 +
<syntaxhighlight lang="dos">
 +
netsh interface portproxy add v4tov4 listenport=34770 listenaddress=150.100.98.182 connectport=3389 connectaddress=150.100.98.182
 +
</syntaxhighlight>Redirect port 34770 to port 3389
 +
 +
==GPO==
 +
 +
===GP Result===
 +
<syntaxhighlight lang="text">
 +
gpresult /h c:\gpreport.html
 +
</syntaxhighlight>
 +
 +
==PsExec==
 +
 +
===Open System Shell===
 +
<syntaxhighlight lang="text">
 +
PsExec.exe -s cmd.exe
 +
</syntaxhighlight>

Navigation menu