This file contains hidden or 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
| 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 |
This file contains hidden or 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
| # |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| |