{"id":591,"date":"2006-01-12T09:16:00","date_gmt":"2006-01-12T09:16:00","guid":{"rendered":"http:\/\/markwilson.me.uk\/blog\/2006\/01\/useful-command-for-controlling-windows.htm"},"modified":"2007-03-16T10:47:29","modified_gmt":"2007-03-16T10:47:29","slug":"useful-command-for-controlling-windows","status":"publish","type":"post","link":"https:\/\/www.markwilson.co.uk\/blog\/2006\/01\/useful-command-for-controlling-windows.htm","title":{"rendered":"Useful command for controlling Windows services"},"content":{"rendered":"<p><!--113705786472519790-->Back in 2004, I blogged about some <a href=\"https:\/\/www.markwilson.co.uk\/blog\/2004\/09\/new-commands-in-recent-windows.htm\">new commands in recent Windows releases<\/a> and yesterday, I came across another one &#8211; <code>sc<\/code>.<\/p>\n<p>More details may be found in the <a href=\"http:\/\/www.microsoft.com\/resources\/documentation\/windows\/xp\/all\/proddocs\/en-us\/sc.mspx\">Microsoft Windows XP Professional product documentation<\/a> or by entering <code>sc \/?<\/code> in a Windows XP or Windows Server 2003 cmd shell.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Back in 2004, I blogged about some new commands in recent Windows releases and yesterday, I came across another one &#8211; sc. More details may be found in the Microsoft Windows XP Professional product documentation or by entering sc \/? in a Windows XP or Windows Server 2003 cmd shell.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[],"tags":[33],"class_list":["post-591","post","type-post","status-publish","format-standard","hentry","tag-windows"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Useful command for controlling Windows services - markwilson.it<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.markwilson.co.uk\/blog\/2006\/01\/useful-command-for-controlling-windows.htm\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Useful command for controlling Windows services - markwilson.it\" \/>\n<meta property=\"og:description\" content=\"Back in 2004, I blogged about some new commands in recent Windows releases and yesterday, I came across another one &#8211; sc. More details may be found in the Microsoft Windows XP Professional product documentation or by entering sc \/? in a Windows XP or Windows Server 2003 cmd shell.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.markwilson.co.uk\/blog\/2006\/01\/useful-command-for-controlling-windows.htm\" \/>\n<meta property=\"og:site_name\" content=\"markwilson.it\" \/>\n<meta property=\"article:published_time\" content=\"2006-01-12T09:16:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2007-03-16T10:47:29+00:00\" \/>\n<meta name=\"author\" content=\"Mark Wilson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@markwilsonit\" \/>\n<meta name=\"twitter:site\" content=\"@markwilsonit\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Mark Wilson\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/2006\\\/01\\\/useful-command-for-controlling-windows.htm#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/2006\\\/01\\\/useful-command-for-controlling-windows.htm\"},\"author\":{\"name\":\"Mark Wilson\",\"@id\":\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/#\\\/schema\\\/person\\\/98f61365e7c39d6be942174b8c4de468\"},\"headline\":\"Useful command for controlling Windows services\",\"datePublished\":\"2006-01-12T09:16:00+00:00\",\"dateModified\":\"2007-03-16T10:47:29+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/2006\\\/01\\\/useful-command-for-controlling-windows.htm\"},\"wordCount\":51,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/#\\\/schema\\\/person\\\/98f61365e7c39d6be942174b8c4de468\"},\"keywords\":[\"Microsoft Windows\"],\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/2006\\\/01\\\/useful-command-for-controlling-windows.htm#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/2006\\\/01\\\/useful-command-for-controlling-windows.htm\",\"url\":\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/2006\\\/01\\\/useful-command-for-controlling-windows.htm\",\"name\":\"Useful command for controlling Windows services - markwilson.it\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/#website\"},\"datePublished\":\"2006-01-12T09:16:00+00:00\",\"dateModified\":\"2007-03-16T10:47:29+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/2006\\\/01\\\/useful-command-for-controlling-windows.htm#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/2006\\\/01\\\/useful-command-for-controlling-windows.htm\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/2006\\\/01\\\/useful-command-for-controlling-windows.htm#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Useful command for controlling Windows services\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/\",\"name\":\"markwilson.it\",\"description\":\"get-info -class technology | write-output &gt; \\\/dev\\\/web\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/#\\\/schema\\\/person\\\/98f61365e7c39d6be942174b8c4de468\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/#\\\/schema\\\/person\\\/98f61365e7c39d6be942174b8c4de468\",\"name\":\"Mark Wilson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/i0.wp.com\\\/www.markwilson.co.uk\\\/blog\\\/uploads\\\/image-4.png?fit=800%2C800&ssl=1\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/www.markwilson.co.uk\\\/blog\\\/uploads\\\/image-4.png?fit=800%2C800&ssl=1\",\"contentUrl\":\"https:\\\/\\\/i0.wp.com\\\/www.markwilson.co.uk\\\/blog\\\/uploads\\\/image-4.png?fit=800%2C800&ssl=1\",\"width\":800,\"height\":800,\"caption\":\"Mark Wilson\"},\"logo\":{\"@id\":\"https:\\\/\\\/i0.wp.com\\\/www.markwilson.co.uk\\\/blog\\\/uploads\\\/image-4.png?fit=800%2C800&ssl=1\"},\"description\":\"A Chartered IT Professional, with recent experience in technology leadership, IT strategy and practice management roles, Mark Wilson is an Enterprise Architect in the Advisory and Management Group at risual. During a career spanning more than two decades, Mark has gained widespread recognition as an expert in his field including both industry and national press exposure. In addition to certifications from Microsoft, VMware, Red Hat, The Open Group and Axelos, Mark held a Microsoft Most Valuable Professional (MVP) award for three years and is now part of the MVP Reconnect programme. Mark is also well-known on social media and maintains an award-winning blog.\",\"sameAs\":[\"http:\\\/\\\/www.markwilson.co.uk\\\/\",\"https:\\\/\\\/www.instagram.com\\\/markwilsonuk\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/markawilson\\\/\",\"https:\\\/\\\/x.com\\\/markwilsonit\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCWHlZCoHRTocdvtrOJ2IL4A\"],\"url\":\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/author\\\/mark-wilson\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Useful command for controlling Windows services - markwilson.it","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.markwilson.co.uk\/blog\/2006\/01\/useful-command-for-controlling-windows.htm","og_locale":"en_GB","og_type":"article","og_title":"Useful command for controlling Windows services - markwilson.it","og_description":"Back in 2004, I blogged about some new commands in recent Windows releases and yesterday, I came across another one &#8211; sc. More details may be found in the Microsoft Windows XP Professional product documentation or by entering sc \/? in a Windows XP or Windows Server 2003 cmd shell.","og_url":"https:\/\/www.markwilson.co.uk\/blog\/2006\/01\/useful-command-for-controlling-windows.htm","og_site_name":"markwilson.it","article_published_time":"2006-01-12T09:16:00+00:00","article_modified_time":"2007-03-16T10:47:29+00:00","author":"Mark Wilson","twitter_card":"summary_large_image","twitter_creator":"@markwilsonit","twitter_site":"@markwilsonit","twitter_misc":{"Written by":"Mark Wilson"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.markwilson.co.uk\/blog\/2006\/01\/useful-command-for-controlling-windows.htm#article","isPartOf":{"@id":"https:\/\/www.markwilson.co.uk\/blog\/2006\/01\/useful-command-for-controlling-windows.htm"},"author":{"name":"Mark Wilson","@id":"https:\/\/www.markwilson.co.uk\/blog\/#\/schema\/person\/98f61365e7c39d6be942174b8c4de468"},"headline":"Useful command for controlling Windows services","datePublished":"2006-01-12T09:16:00+00:00","dateModified":"2007-03-16T10:47:29+00:00","mainEntityOfPage":{"@id":"https:\/\/www.markwilson.co.uk\/blog\/2006\/01\/useful-command-for-controlling-windows.htm"},"wordCount":51,"commentCount":0,"publisher":{"@id":"https:\/\/www.markwilson.co.uk\/blog\/#\/schema\/person\/98f61365e7c39d6be942174b8c4de468"},"keywords":["Microsoft Windows"],"inLanguage":"en-GB","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.markwilson.co.uk\/blog\/2006\/01\/useful-command-for-controlling-windows.htm#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.markwilson.co.uk\/blog\/2006\/01\/useful-command-for-controlling-windows.htm","url":"https:\/\/www.markwilson.co.uk\/blog\/2006\/01\/useful-command-for-controlling-windows.htm","name":"Useful command for controlling Windows services - markwilson.it","isPartOf":{"@id":"https:\/\/www.markwilson.co.uk\/blog\/#website"},"datePublished":"2006-01-12T09:16:00+00:00","dateModified":"2007-03-16T10:47:29+00:00","breadcrumb":{"@id":"https:\/\/www.markwilson.co.uk\/blog\/2006\/01\/useful-command-for-controlling-windows.htm#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.markwilson.co.uk\/blog\/2006\/01\/useful-command-for-controlling-windows.htm"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.markwilson.co.uk\/blog\/2006\/01\/useful-command-for-controlling-windows.htm#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.markwilson.co.uk\/blog"},{"@type":"ListItem","position":2,"name":"Useful command for controlling Windows services"}]},{"@type":"WebSite","@id":"https:\/\/www.markwilson.co.uk\/blog\/#website","url":"https:\/\/www.markwilson.co.uk\/blog\/","name":"markwilson.it","description":"get-info -class technology | write-output &gt; \/dev\/web","publisher":{"@id":"https:\/\/www.markwilson.co.uk\/blog\/#\/schema\/person\/98f61365e7c39d6be942174b8c4de468"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.markwilson.co.uk\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":["Person","Organization"],"@id":"https:\/\/www.markwilson.co.uk\/blog\/#\/schema\/person\/98f61365e7c39d6be942174b8c4de468","name":"Mark Wilson","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/i0.wp.com\/www.markwilson.co.uk\/blog\/uploads\/image-4.png?fit=800%2C800&ssl=1","url":"https:\/\/i0.wp.com\/www.markwilson.co.uk\/blog\/uploads\/image-4.png?fit=800%2C800&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.markwilson.co.uk\/blog\/uploads\/image-4.png?fit=800%2C800&ssl=1","width":800,"height":800,"caption":"Mark Wilson"},"logo":{"@id":"https:\/\/i0.wp.com\/www.markwilson.co.uk\/blog\/uploads\/image-4.png?fit=800%2C800&ssl=1"},"description":"A Chartered IT Professional, with recent experience in technology leadership, IT strategy and practice management roles, Mark Wilson is an Enterprise Architect in the Advisory and Management Group at risual. During a career spanning more than two decades, Mark has gained widespread recognition as an expert in his field including both industry and national press exposure. In addition to certifications from Microsoft, VMware, Red Hat, The Open Group and Axelos, Mark held a Microsoft Most Valuable Professional (MVP) award for three years and is now part of the MVP Reconnect programme. Mark is also well-known on social media and maintains an award-winning blog.","sameAs":["http:\/\/www.markwilson.co.uk\/","https:\/\/www.instagram.com\/markwilsonuk\/","https:\/\/www.linkedin.com\/in\/markawilson\/","https:\/\/x.com\/markwilsonit","https:\/\/www.youtube.com\/channel\/UCWHlZCoHRTocdvtrOJ2IL4A"],"url":"https:\/\/www.markwilson.co.uk\/blog\/author\/mark-wilson"}]}},"jetpack_featured_media_url":"","jetpack-related-posts":[{"id":561,"url":"https:\/\/www.markwilson.co.uk\/blog\/2004\/09\/command-line-alternative-to-windows.htm","url_meta":{"origin":591,"position":0},"title":"Command line alternative to the Windows device manager","author":"Mark Wilson","date":"Thursday 9 September 2004","format":false,"excerpt":"One of the Microsoft consultants that I have been working with sent me a link to a handy tool today - devcon.exe is a command line alternative to the Windows device manager and full details (including a download link) may be found in Microsoft knowledge base article 311272.","rel":"","context":"In \"Microsoft Windows 2000\"","block_context":{"text":"Microsoft Windows 2000","link":"https:\/\/www.markwilson.co.uk\/blog\/tag\/windows-2000"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":432,"url":"https:\/\/www.markwilson.co.uk\/blog\/2004\/09\/new-commands-in-recent-windows.htm","url_meta":{"origin":591,"position":1},"title":"New commands in recent Windows releases","author":"Mark Wilson","date":"Wednesday 22 September 2004","format":false,"excerpt":"This morning, I discovered a new command in Windows XP (and Windows Server 2003) - systeminfo.exe allows an administrator to query a local or remote computer for basic system configuration information. Additionally, the TweakXP.com website suggests a useful method of restricting the output from systeminfo.exe so that only certain information\u2026","rel":"","context":"In \"Microsoft Windows\"","block_context":{"text":"Microsoft Windows","link":"https:\/\/www.markwilson.co.uk\/blog\/tag\/windows"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":63,"url":"https:\/\/www.markwilson.co.uk\/blog\/2004\/02\/overview-of-microsoft-baseline.htm","url_meta":{"origin":591,"position":2},"title":"Overview of the Microsoft Baseline Security Analyzer","author":"Mark Wilson","date":"Monday 23 February 2004","format":false,"excerpt":"Like Microsoft Software Update Services, the Microsoft Baseline Security Analyzer (MBSA) is a security toolkit component born out of the Microsoft Strategic Technology Protection Program (STPP). MBSA v1.2 is available for download from the Microsoft website and provides a graphical and command line interface that can perform local or remote\u2026","rel":"","context":"In \"Microsoft\"","block_context":{"text":"Microsoft","link":"https:\/\/www.markwilson.co.uk\/blog\/tag\/microsoft"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":485,"url":"https:\/\/www.markwilson.co.uk\/blog\/2004\/09\/script-to-disable-password-expiry-for.htm","url_meta":{"origin":591,"position":3},"title":"Script to disable password expiry for local Windows accounts","author":"Mark Wilson","date":"Friday 10 September 2004","format":false,"excerpt":"One of the shortcomings of the net user command in Windows is the inability to set the password never expires flag on an account (account expiry options can be set, but not password expiry and the full syntax is described in Microsoft knowledge base article 251394). There are 13 flags\u2026","rel":"","context":"In \"Microsoft Active Directory\"","block_context":{"text":"Microsoft Active Directory","link":"https:\/\/www.markwilson.co.uk\/blog\/tag\/active-directory"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1140,"url":"https:\/\/www.markwilson.co.uk\/blog\/2008\/07\/microsoft-update-failure.htm","url_meta":{"origin":591,"position":4},"title":"Microsoft Update failure","author":"Mark Wilson","date":"Thursday 31 July 2008","format":false,"excerpt":"I've been building a Windows XP virtual machine for test purposes and needed to apply the latest updates (even with Windows XP service pack 3 it required over 20 updates to be applied). Unfortunately, Microsoft Update hit a problem and refused to install some of the updates, telling me that\u2026","rel":"","context":"In \"Microsoft Windows XP\"","block_context":{"text":"Microsoft Windows XP","link":"https:\/\/www.markwilson.co.uk\/blog\/tag\/windows-xp"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":871,"url":"https:\/\/www.markwilson.co.uk\/blog\/2007\/08\/tab-completion-in-windows.htm","url_meta":{"origin":591,"position":5},"title":"Tab completion in Windows","author":"Mark Wilson","date":"Monday 6 August 2007","format":false,"excerpt":"Many people will be familiar with the command line tab completion functionality that can be used to complete folder and filenames in recent versions of Windows, but what I wasn't aware of (until I just used it, following some instructions from Microsoft in a hands-on lab training manual) was that\u2026","rel":"","context":"In \"Microsoft Windows Server 2003\"","block_context":{"text":"Microsoft Windows Server 2003","link":"https:\/\/www.markwilson.co.uk\/blog\/tag\/windows-server-2003"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.markwilson.co.uk\/blog\/wp-json\/wp\/v2\/posts\/591","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.markwilson.co.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.markwilson.co.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.markwilson.co.uk\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.markwilson.co.uk\/blog\/wp-json\/wp\/v2\/comments?post=591"}],"version-history":[{"count":0,"href":"https:\/\/www.markwilson.co.uk\/blog\/wp-json\/wp\/v2\/posts\/591\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.markwilson.co.uk\/blog\/wp-json\/wp\/v2\/media?parent=591"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.markwilson.co.uk\/blog\/wp-json\/wp\/v2\/categories?post=591"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.markwilson.co.uk\/blog\/wp-json\/wp\/v2\/tags?post=591"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}