Changes
Jump to navigation
Jump to search
← Older edit
Windows CLI
(edit)
Revision as of 09:39, 28 November 2019
473 bytes added
,
09:39, 28 November 2019
m
→Redirect Port
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>
Rafahsolis
Bureaucrats
,
Administrators
2,306
edits
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
Variants
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
Special pages
Printable version