Skip to content
A PowerShell module that contains different functions that can be used for pranking your fellow co-worker or anyone else for that matter.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
AudioFiles
LICENSE
PSTrollFunctions.psm1
README.md

README.md

PowerShell-Troll

A PowerShell module that contains different functions that can be used for pranking your fellow co-worker or anyone else for that matter. Keep in mind that this is a very simply module and not alot of time was spend making all of them as good or well documented at all.

All of the functions can either be copy pasted in a PSSession or import the module on the victim PC. All of the functions are designed for a laugh and not destruction. The functions are scraped of the internet by various sources or transformed into functions by me.

I am not responsible for any damage caused.

Usage

Invoke-WebRequest -Uri "https://raw.githubusercontent.com/perplexityjeff/PowerShell-Troll/master/PSTrollFunctions.psm1" -OutFile "PSTrollFunctions.psm1"
Import-Module .\PSTrollFunctions.psm1

Functions

Set-Wallpaper Enables you to set the wallpaper of a victim. Work in progress currently as it doesn't trigger an update.
Start-AudioControl Enables you to control the audio level by for example [audio]::Volume = 1 (100%).
Set-AudioLevel Enables you to control the audio level in a range from 0 to 1.0 (100%) by using a double e.g 0.25.
Set-AudioMax Enables you to control the audio level and set it to 100% to maximize Rick Ashley output.
Set-AudioMin Enables you to control the audio level and set it to 0% to minimize [insert far to loud of a song here].
Unmute-Audio Enables you to control the audio to unmute it.
Mute-Audio Enables you to control the audio to mute it.
Send-Alarm Send the traditional annoyingly great alarm clock sound you know and love.
Send-CatFact Retrieves a random $CatFact and plays it in audio to the victim.
Send-Joke Sends a random joke to your victim, has a switch to send as a messagebox.
Send-ChuckNorrisFact Retrieves a random $ChuckFact and plays it in audio to the victim.
Send-DadJoke Retrieves a random $DadJoke and plays it in audio to the victim.
Send-FakeUpdate Starts a fake Windows 10 update screen
Send-Gandalf Starts playing the epic sax guy gandalf edition.
Send-Message Send a messagebox with your text to all logged in users.
Send-RickRoll Starts playing the best song of all time.
Send-RowBoat Sends an attempt of sing Row, Row Row your boat.
Open-CDDrive Attempts to command the CD Drive it finds to Eject.
Close-CDDrive Attempts to command the CD Drive it finds to Close.
Send-NotificationSoundSpam Loops through the whole C:\Windows\Media directory and plays every wav file it finds in there with a default but customizable 4 second delay.
Send-VoiceMessage Send your lovely message to your co-worker in all its robot computer voice glory.
Send-SuperMario Start playing Super Mario using console beeps.
Send-HappyBirthday Start playing Happy Birthday using console beeps.

License

This project is licensed under the MIT license

Tested

All of them were tested and working as far as I know.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.