Created
June 5, 2017 21:01
-
-
Save michael-bey/05d0058e17b5ebdba23e424dcd2de6d3 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