{"id":271,"date":"2021-10-08T08:00:15","date_gmt":"2021-10-08T07:00:15","guid":{"rendered":"https:\/\/www.cybersecuritynotepad.com\/?p=271"},"modified":"2021-10-08T08:00:16","modified_gmt":"2021-10-08T07:00:16","slug":"useful-commands-windows","status":"publish","type":"post","link":"https:\/\/www.cybersecuritynotepad.com\/index.php\/2021\/10\/08\/useful-commands-windows\/","title":{"rendered":"Useful commands &#8211; Windows"},"content":{"rendered":"\n<p>Disable Defender Anti-virus (admin required):<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>powershell.exe -command \"Set-MpPreference -DisableRealtimeMonitoring $true\"<\/code><\/pre>\n\n\n\n<p>Enable Defender Anti-virus (admin required):<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>powershell.exe -command \"Set-MpPreference -DisableRealtimeMonitoring $false\"<\/code><\/pre>\n\n\n\n<p>Uptime stats:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>net statistics server<\/code><\/pre>\n\n\n\n<p>Free space on disks (admin required):<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>fsutil volume diskfree c:<\/code><\/pre>\n\n\n\n<p>List all available drives:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>wmic logicaldisk get name<\/code><\/pre>\n\n\n\n<p>List installed patches (PowerShell):<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Get-WmiObject -Class \"win32_quickfixengineering\"<\/code><\/pre>\n\n\n\n<p>List installed software:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>wmic product get name,version<\/code><\/pre>\n\n\n\n<p>Password policy (local):<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>net accounts<\/code><\/pre>\n\n\n\n<p>Password policy domain:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>net accounts \/domain<\/code><\/pre>\n\n\n\n<p>List OS version and other stats:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>systeminfo<\/code><\/pre>\n\n\n\n<p>List domain controllers:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>nltest \/dclist:&lt;domain name><\/code><\/pre>\n\n\n\n<p>Enumerate logs:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>wevtutil el<\/code><\/pre>\n\n\n\n<p>Filter system logs by most recent ones:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>wevtutil qe system \/rd:true \/c:10 \/f:text<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Disable Defender Anti-virus (admin required): Enable Defender Anti-virus (admin required): Uptime stats: Free space on disks (admin required): List all available drives: List installed patches (PowerShell): List installed software: Password policy (local): Password policy domain: List OS version and other stats: List domain controllers: Enumerate logs: Filter system logs by most recent ones:<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[9],"tags":[30,29,28],"class_list":["post-271","post","type-post","status-publish","format-standard","hentry","category-references_command_line","tag-cmd","tag-powershell","tag-windows","entry"],"yoast_head":"<title>Useful commands - Windows - Cyber Security Notepad<\/title>\n<meta name=\"description\" content=\"cyber security, cyber security notepad, Windows, Linux, 0-day research, exploit development, tools, references, cyber, security, information\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Useful commands - Windows - Cyber Security Notepad\" \/>\n<meta property=\"og:description\" content=\"cyber security, cyber security notepad, Windows, Linux, 0-day research, exploit development, tools, references, cyber, security, information\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.cybersecuritynotepad.com\/index.php\/2021\/10\/08\/useful-commands-windows\/\" \/>\n<meta property=\"og:site_name\" content=\"Cyber Security Notepad\" \/>\n<meta property=\"article:published_time\" content=\"2021-10-08T07:00:15+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-10-08T07:00:16+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.cybersecuritynotepad.com\\\/index.php\\\/2021\\\/10\\\/08\\\/useful-commands-windows\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.cybersecuritynotepad.com\\\/index.php\\\/2021\\\/10\\\/08\\\/useful-commands-windows\\\/\"},\"author\":\"cybersecuritynotepad\",\"headline\":\"Useful commands &#8211; Windows\",\"datePublished\":\"2021-10-08T07:00:15+00:00\",\"dateModified\":\"2021-10-08T07:00:16+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.cybersecuritynotepad.com\\\/index.php\\\/2021\\\/10\\\/08\\\/useful-commands-windows\\\/\"},\"wordCount\":57,\"keywords\":[\"cmd\",\"powershell\",\"windows\"],\"articleSection\":[\"References\"],\"inLanguage\":\"en-GB\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.cybersecuritynotepad.com\\\/index.php\\\/2021\\\/10\\\/08\\\/useful-commands-windows\\\/\",\"url\":\"https:\\\/\\\/www.cybersecuritynotepad.com\\\/index.php\\\/2021\\\/10\\\/08\\\/useful-commands-windows\\\/\",\"name\":\"Useful commands - Windows - Cyber Security Notepad\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.cybersecuritynotepad.com\\\/#website\"},\"datePublished\":\"2021-10-08T07:00:15+00:00\",\"dateModified\":\"2021-10-08T07:00:16+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.cybersecuritynotepad.com\\\/#\\\/schema\\\/person\\\/7fd460a876c44ee288cb37cb33e1ed5e\"},\"description\":\"cyber security, cyber security notepad, Windows, Linux, 0-day research, exploit development, tools, references, cyber, security, information\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.cybersecuritynotepad.com\\\/index.php\\\/2021\\\/10\\\/08\\\/useful-commands-windows\\\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.cybersecuritynotepad.com\\\/index.php\\\/2021\\\/10\\\/08\\\/useful-commands-windows\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.cybersecuritynotepad.com\\\/index.php\\\/2021\\\/10\\\/08\\\/useful-commands-windows\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.cybersecuritynotepad.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Useful commands &#8211; Windows\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.cybersecuritynotepad.com\\\/#website\",\"url\":\"https:\\\/\\\/www.cybersecuritynotepad.com\\\/\",\"name\":\"Cyber Security Notepad\",\"description\":\"Cyber and Information Security News, Trends, Guides and Tools\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.cybersecuritynotepad.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"}]}<\/script>","yoast_head_json":{"title":"Useful commands - Windows - Cyber Security Notepad","description":"cyber security, cyber security notepad, Windows, Linux, 0-day research, exploit development, tools, references, cyber, security, information","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"og_locale":"en_GB","og_type":"article","og_title":"Useful commands - Windows - Cyber Security Notepad","og_description":"cyber security, cyber security notepad, Windows, Linux, 0-day research, exploit development, tools, references, cyber, security, information","og_url":"https:\/\/www.cybersecuritynotepad.com\/index.php\/2021\/10\/08\/useful-commands-windows\/","og_site_name":"Cyber Security Notepad","article_published_time":"2021-10-08T07:00:15+00:00","article_modified_time":"2021-10-08T07:00:16+00:00","author":"admin","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.cybersecuritynotepad.com\/index.php\/2021\/10\/08\/useful-commands-windows\/#article","isPartOf":{"@id":"https:\/\/www.cybersecuritynotepad.com\/index.php\/2021\/10\/08\/useful-commands-windows\/"},"author":"cybersecuritynotepad","headline":"Useful commands &#8211; Windows","datePublished":"2021-10-08T07:00:15+00:00","dateModified":"2021-10-08T07:00:16+00:00","mainEntityOfPage":{"@id":"https:\/\/www.cybersecuritynotepad.com\/index.php\/2021\/10\/08\/useful-commands-windows\/"},"wordCount":57,"keywords":["cmd","powershell","windows"],"articleSection":["References"],"inLanguage":"en-GB"},{"@type":"WebPage","@id":"https:\/\/www.cybersecuritynotepad.com\/index.php\/2021\/10\/08\/useful-commands-windows\/","url":"https:\/\/www.cybersecuritynotepad.com\/index.php\/2021\/10\/08\/useful-commands-windows\/","name":"Useful commands - Windows - Cyber Security Notepad","isPartOf":{"@id":"https:\/\/www.cybersecuritynotepad.com\/#website"},"datePublished":"2021-10-08T07:00:15+00:00","dateModified":"2021-10-08T07:00:16+00:00","author":{"@id":"https:\/\/www.cybersecuritynotepad.com\/#\/schema\/person\/7fd460a876c44ee288cb37cb33e1ed5e"},"description":"cyber security, cyber security notepad, Windows, Linux, 0-day research, exploit development, tools, references, cyber, security, information","breadcrumb":{"@id":"https:\/\/www.cybersecuritynotepad.com\/index.php\/2021\/10\/08\/useful-commands-windows\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.cybersecuritynotepad.com\/index.php\/2021\/10\/08\/useful-commands-windows\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.cybersecuritynotepad.com\/index.php\/2021\/10\/08\/useful-commands-windows\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.cybersecuritynotepad.com\/"},{"@type":"ListItem","position":2,"name":"Useful commands &#8211; Windows"}]},{"@type":"WebSite","@id":"https:\/\/www.cybersecuritynotepad.com\/#website","url":"https:\/\/www.cybersecuritynotepad.com\/","name":"Cyber Security Notepad","description":"Cyber and Information Security News, Trends, Guides and Tools","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.cybersecuritynotepad.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.cybersecuritynotepad.com\/index.php\/wp-json\/wp\/v2\/posts\/271","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.cybersecuritynotepad.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.cybersecuritynotepad.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.cybersecuritynotepad.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cybersecuritynotepad.com\/index.php\/wp-json\/wp\/v2\/comments?post=271"}],"version-history":[{"count":2,"href":"https:\/\/www.cybersecuritynotepad.com\/index.php\/wp-json\/wp\/v2\/posts\/271\/revisions"}],"predecessor-version":[{"id":273,"href":"https:\/\/www.cybersecuritynotepad.com\/index.php\/wp-json\/wp\/v2\/posts\/271\/revisions\/273"}],"wp:attachment":[{"href":"https:\/\/www.cybersecuritynotepad.com\/index.php\/wp-json\/wp\/v2\/media?parent=271"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.cybersecuritynotepad.com\/index.php\/wp-json\/wp\/v2\/categories?post=271"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.cybersecuritynotepad.com\/index.php\/wp-json\/wp\/v2\/tags?post=271"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}