Guest User

Untitled

a guest
Jun 21st, 2018
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.92 KB | None | 0 0
  1. #Active Directory
  2. To quickly list all the groups in your domain, with members
  3. dsquery group -limit 0 | dsget group -members –expand
  4.  
  5. To find all users whose accounts are set to have a non-expiring password
  6. dsquery * domainroot -filter “(&(objectcategory=person)(objectclass=user)(lockoutTime=*))” -limit 0
  7.  
  8. To list all the FSMO role holders in your forest
  9. netdom query fsmo
  10.  
  11. To refresh group policy settings
  12. gpupdate
  13.  
  14. To list all applied GPO on client machine
  15. gpresult /H c:/tmp/policy.html
  16.  
  17. To check Active Directory replication on a domain controller
  18. repadmin /replsummary
  19.  
  20. To force replication from a domain controller without having to go through to Active Directory Sites and Services
  21. repadmin /syncall
  22.  
  23. To see what server authenticated you (or if you logged on with cached credentials) you can run either of these commands:
  24. set l
  25. echo %logonserver%
  26.  
  27. To see what security groups you belong to
  28. whoami
  29.  
  30. To see what security groups you belong to
  31. whoami /groups
  32.  
  33. To see the domain account policy (password requirements, lockout thresholds, etc)
  34. net accounts
  35.  
  36. #Networking
  37. To quickly generate a text summary of your system
  38. systeminfo | more
  39.  
  40. To add an entry to your routing table that will be permanent, run the route add command with the –p option
  41. route add 0.0.0.0 mask 0.0.0.0 172.16.250.5 –p
  42.  
  43. To quickly reset your NIC back to DHCP with no manual settings,
  44. netsh int ip reset all
  45. Need to run a trace
  46. netsh trace start capture=yes tracefile=c:\capture.etl
  47. netsh trace stop
  48.  
  49.  
  50. To see all network connections your client has open
  51. net use
  52. To see your routing table, run either of these commands
  53. route print
  54. netstat -r
  55. netstat –ano 1
  56. netstat –ano 8
  57. netstat –ano 40
  58. add a | findstr value to watch for only a specific connection, like a client ip.addr or port
  59. netstat –ano | findstr 216.134.217.20
  60. netstat –ano 1| findstr 216.134.217.20
  61. netstat –ano 50| findstr 216.134.217.20
  62. netstat -ano 1 | findstr :139
  63. netstat -ano 50 | findstr :139
  64. List out all connections
  65. netstat -a
  66. List only TCP connections
  67. netstat -at
  68. List only UDP connections
  69. netstat -au
  70. Disable reverse dns lookup for faster output
  71. netstat -ant
  72. List out only listening connections
  73. netstat -tnl
  74. Get process name/pid and user id
  75. netstat -nlpt
  76. netstat -ltpe
  77. Print statistics
  78. netstat -s
  79. Display kernel routing information
  80. netstat -rn
  81. Print network interfaces
  82. netstat -i
  83. Get netstat output continuously
  84. netstat -ct
  85.  
  86. ipconfig /all IP Configuration (Display Connection Configuration)
  87. ipconfig /displaydns IP Configuration (Display DNS Cache Contents)
  88. ipconfig /flushdns IP Configuration (Delete DNS Cache Contents)
  89. ipconfig /release IP Configuration (Release All Connections)
  90. ipconfig /renew IP Configuration (Renew All Connections)
  91. ipconfig /registerdns IP Configuration (Refreshes DHCP & Re-Registers DNS)
  92. ipconfig /showclassid IP Configuration (Display DHCP Class ID)
  93. ipconfig /setclassid IP Configuration (Modifies DHCP Class ID)
  94.  
  95. to shutdown or reboot a machine, including your own, in a simple scheduled task
  96. shutdown –r –t 0 –m \\localhost
  97.  
  98. Scan for open ports for specific IP/host
  99. nmap -n -sV 192.168.1.4
  100. Scan for open ports for a network
  101. nmap -n -sV 192.168.1.0/24
  102.  
  103. #System
  104. enable the local administrator account
  105. net user administrator * /active:yes
  106.  
  107. see all the open files on a system
  108. openfiles /query
  109.  
  110. reset IIS without having to reboot the whole server
  111. iisreset
  112.  
  113. To check if server is virtual.
  114. On Windows
  115. CMD:
  116. Systeminfo | findstr /i model
  117. powershell:
  118. gwmi -q "select * from win32_computersystem"
  119.  
  120. determine if the current version of Windows is either 32-bit or 64-bit from the command line
  121. echo %PROCESSOR_ARCHITECTURE%
  122. check the PROCESSOR_ARCHITECTURE environment variable. 64-bit systems will say AMD64 and 32-bit systems should say "x86"
  123. C:\>wmic OS get OSArchitecture
  124. OSArchitecture
  125. 32-bit
  126.  
  127.  
  128. To display the MD5 hash of a file, type the following command at a command prompt:
  129. fciv.exe filename
  130. fciv.exe -sha1 filename
  131.  
  132. AD Shortcuts
  133.  
  134. dsa.msc Active Directory Users and Computers
  135. adsiedit.msc ADSI Edit
  136. AdRmsAdmin.msc Active Directory Rights Managment Services Administration
  137. azman.msc Authorization Manager
  138. certsrv.msc Active Directory Certificate Services
  139. CluAdmin.msc Failover Cluster Manager
  140. dfsmgmt.msc DFS Managment
  141. dhcpmgmt.msc DHCP Management
  142. dnsmgmt.msc DNS Management
  143. domain.msc Active Directory Domains and Trusts
  144. fsrm.msc File Server Resource Manager
  145. gpmc.msc Group Policy Management Console
  146. gpme.msc Group Policy Management Editor
  147. lsdiag.msc Remote Desktop Licensing Diagnoser
  148. remoteprograms.msc RemoteApp Manager
  149. rrasmgmt.msc Routing and Remote Access
  150. sbmgr.msc Remote Desktop Connection Manager
  151. tsadmin.msc Remove Desktop Services Manager
  152. tsconfig.msc Remove Desktop Session Host Configuration
  153. tsmmc.msc Remote Desktops
  154. winsmgmt.msc WINS Management
  155. WSRM.msc Windows System Resource Manager
  156.  
  157.  
  158.  
  159. Local Computer Shortcuts
  160.  
  161. gpedit.msc Local Group Policy Editor
  162. fsmgmt.msc Shared Folders
  163. eventvwr.msc Event viewer
  164. certlm.msc Certificates – Local Computer
  165. certmgr.msc Certificates – Local Users
  166. certtmpl.msc Certificates Templates Console
  167. appwiz.cpl Programs and Features
  168. Firewall.cpl Windows Firewall
  169. compmgmt.msc computer management
  170. psr.exe steps recorder
  171. comexp.msc Component Services
  172. devmgmt.msc Device Manager
  173. diskmgmt.msc Disk Management
  174. lusrmgr.msc Local Users and Groups
  175. ncpa.cpl Network Connections
  176. perfmon.msc Performance Monitor
  177. sysdm.cpl System Properties
  178. WF.msc Windows Firewall with Advanced Security
  179.  
  180.  
  181. Windows Run Commands Shortcuts
  182.  
  183. Control Panel Program Shortcuts
  184. control Control Panel
  185. control netconnections Network Properties
  186. control printers Printers Folders
  187. control userpasswords2 Manager all User Accounts
  188. control update Windows Update
  189. control admintools Administrative Tools
  190. control schedtasks Scheduled Tasks
  191. appwiz.cpl Program and Features
  192. intl.cpl Regional Settings (International)
  193. sysdm.cpl System Properties
  194. firewall.cpl Windows Firewall
  195.  
  196. Windows Tools
  197.  
  198. explorer Windows Explorer
  199. regedit Registry Editor
  200. services.msc Windows Services (local)
  201. taskmgr Task Manager
  202. msconfig System Configuration Utility
  203. mstsc Remote Desktop (Microsoft Terminal Services)
  204. logoff Log Off Windows (without confirmation!
  205. shutdown Shuts Down Windows (don't try unless you are ready to shutdown)
  206. msinfo32 System Information
  207.  
  208. verify file signatures
  209. fciv gpg4win-2.2.5.exe -sha1
  210. fciv gpg4win-2.2.5.exe -md5
  211. fciv gpg4win-2.2.5.exe -sha1 > filedownloaded.txt
  212. fciv gpg4win-2.2.5.exe -md5 > filedownloaded.txt
  213.  
  214. #Network Tools
  215.  
  216. Network Monitor
  217. Nagios Core
  218. OpenNMS
  219. Advanced IP Scanner
  220. Messsage Analyzer
  221. Capsa Free
  222. Wireshark
  223. Fiddler
  224. NetworkMiner
  225. Zenoss Core
  226. Pandora FMS
  227. Xirrus Wi-Fi Inspector
  228. WirelessNetView
  229. Xymon
  230. NetXMS
  231. Total Network Monitor
  232. Icinga 2
  233. Angry IP Scanner
  234. Splunk
  235. The Dude
  236. PRTG Network Monitor Freeware
  237.  
  238. System Tools
  239. Shadow Explorer
  240.  
  241. Security Tools
  242. Malwarebytes Anti-Malware
  243. Hitman Pro3
  244.  
  245. Data Recovery Tools
  246. Data Recovery Wizard Free 9.0
  247. R-STUDIO
  248. Recuva
  249. #Tools
Add Comment
Please, Sign In to add comment