如何在Powershell中提示用户输入?

时间:2016-01-27 11:56:08

标签: powershell

我想提示用户输入1: 0x00007fe19271e930 2: 0x00007fe19271e930 foo call to a finished, a = [1] <-- call to foo finished, 'inout' procedure complete 3: 0x00007fe19271e930 <-- dispatch in `foo` starts 4: 0x00007fe1927085e0 <-- mutates 'bar': 'bar' copied (and never "returned" as this step is already finished) value of a naturally not changed here = [1] 5: 0x00007fe19271e930 <-- naturally 'a' wont see the effect of the delayed mutation in foo 。它甚至可能吗?

"GroupName"

1 个答案:

答案 0 :(得分:2)

$groupName = Read-Host "Group name"
Get-ADGroup -Filter { name -like $groupName } | select name

评论后编辑:

Get-AdGroup -Filter { name -like "*$($groupName)*" } | select name