Intune Initial Scripts Backup
This commit is contained in:
12
dump/GUI-DialogBox.ps1
Normal file
12
dump/GUI-DialogBox.ps1
Normal file
@@ -0,0 +1,12 @@
|
||||
|
||||
$d = [Windows.Forms.MessageBox]::show("PowerShell Rocks", "PowerShell Rocks",
|
||||
[Windows.Forms.MessageBoxButtons]::YesNo, [Windows.Forms.MessageBoxIcon]::Question)
|
||||
|
||||
If ($d -eq [Windows.Forms.DialogResult]::Yes)
|
||||
{
|
||||
'Yes, PowerShell Rocks'
|
||||
}
|
||||
else
|
||||
{
|
||||
"On no, you don't like me"
|
||||
}
|
||||
Reference in New Issue
Block a user