{"id":11324,"date":"2022-08-29T06:55:40","date_gmt":"2022-08-29T13:55:40","guid":{"rendered":"https:\/\/www.coretechnologies.com\/blog\/?p=11324"},"modified":"2022-08-29T06:55:40","modified_gmt":"2022-08-29T13:55:40","slug":"how-to-export-services","status":"publish","type":"post","link":"https:\/\/www.coretechnologies.com\/blog\/windows-services\/how-to-export-services\/","title":{"rendered":"How to Export the List of Windows Services on Your Computer"},"content":{"rendered":"<div align=\"center\"><img loading=\"lazy\" decoding=\"async\" class=\"no-lazy-load\" src=\"\/blog\/images\/export-services.webp\" style=\"margin-bottom:20px;\" title=\"How to Export the List of Services on Your Computer\" alt=\"How to Export the List of Services on Your Computer\" border=\"0\" width=\"450\" height=\"160\" \/><\/div>\n<h2 class=\"blog-caption-numbered\">1. Export to CSV or tabbed text with the Services application<\/h2>\n<p>Perhaps the easiest way to export your services is with the <a href=\"\/blog\/windows-services\/essential-tools-windows-services-msc\/\">built-in Windows Services application<\/a> &mdash; services.msc.<\/p>\n<p>To export, simply:<\/p>\n<ol style=\"margin-bottom:24px\">\n<li>\n<p>Start Services. Click the Start button, type <b>services.msc<\/b> in the search field and hit return.<\/p>\n<\/li>\n<li>\n<p>From the <b>Action<\/b> menu, select <b>Export List<\/b>:<\/p>\n<div align=\"center\"><a href=\"\/blog\/images\/services-export-list.png\" class=\"zoomPopup\" title=\"Services: Export List\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" class=\"image-padding\" src=\"\/blog\/images\/services-export-list.png\" title=\"Services: Export List (click to enlarge)\" alt=\"Services: Export List\" border=\"0\" width=\"500\" \/><\/a><\/div>\n<\/li>\n<li>\n<p>Choose the format (tab delimited text or CSV), enter a file name and click <b>Save<\/b> to create the file.<\/p>\n<\/li>\n<\/ol>\n<p>Your file will contain the following five columns of data, which you cannot customize:<\/p>\n<ol style=\"margin-bottom:24px\">\n<li>\n<p>Name (Note: This is the service&#8217;s display name, not its unique name used by Windows)<\/p>\n<\/li>\n<li>\n<p>Description<\/p>\n<\/li>\n<li>\n<p>Status<\/p>\n<\/li>\n<li>\n<p>Startup Type<\/p>\n<\/li>\n<li>\n<p>Log On As<\/p>\n<\/li>\n<\/ol>\n<p>If that&#8217;s all you need then you&#8217;re good to go!<\/p>\n<h2 class=\"blog-caption-numbered\">2. Export to CSV or XML with PowerShell<\/h2>\n<p>Even though it&#8217;s easy to do, exporting with the Services application may not provide all the information you would like to capture. For example, the service name is not included and neither is the command line used to start the service.<\/p>\n<p>If you&#8217;d like more columns, then PowerShell is another option.<\/p>\n<p>For example, this command lists all the services on your machine:<\/p>\n<blockquote><p><b>Get-CIMInstance -Class Win32_Service | Select-Object Name, DisplayName, Description, StartMode, DelayedAutoStart, StartName, PathName, State, ProcessId<\/b><\/p><\/blockquote>\n<p>The output looks like this:<\/p>\n<div align=\"center\"><a href=\"\/blog\/images\/powershell-list-all-services.png\" class=\"zoomPopup\" title=\"PowerShell: List all services\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" class=\"image-padding\" src=\"\/blog\/images\/powershell-list-all-services.png\" title=\"PowerShell: List all services (click to enlarge)\" alt=\"PowerShell: List all services\" border=\"0\" width=\"500\" \/><\/a><\/div>\n<p>Note that you can add or remove properties from the <a href=\"https:\/\/docs.microsoft.com\/en-us\/powershell\/module\/microsoft.powershell.utility\/select-object\" target=\"_blank\" rel=\"noopener\">Select-Object<\/a> section as you see fit. Feel free to include any property listed in the <a href=\"https:\/\/docs.microsoft.com\/en-us\/windows\/win32\/cimwin32prov\/win32-service\" target=\"_blank\" rel=\"noopener\">Win32_Service class<\/a> documentation.<\/p>\n<p>And once you&#8217;ve settled on a command that prints the necessary information, call the <a href=\"https:\/\/docs.microsoft.com\/en-us\/powershell\/module\/microsoft.powershell.utility\/export-csv\" target=\"_blank\" rel=\"noopener\">Export-CSV module<\/a> at the end to send the results to a file.<\/p>\n<p>For example, this command exports the list of services to &#8220;C:\\output-file.csv&#8221;:<\/p>\n<blockquote><p><b>Get-CIMInstance -Class Win32_Service | Select-Object Name, DisplayName, Description, StartMode, DelayedAutoStart, StartName, PathName, State, ProcessId | <span style=\"color:red;\">Export-CSV -Path C:\\output-file.csv<\/span><\/b><\/p><\/blockquote>\n<p>If you prefer to create an XML file, call <a href=\"https:\/\/docs.microsoft.com\/en-us\/powershell\/module\/microsoft.powershell.utility\/export-clixml\" target=\"_blank\" rel=\"noopener\">Export-Clixml<\/a> instead:<\/p>\n<blockquote><p><b>Get-CIMInstance -Class Win32_Service | Select-Object Name, DisplayName, Description, StartMode, DelayedAutoStart, StartName, PathName, State, ProcessId | <span style=\"color:red;\">Export-Clixml -Path C:\\output-file.xml<\/span><\/b><\/p><\/blockquote>\n<p>But we must warn you &mdash; the XML created is a bit difficult to read (or parse):<\/p>\n<div align=\"center\"><a href=\"\/blog\/images\/powershell-export-services-xml.png\" class=\"zoomPopup\" title=\"Services exported to XML with PowerShell\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" class=\"image-padding\" src=\"\/blog\/images\/powershell-export-services-xml.png\" title=\"Services exported to XML with PowerShell (click to enlarge)\" alt=\"Services exported to XML with PowerShell\" border=\"0\" width=\"520\" \/><\/a><\/div>\n<h2 class=\"blog-caption-numbered\">3. Export to XML with Windows Service Auditor<\/h2>\n<p>Finally, if you&#8217;re after XML, our free <a href=\"\/products\/WindowsServiceAuditor\/\">Windows Service Auditor<\/a> utility is worth a look.<\/p>\n<p>We created Windows Service Auditor to help protect against changes to your important Windows Services but it has the ability to export the list of services to an XML file as well.<\/p>\n<p>After downloading and starting Windows Service Auditor, simply select <b>Export (XML}<\/b> from the <b>All Services<\/b> menu to create the XML file:<\/p>\n<div align=\"center\"><a href=\"\/blog\/images\/windows-service-auditor-export-all-xml.png\" class=\"zoomPopup\" title=\"Windows Service Auditor: Export XML\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" class=\"image-padding\" src=\"\/blog\/images\/windows-service-auditor-export-all-xml.png\" title=\"Windows Service Auditor: Export XML (click to enlarge)\" alt=\"Windows Service Auditor: Export XML\" border=\"0\" width=\"520\" \/><\/a><\/div>\n<p>The XML will be very detailed, with all aspects of your Windows Services recorded. Here is an example:<\/p>\n<div align=\"center\"><a href=\"\/blog\/images\/windows-service-auditor-xml.png\" class=\"zoomPopup\" title=\"XML created by Windows Service Auditor\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" class=\"image-padding\" src=\"\/blog\/images\/windows-service-auditor-xml.png\" title=\"XML created by Windows Service Auditor (click to enlarge)\" alt=\"XML created by Windows Service Auditor\" border=\"0\" width=\"520\" \/><\/a><\/div>\n<p>Because its output is so detailed, Windows Service Auditor is your best option if your goal is to take a snapshot of your services and all their settings.<\/p>\n<p style=\"margin-top:30px\">\nHopefully one of these three methods works for you!<\/p>\n<!-- relpost-thumb-wrapper --><div class=\"relpost-thumb-wrapper\"><!-- filter-class --><div class=\"relpost-thumb-container\"><style>.relpost-block-single-image, .relpost-post-image { margin-bottom: 10px; }<\/style><h3>You may also like...<\/h3><div style=\"clear: both\"><\/div><div style=\"clear: both\"><\/div><!-- relpost-block-container --><div class=\"relpost-block-container relpost-block-column-layout\" style=\"--relposth-columns: 3;--relposth-columns_t: 2; --relposth-columns_m: 2\"><a href=\"https:\/\/www.coretechnologies.com\/blog\/srvany\/stop-srvany-service\/\"class=\"relpost-block-single\" ><div class=\"relpost-custom-block-single\"><img decoding=\"async\" loading=\"lazy\" class=\"relpost-block-single-image\" alt=\"Q&amp;A: Why doesn&#039;t Srvany Close my Application when I Stop the Service?\"  src=\"https:\/\/www.coretechnologies.com\/blog\/wp-content\/uploads\/gear-question-150x150-1.png\" style=\"aspect-ratio:1\/1\" style=\"aspect-ratio:1\/1\"><\/img><div class=\"relpost-block-single-text\"  style=\"height: 75px;font-family: Arial;  font-size: 12px;  color: #333333;\"><h2 class=\"relpost_card_title\">Q&amp;A: Why doesn&#039;t Srvany Close my Application when I Stop the Service?<\/h2><\/div><\/div><\/a><a href=\"https:\/\/www.coretechnologies.com\/blog\/alwaysup\/version-13-released\/\"class=\"relpost-block-single\" ><div class=\"relpost-custom-block-single\"><img decoding=\"async\" loading=\"lazy\" class=\"relpost-block-single-image\" alt=\"AlwaysUp Version 13: Easily Install Dropbox, OneDrive, Java and more as Windows Services; Full Suppo...\"  src=\"https:\/\/www.coretechnologies.com\/blog\/wp-content\/uploads\/new-release-150-150.png\" style=\"aspect-ratio:1\/1\" style=\"aspect-ratio:1\/1\"><\/img><div class=\"relpost-block-single-text\"  style=\"height: 75px;font-family: Arial;  font-size: 12px;  color: #333333;\"><h2 class=\"relpost_card_title\">AlwaysUp Version 13: Easily Install Dropbox, OneDrive, Java and more as Windows Services; Full Suppo...<\/h2><\/div><\/div><\/a><a href=\"https:\/\/www.coretechnologies.com\/blog\/servicetray\/version-5-1-released\/\"class=\"relpost-block-single\" ><div class=\"relpost-custom-block-single\"><img decoding=\"async\" loading=\"lazy\" class=\"relpost-block-single-image\" alt=\"ServiceTray 5.1: Improvements to Help you Control any Windows Service from a Taskbar Icon\"  src=\"https:\/\/www.coretechnologies.com\/blog\/wp-content\/uploads\/new-release-2-150x150-1.webp\" style=\"aspect-ratio:1\/1\" style=\"aspect-ratio:1\/1\"><\/img><div class=\"relpost-block-single-text\"  style=\"height: 75px;font-family: Arial;  font-size: 12px;  color: #333333;\"><h2 class=\"relpost_card_title\">ServiceTray 5.1: Improvements to Help you Control any Windows Service from a Taskbar Icon<\/h2><\/div><\/div><\/a><\/div><!-- close relpost-block-container --><div style=\"clear: both\"><\/div><\/div><!-- close filter class --><\/div><!-- close relpost-thumb-wrapper -->","protected":false},"excerpt":{"rendered":"<p>1. Export to CSV or tabbed text with the Services application Perhaps the easiest way to export your services is with the built-in Windows Services application &mdash; services.msc. To export, simply: Start Services. Click the Start button, type services.msc in &hellip; <a href=\"https:\/\/www.coretechnologies.com\/blog\/windows-services\/how-to-export-services\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":11450,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18],"tags":[295,119,151,240,196],"class_list":["post-11324","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-windows-services","tag-export-services","tag-powershell","tag-services-msc","tag-windows-service-auditor","tag-windows-services-2"],"_links":{"self":[{"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/11324","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/comments?post=11324"}],"version-history":[{"count":11,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/11324\/revisions"}],"predecessor-version":[{"id":11471,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/11324\/revisions\/11471"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/media\/11450"}],"wp:attachment":[{"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/media?parent=11324"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/categories?post=11324"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/tags?post=11324"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}