Skip to content

Instantly share code, notes, and snippets.

@colinbowern
Created July 5, 2013 22:40
Show Gist options
  • Save colinbowern/5937673 to your computer and use it in GitHub Desktop.
Save colinbowern/5937673 to your computer and use it in GitHub Desktop.
Importing SQL PowerShell changes the current folder, make sure it doesn't by wrapping it with these two commands.
$CurrentFolder = $(Get-Location).Path
Import-Module SQLPS -DisableNameChecking
Set-Location $CurrentFolder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment