Link to home
Create AccountLog in
Avatar of Kelly Garcia
Kelly GarciaFlag for United Kingdom of Great Britain and Northern Ireland

asked on

PowerShell Out-gridview

Hi,

I have the out-gridview in my powershell script, is there a way i could force the grid to allow only one selection?

  $SelectedStorage = ($StorageAccounts | Out-GridView -Title 'Select Azure Storage' -PassThru)

Open in new window


also is there a way i can set a default selection?

thank you in advance,
Kelly
ASKER CERTIFIED SOLUTION
Avatar of oBdA
oBdA

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Add -OutputMode Single to the cmdlet.