WMI Unquoted Paths
In der CMD:
wmic service get name,displayname,pathname,startmode | findstr /i "auto" |findstr /i /v "c:\windows\" |findstr /i /v """
In der PowerShell
cmd /c 'wmic service get name,displayname,pathname,startmode | findstr /i "auto" | findstr /i /v "c:windows\" |findstr /i /v """'
Abfrage des Zertifikats für RDP
In der PowerShell
Get-WmiObject -class "Win32_TSGeneralSetting" -Namespace root\cimv2\terminalservices -Filter "TerminalName='RDP-tcp'"