TechBuzzPro

How Do I Import a List of Windows Services?

· 6 min read · Windows & PC

In this article
  1. 1. PowerShell Get-Service with a Text File
  2. 2. PowerShell Import-Csv for Service Inventories
  3. 3. sc.exe query with a FOR Loop
  4. 4. Task Manager Services Tab
  5. 5. Services.msc and the Export List Option
  6. 6. Sysinternals PsService
  7. 7. WMI and CIM Queries
  8. 8. Group Policy Preferences for Service Configuration
  9. 9. Third-Party Service Managers
  10. 10. SCCM and Intune Inventory
  11. How to Choose
  12. Frequently Asked Questions
  13. Final Thoughts

Importing a list of Windows services means loading service names from a text file into a tool that can query, start, stop, or report on them. This guide covers ten practical methods for Windows 10 and 11, from built-in PowerShell and Command Prompt to Sysinternals utilities and third-party managers. It is for IT pros, help-desk technicians, and power users who need to audit, document, or bulk-manage services without clicking through services.msc one by one. Menu labels and command syntax can differ slightly by Windows version, edition, or region, so verify paths on your own system.

1. PowerShell Get-Service with a Text File

PowerShell is the most direct way to import a list of service names. Save one service name per line in a plain text file (for example services.txt), then run Get-Service -Name (Get-Content .\services.txt). The cmdlet accepts an array of names and returns status, display name, and startup type. If a name is wrong, PowerShell reports a non-terminating error for that entry but still processes the rest, which makes it easy to spot typos. Use -ErrorAction SilentlyContinue only when you want to suppress those messages.

2. PowerShell Import-Csv for Service Inventories

When your list has columns such as Name, DisplayName, and StartupType, use Import-Csv .\services.csv | ForEach-Object { Get-Service -Name $_.Name }. This preserves the structure of your source file and lets you filter by column before querying. It is ideal for teams that maintain a spreadsheet of required services per server role. Export the results with Export-Csv to create an audit trail. Keep the CSV header row exact, because PowerShell matches property names literally.

3. sc.exe query with a FOR Loop

The built-in Service Control utility, sc.exe, works in Command Prompt and in scripts without PowerShell. A simple loop reads each line and queries it: for /f %s in (services.txt) do sc query %s. In a batch file, use %%s instead of %s. This method is useful on older systems or in restricted environments where PowerShell execution policy blocks scripts. sc.exe returns the service state, exit code, and service type, but it does not show startup type unless you run sc qc for each name.

4. Task Manager Services Tab

Task Manager does not import a file directly, but it is a quick manual cross-check. Open Task Manager, go to the Services tab, and sort by Name. You can right-click a service to start, stop, or open Services. For a short list, this is faster than scripting. For long lists, use it only to verify that a service exists and is running after a scripted change. The Services tab shows the service name and PID but not the display name, so match carefully.

5. Services.msc and the Export List Option

The Services console (services.msc) can export its current view. Right-click the header row, choose Export List, and save as a text or CSV file. That gives you a baseline inventory. To import a list back, services.msc has no native import button; instead, use the exported file as input to PowerShell or sc.exe. This round trip is handy for comparing a server against a known-good baseline. Note that the export includes display names, not the short service names, so map them before scripting.

6. Sysinternals PsService

PsService from Sysinternals queries, configures, and controls services on local and remote machines. Run psservice query \\computer to list services, or feed names from a file with a loop. It works over the network without installing an agent, which makes it useful for remote audits. PsService can also show the service account and dependencies. Download it only from Microsoft's official Sysinternals page. It requires appropriate administrative rights on the target machine.

7. WMI and CIM Queries

Windows Management Instrumentation exposes services through the Win32_Service class. In PowerShell, Get-CimInstance Win32_Service -Filter "Name='Spooler'" returns detailed properties including StartMode, State, and PathName. To process a list, loop over the names and build a filter string. CIM is the modern replacement for Get-WmiObject and works with remoting. This approach is best when you need properties that Get-Service does not expose, such as the service account or executable path.

8. Group Policy Preferences for Service Configuration

In an Active Directory domain, Group Policy Preferences can set service startup and recovery options across many computers. You define the service by name in the policy, and the client applies it at startup or logon. This is not a file import in the scripting sense, but it is the standard way to enforce a service list at scale. Use it for startup type and account settings, not for one-off queries. Test in a pilot OU first, because a misconfigured preference can stop a required service on every machine in scope.

9. Third-Party Service Managers

Tools such as ServiWin and Windows Service Manager let you load a list from a file and perform bulk actions through a graphical interface. They are convenient for technicians who prefer not to write scripts. Check that the tool is actively maintained and downloaded from the vendor's official site. Be cautious with bulk stop or disable actions: a wrong entry can break printing, networking, or update delivery. Always export the current state before changing anything.

10. SCCM and Intune Inventory

Microsoft Endpoint Configuration Manager and Intune can collect service inventory from managed devices. In Configuration Manager, hardware inventory includes installed services when the relevant class is enabled. In Intune, use a custom inventory or a remediation script to report service state. These platforms are for fleets, not single PCs, and they require existing management infrastructure. Use them when you need recurring, automated reporting rather than a one-time import.

How to Choose

Pick based on scope and skill. For a one-time check on one PC, PowerShell Get-Service is fastest. For remote machines without PowerShell remoting, PsService or sc.exe with a loop works. For structured data with multiple columns, Import-Csv keeps your source file readable. For domain-wide enforcement, Group Policy Preferences or a management platform is the right layer. Avoid third-party tools unless you can verify their source and you need a GUI. In every case, back up the current service configuration first, and test on a non-critical machine before applying changes broadly.

Frequently Asked Questions

Can I import a list into services.msc directly?

No. Services.msc has no import function. Export the list and process it with PowerShell or sc.exe instead.

Why does Get-Service fail on some names from my file?

The file may contain display names instead of short service names, extra spaces, or blank lines. Use the Name column from services.msc or Get-Service | Select Name, DisplayName to confirm.

Can I start or stop services from an imported list?

Yes. Pipe the names to Start-Service or Stop-Service, or use sc stop and sc start. Run as administrator and check dependencies first.

Does this work on Windows Server?

Yes. PowerShell, sc.exe, PsService, and CIM work on supported Windows Server versions. Group Policy Preferences require Active Directory.

How do I export the current service list?

Run Get-Service | Export-Csv services.csv -NoTypeInformation in PowerShell, or use Export List in services.msc.

Final Thoughts

Importing a service list is mostly about choosing the right transport for your names: a text file for PowerShell and sc.exe, a CSV for structured inventories, or a management platform for fleets. Start with a read-only query, confirm the names match, and only then move to start, stop, or configuration changes. That sequence prevents most accidental outages.