Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $message = $site_collection_url + " " + "Is this URL is correct, and do you wish to continue"
- $yes = New-Object System.Management.Automation.Host.ChoiceDescription "&Yes", `
- "Builds and Permissions the new site collection $site_collection_url"
- $no = New-Object System.Management.Automation.Host.ChoiceDescription "&No", `
- "Ends the script and does not build the new site collection."
- $options = [System.Management.Automation.Host.ChoiceDescription[]]($yes, $no)
- $result = $host.ui.PromptForChoice($title, $message, $options, 0)
- switch ($result)
- {
- 0 {"You selected Yes."}
- 1 {"You selected No."}
- }
- if ($result = 0)
- {
- {break}
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement