No output when running powershell command

user1342164

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
Loïc MICHEL

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] 삭제

에서 수정
0

몇 마디 만하겠습니다

0리뷰
로그인참여 후 검토

관련 기사

분류에서Dev

Missing segfault output in Linux terminal when running with "&"

분류에서Dev

"command not found" when running "lessc" from bash

분류에서Dev

real-time search in terminal output stream; after running a command

분류에서Dev

real-time search in terminal output stream; after running a command

분류에서Dev

Displaying "No Results" When AWK Command has no output

분류에서Dev

Why does powershell freeze for a bit when running my python scripts

분류에서Dev

Running scp when .bashrc of remote machine includes source command

분류에서Dev

QProcess always returns -2 when running a valid command

분류에서Dev

Perl error when running cron through command line?

분류에서Dev

Spring Boot Jersey - Missing EmbeddedServletContainerFactory when running java -jar command

분류에서Dev

xargs command is running on local machine but results in an "invalid command" error when run on remote host

분류에서Dev

Powershell command call doesn't work when command line arguments are supplied with a variable

분류에서Dev

Output of running commands in Terminal

분류에서Dev

Running a command at startup

분류에서Dev

Temporary file for running a command

분류에서Dev

Running a command on many files

분류에서Dev

Running command at startup on crontab

분류에서Dev

No Output Powershell Script

분류에서Dev

"command not found" when running a shell script. What did I break?

분류에서Dev

PhantomJS gives Segmentation fault when running any js using command line

분류에서Dev

Getting ORA-00933: SQL command not properly ended, when running the following query?

분류에서Dev

How to keep running a process in Android when disconnecting adb terminal? command "nohup" not found

분류에서Dev

How to keep running a process in Android when disconnecting adb terminal? command "nohup" not found

분류에서Dev

What is the actual command executed when running a script with a shebang as its name with same arguments?

분류에서Dev

handling command output in python

분류에서Dev

Output a Command Stored in a Variable

분류에서Dev

Awk command to powershell

분류에서Dev

AMPL:How to print variable output using NEOS Server, when you can't include data and model command in the command file?

분류에서Dev

running sudo command for a user in centos

Related 관련 기사

  1. 1

    Missing segfault output in Linux terminal when running with "&"

  2. 2

    "command not found" when running "lessc" from bash

  3. 3

    real-time search in terminal output stream; after running a command

  4. 4

    real-time search in terminal output stream; after running a command

  5. 5

    Displaying "No Results" When AWK Command has no output

  6. 6

    Why does powershell freeze for a bit when running my python scripts

  7. 7

    Running scp when .bashrc of remote machine includes source command

  8. 8

    QProcess always returns -2 when running a valid command

  9. 9

    Perl error when running cron through command line?

  10. 10

    Spring Boot Jersey - Missing EmbeddedServletContainerFactory when running java -jar command

  11. 11

    xargs command is running on local machine but results in an "invalid command" error when run on remote host

  12. 12

    Powershell command call doesn't work when command line arguments are supplied with a variable

  13. 13

    Output of running commands in Terminal

  14. 14

    Running a command at startup

  15. 15

    Temporary file for running a command

  16. 16

    Running a command on many files

  17. 17

    Running command at startup on crontab

  18. 18

    No Output Powershell Script

  19. 19

    "command not found" when running a shell script. What did I break?

  20. 20

    PhantomJS gives Segmentation fault when running any js using command line

  21. 21

    Getting ORA-00933: SQL command not properly ended, when running the following query?

  22. 22

    How to keep running a process in Android when disconnecting adb terminal? command "nohup" not found

  23. 23

    How to keep running a process in Android when disconnecting adb terminal? command "nohup" not found

  24. 24

    What is the actual command executed when running a script with a shebang as its name with same arguments?

  25. 25

    handling command output in python

  26. 26

    Output a Command Stored in a Variable

  27. 27

    Awk command to powershell

  28. 28

    AMPL:How to print variable output using NEOS Server, when you can't include data and model command in the command file?

  29. 29

    running sudo command for a user in centos

뜨겁다태그

보관