표시 다차원 배열에서 목록 :
$Victim = Read-Host -Prompt 'Enter the number of the host you want rid of...'
:
$AssetList | Where-Object {$_.agenttype -eq "N"} | Select-Object number, hostname, agentstatus | Write-Output
그런 다음 사용자의 숫자를 읽어
사실상 Write-Output 전에 Read-Host가 표시됩니다. 어떻게 뒤집어서 뒤집을 수 있습니까?
의 사용 가능한 복제 [일시 중지 또는 수 없습니다 수면 선택 - 객체 후 (http://stackoverflow.com/questions/34835327/unable-to-pause-or-sleep-after-select -object) – PetSerAl
내 해결책은'Write-Output' 대신'Out-String'을 사용하는 것이 었습니다. 이 솔루션은 그 중 하나를 언급하지 않는 것 ... –