目前,我正在使用Powershell 4.0开发Windows Server 2012 R2,可以在以管理员身份使用提升的用户权限时执行Get-Process -IncludeUserName。但是,当我尝试使用相同的提升的用户权限在使用Powershell 3.0的Windows Server 2008 R2上运行相同的命令时,找不到参数-IncludeUserName。在执行命令的第二个系统上缺少什么?
Get-Process通过管道接受-computername参数(ByPropertyName).我导入的文件如下所示:sql01sql03$a | get-process -name dwm # output only from the first computerin the list
get-process dwm -ComputerName $a.comp
当我这样做的时候: help get-process 我明白了: Name Category ModuleSynopsisGet-ProcessCmdlet Microsoft.PowerShell.Man… Gets the processes that are running on the local…
G