Hello Friends,
is there any way to change this script looks, i would like to see my in 1 column not like row.
i tried to at “`n`r or only `n” but it is not working , please help.
i would like to see them like this :
Choose Action
Grant/Remove permissions.
[1] 1. Grant Send-As
[2] 2. Grant FullAccess
[3] 3. Grant Send-As & FullAccess
[4] 4. Remove Send-As
[5] 5. Remove FullAccess
[6] 6. Remove Send-As and FullAccess
[7] 7. Exit
[?] Help (default is “7”):
not like this way.
Choose Action
Grant/Remove permissions.
[1] 1. Grant Send-As [2] 2. Grant FullAccess [3] 3. Grant Send-As & FullAccess [4] 4. Remove Send-As
[5] 5. Remove FullAccess[6] 6. Remove Send-As and FullAccess [7] 7. Exit [?] Help (default is “7”):
$Title = "Choose Action" $Message = "Grant/Remove permissions."$A = New-Object System.Management.Automation.Host.ChoiceDescription “&1. Grant Send-As” , `
“Grant Send-As permissions.”
$B = New-Object System.Management.Automation.Host.ChoiceDescription “&2. Grant FullAccess” , `
“Grant FullAccess permissions.”
$C = New-Object System.Management.Automation.Host.ChoiceDescription “&3. Grant Send-As & FullAccess” , `
“Grant both Send-As & FullAccess permissions.”
$D = New-Object System.Management.Automation.Host.ChoiceDescription “&4. Remove Send-As” , `
“Remove Send-As permissions.”
$E = New-Object System.Management.Automation.Host.ChoiceDescription “&5. Remove FullAccess” , `
“Remove FullAccess permissions.”
$F = New-Object System.Management.Automation.Host.ChoiceDescription “&6. Remove Send-As and FullAccess” , `
“Remove both Send-As & FullAccess permissions.”
$G = New-Object System.Management.Automation.Host.ChoiceDescription “&7. Exit” , `
“Exit script”$Options = System.Management.Automation.Host.ChoiceDescription[]
$Result = $Host.UI.PromptForChoice($Title,$Message,$Options, 6)switch ($Result)
{ 0 {"You selected Yes."} 1 {"You selected No."} 2 {"You selected Maybe."} }