Skip to content

Instantly share code, notes, and snippets.

@benichmt1
Created June 5, 2017 21:01
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save benichmt1/05d0058e17b5ebdba23e424dcd2de6d3 to your computer and use it in GitHub Desktop.
Save benichmt1/05d0058e17b5ebdba23e424dcd2de6d3 to your computer and use it in GitHub Desktop.
Windows Logon Reminder Balloon
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