Day: April 2, 2019

PowerShell: Download Dot Net 4.7.2

# Illustration: download Dot Net 4.7 Run-time from behind a proxy and showing progress barfunction…

Function to Import PortQry (a Systernal Utility)

Update: much adieu about nothing. Run this quick script and ignore the prior jibberish: if…

Question: Is VirtualBox Recommended for Production?

Answer: No - It's not supported for production environment: - VirtualBox is not enterprise level:…

Some Stories in the Backlog

1. Upgrade pods with 32" monitors - Make collaboration easier - Increase productivity   2.…

PowerShell: Methods to Download Files

# Change these values to reflect your desired downloads$fileURL = "https://download.microsoft.com/download/0/d/9/0d9d81cf-4ef2-4aa5-8cea-95a935ee09c9/PortQryV2.exe"$output = "C:\WINDOWS\System32\SysInternals\portqry.exe"1. Start-BitsTransfer (my…

MongoDB: Backup and Restore

Manual Methods:Using mongodump and mongorestoreMaking a backup using mongodump- Permissions required: grant find action, backup…

PowerShell: Check RPC Services on Remote Windows Machines

This current version is to be more compatible with PoSH 6.0 (by removing work-flow) as…

PowerShell: Function to Wait for Service to Be Back Online (After Server Reboots)

Function waitForService{ $testSucceeded=(Test-NetConnection $server -port $port).TcpTestSucceeded $null=Set-PSBreakpoint -Variable rightNow -Mode Read -Action { $global:testSucceeded =…

PowerShell: How to Play a Sound

$soundFile="C:\Windows\media\tada.wav"$sound = new-Object System.Media.SoundPlayer$sound.SoundLocation=$soundFile$sound.Play()

Explain Try and Catch Block

try { Execute function X; Execute function Y;}catch{ Execute this when any function fails: X…