“Hot Corners” for Windows (PowerShell)

GitHub files PoShHotCorners “Hot Corners” for Windows install none really, simply download the ico and ps1 files to a folder and launch the ps1 please note MakeShortcut.cmd batch file provided for convenience … throw resulting .lnk file in your “run on startup” folder if you like: "%appdata%\Microsoft\Windows\Start Menu\Programs\Startup" as you can see, the batch file simply runs shortcut tool xxmklink.exe with appropriate arguments notes currently coded to power down monitors triggered by mouse in lower right corner … but it’s just powershell folks, so think grand!

PowerShell WinForms interactive Prototyping/Debugging

Credits: this post is great. i’m just adding a little packaging on top. Motivation PowerShell’s interactive nature lends it to be a handy way to experiment with .Net objects… including UI elements like WinForms/WPF… Yet firing up UI’s classically take over the active thread to service the user interaction (e.g. mouse events etc)… Without the extra gravy below, our otherwise handy interactive powershell locks up tight until we close down the Windows Forms application thus releasing the main thread back to the command line The following gravy throws a Windows Form onto a background thread such that we can continue to manipulate the UI objects WHILE THEY’RE RUNNING, yay!

PowerShell Photo Slideshow

GitHub Source Project Description Photo slideshow implemented in PowerShell -> Windows Forms Simply target a (nested) folder of images. Local or LAN UNC path supported.     Features: task tray icon to start slideshow on demand… otherwise kicks off after user defined idle timeout (honors running video) good randomization - one soon realizes pleasantly random photos are the key want of a photo slideshow … fortunately PowerShell has a readily available random commandlet that seems to do quite well persists “lastShown” for each subfolder and avoids re-showing within XX days (currently 1 month) image fade-in and slide for ambience several hotkeys functional: open current image folder copy current image to My Photos rotate current image (and save) - generally honors EXIF rotation metadata where present, this option allows for manual correction where EXIF is missing reverse to previously shown photo (left cursor) pause/play (space) hotkey legend pops up on any other keypress screen click functions: double click in center hides slideshow single click in center pauses slideshow click arrows on far left and right for prev/next image skips .

Transcode MOV to MP4

GitHub Source Motivation: Digital cameras and phones typically save video to MOV (Motion JPEG) files. I share my photos & videos via a self hosted open source photo gallery (zenPhoto). MOV files must be converted to a compatible format like MP4 to stream through the readily available web video players like Flowplayer. Script features: Handles multiple files at once… even from different folders, e.g. when part of a file explorer search result Applies rotation where recognized in the EXIF metadata.

PowerShell Dual Windows Explorers

  Nutshell: Hosting two Windows File Explorers inside a WinForm… with the potential of sprinkling some utility hotkeys on top – e.g. “copy from left to right”.   Full source on GitHub   Highlights: Always wanted to try this and just finally got around to it… and it actually works to a decent degree. This is of course well covered ground with various other file managers… i just wanted to see if you could do it this poor man’s way with PowerShell driving… so one could readily make it one’s own with further customizations I was a longtime fan of Directory Opus… I think it’s significant that this meager alternative is customized via standard PowerShell vs a 3rd party scripting environment that must be learned… i.

Chrome Blacklist Blocker (PowerShell)

If you need this, you’ll know why ;) Save ChromeBlacklistBlocker.ps1 somewhere local. You can run it via right mouse > “Run with PowerShell”. It will dump out some event text whenever it notices a registry change. (this is currently commented out and latest code hides the powershell console window after launch) Or more permanently, put a shortcut like this into your “shell:startup” folder: powershell.exe -ExecutionPolicy Bypass {path}ChromeBlacklistBlocker.ps1 It will monitor the HKLMSoftwarePolicies registry branch and delete the value named “1” under GoogleChromeExtensionInstallBlacklist.

List all your Azure RDP’s

Get-AzureVM | #this first one gets the entire list of VMs in subscription Get-AzureVM | # this one gets the detailed object for each specific VM %{ $port = ($_ | Get-AzureEndpoint | ? {$_.name -like "Remote*"})[0].Port; $null = $_.DNSName -match 'http://(.*?)/' write-host "$($_.Name) - $($matches[1]):$($port)" }

Outlook Bulk Remove Encryption

PowerShell Script to scan through specified Outlook folder and remove the encryption flag on each email. Background: We tend to cycle smart cards over the years in my environment. The old certs from those cards must be maintained in order to be able to pull up old emails sent to you which were encrypted with your old public key(s). This also makes it interesting to hand off a PST full of emails piled up as a simple knowledge base to someone else, since you really wouldn’t want to give them your certs of course.

PowerShell f’in rocks!

Main Microsoft landing page for PowerShell… download and install it!!  (if you’re running Windows Server 2008, it’s already loaded) Out of the box executing PowerShell scripts is completely disabled for security… there’s a couple immediate tasks to enable… Go find the PowerShell icon and fire it up… Vista (booo hiss!) > Start > Programs > Windows PowerShell 1.0 … Win7 (yay!) > Start > Programs > Accessories > Windows PowerShell Turn on ability to run PowerShell script files via “Set-ExecutionPolicy RemoteSigned” … you’ll need to do this right up front (only once) since this is locked down by default