Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/powershell/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
运行powershell命令时没有输出_Powershell_Powershell 2.0_Sccm - Fatal编程技术网

运行powershell命令时没有输出

运行powershell命令时没有输出,powershell,powershell-2.0,sccm,Powershell,Powershell 2.0,Sccm,我正在尝试从SCCM中的集合中获取成员/计算机的列表。当我运行下面的命令时,我没有得到任何错误,它需要大约2分钟才能完成,但它从未显示任何输出?回到提示。知道为什么它不会显示任何输出吗?多谢各位 import-module 'C:\Program Files (x86)\Microsoft Configuration Manager\AdminConsole\bin\ConfigurationManager.psd1' $GetDevices = Get-CMDevice -Collection

我正在尝试从SCCM中的集合中获取成员/计算机的列表。当我运行下面的命令时,我没有得到任何错误,它需要大约2分钟才能完成,但它从未显示任何输出?回到提示。知道为什么它不会显示任何输出吗?多谢各位

import-module 'C:\Program Files (x86)\Microsoft Configuration Manager\AdminConsole\bin\ConfigurationManager.psd1'
$GetDevices = Get-CMDevice -CollectionName "All Systems" | Select Name

您已将get-CMDevice的结果放入变量中,但从未回显,请重试
$GetDevices
(或
echo$GetDevices
)您应该可以看到输出