I am trying to get the list of members/computers from a collection in SCCM. When I run the command below I don't get any errors and it takes about 2 minutes before it finishes but it never shows any output? Just goes back to the prompt. Any ideas why it wont show me any output? Thank you
import-module 'C:\Program Files (x86)\Microsoft Configuration Manager\AdminConsole\bin\ConfigurationManager.psd1'
$GetDevices = Get-CMDevice -CollectionName "All Systems" | Select Name
You have put the result of get-CMDevice in a variable but you never echo it, try $GetDevices
(or echo $GetDevices
) and you should see the output
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다