This file contains 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
#This gist contains example code and is not a functional powershell script. Enjoy! | |
# | |
# @M3T4L5T3F | |
# 20190201 | |
# | |
#Disable | |
(Get-PnpDevice | ? { $_.Class -eq 'Keyboard' } | % { $_ | Disable-PnpDevice } | |
#Enable | |
(Get-PnpDevice | ? { $_.Class -eq 'Keyboard' } | % { $_ | Enable-PnpDevice } |
This file contains 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
# POC Covert Physical Tracking script | |
# provides lat,long and address via google geocoding API on a timed loop | |
# By @M3T4L5T3F | |
# Inspired by: | |
#https://stackoverflow.com/users/3694461/colsw | |
#https://stackoverflow.com/questions/46287792/powershell-getting-gps-coordinates-in-windows-10-using-windows-location-api | |
#https://docs.microsoft.com/en-us/dotnet/api/system.device.location.geocoordinatewatcher?view=netframework-4.7.2 | |
#https://www.syspanda.com/index.php/2018/01/13/google-geocode-api-powershell/ | |
$GoogleAPIKey = "Put your Google Geocoding API key between the quotes here" |
This file contains 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
# By @M3T4L5T3F | |
# Change values to different experience. Works on laptops. Future update will add desktop monitor support | |
$i=0 | |
While ($true) | |
{ | |
$i++ | |
$brightness = Get-Random -Maximum 25 | |
$delay = 0 |
This file contains 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
# Use Windows Speech engine with PowerShell | |
# | |
# Usage example: powershell .\PSSay.ps1 'This is a test' | |
# | |
# Thanks to Greg Foss for the original example! | |
# https://gist.github.com/gfoss | |
param( [string]$comment = $_ ) | |
Add-Type -AssemblyName System.speech | |
$speak = New-Object System.Speech.Synthesis.SpeechSynthesizer |