Skip to content

Instantly share code, notes, and snippets.

foreach ($server in $servers) {
if ( test-connection -count 1 $server -quiet ) {
$i++
Write-Host "Modifying $server " -f green -nonewline; Write-Host "$i of " -f yellow -nonewline; Write-Host "$total" -f magenta
Write-Host "Killing qbupdate.exe" -f yellow
taskkill /s $server /im qbupdate.exe
Write-Host "Removing startup folder files" -f yellow
$startup = gci "\\$server\c$\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp\"
Write-Host "$startup" -f darkcyan
remove-item -path '\\$server\c$\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp\*' -Recurse -Force -Confirm:$false
@iamww
iamww / RestApiTest.ps1
Created November 9, 2015 15:48 — forked from bryan-c-oconnell/RestApiTest.ps1
bryanoconnell.blogspot.com - Test your RESTful API using PowerShell
# |Info|
# Written by Bryan O'Connell, November 2014
# Purpose: Sample of a functional test script for a RESTful API.
#
# Thanks to contributors on the 'jsonplaceholder' project for making a publicly
# accesible and generic REST API (which is used in the examples below).
# - http://jsonplaceholder.typicode.com
# - https://github.com/typicode/jsonplaceholder
#
# |Info|
@iamww
iamww / gist:4459745
Created January 5, 2013 04:26
Mac OS X: Remove the Dock's display delay
# http://hints.macworld.com/article.php?story=20120326061614691
# To remove the delay, open Terminal, type or copy and paste the following line and hit return:
defaults write com.apple.Dock autohide-delay -float 0 && killall Dock
# To restore the default behavior, enter:
defaults delete com.apple.Dock autohide-delay && killall Dock