powershell - 使用 PowerShell 获取 Windows 服务的启动类型

标签 powershell windows-services

如何使用 PowerShell 而不是使用 WMI 获取 Windows 服务启动类型?

我查看了 Get-Service 的内部命令,并且它没有提供显示“启动类型”的内容。

最佳答案

使用 PowerShell 版本 4:

您可以运行如下命令:

   Get-Service | select -property name,starttype

关于powershell - 使用 PowerShell 获取 Windows 服务的启动类型,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4304821/

相关文章:

c# - 在 Windows 服务 C# 中引发自定义类事件

powershell - 如何在Powershell中为 “Network Service”帐户创建Windows服务?

c# - 调试窗口服务

powershell - 使用Powershell修改web.config

.net - 管理 worker 的多个实例的架构?

azure - 如何检查特定的 Azure ARM 资源是否存在,如果不存在则使用 PowerShell 创建它

mysql - 文本输出中隐藏空值的问题

powershell - msiexec.exe - 嵌入

powershell - 如何使用 Powershell 在 OneNote 文件中搜索文本

powershell - 如何以编程方式获取 Azure 订阅的所有成员