How to prompt for user input inside Powershell? -


i want prompt user input in "groupname". possible?

get-adgroup -filter {name -like "*groupname*"} | select name 

$groupname = read-host "group name" get-adgroup -filter { name -like $groupname } | select name 

edit after comment:

get-adgroup -filter { name -like "*$($groupname)*" } | select name 

Comments

Popular posts from this blog

authentication - Mongodb revoke acccess to connect test database -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -

r - Update two sets of radiobuttons reactively - shiny -