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

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -