Skip to content

Instantly share code, notes, and snippets.

View SirkleZero's full-sized avatar

Joshua Gall SirkleZero

View GitHub Profile
@SirkleZero
SirkleZero / killscc.ps1
Created May 26, 2012 06:45 — forked from stephengodbold/killscc.ps1
Removes source control bindings, and optionally backs up the original files
param (
[ValidateScript({$_ | Test-Path -PathType Container})]
[Parameter(Mandatory=$true)]
[string] $folder,
[switch] $backup
)
function killReadOnlyFlag(){
get-childitem "$folder" -recurse | % {
# Test for ReadOnly flag and remove if present