Difference between revisions of "Windows CLI"
Jump to navigation
Jump to search
Rafahsolis (talk | contribs) m Tag: visualeditor |
Rafahsolis (talk | contribs) m Tag: visualeditor |
||
| Line 1: | Line 1: | ||
| + | == Users and groups == | ||
| + | |||
====Create User==== | ====Create User==== | ||
net user username password /ADD | net user username password /ADD | ||
| 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> | ||
| + | |||
| + | == GPO == | ||
| + | |||
===GP Result=== | ===GP Result=== | ||
<syntaxhighlight lang="text"> | <syntaxhighlight lang="text"> | ||
| Line 19: | Line 31: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
| − | == PsExec == | + | ==PsExec== |
| − | === Open System Shell === | + | ===Open System Shell=== |
<syntaxhighlight lang="text"> | <syntaxhighlight lang="text"> | ||
PsExec.exe -s cmd.exe | PsExec.exe -s cmd.exe | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 09:38, 28 November 2019
Users and groups
Create User
net user username password /ADD
List groups
net localgroup
Add user to group
net localgroup group_name UserLoginName /add
Change user password
net user John pq12d*12@
To prompt for the password instead
net user John *
To change domain user account password
net user loginid * /domain
Networking
Redirect Port
netsh interface portproxy add v4tov4 listenport=34770 listenaddress=150.100.98.182 connectport=3389 connectaddress=150.100.98.182
GPO
GP Result
gpresult /h c:\gpreport.html
PsExec
Open System Shell
PsExec.exe -s cmd.exe