Set-DefaultBrowser powershell

function Set-DefaultBrowser { param($defaultBrowser) switch ($defaultBrowser) { ‘IE’ { Set-ItemProperty ‘HKCU:\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\ftp\UserChoice’ -name ProgId IE.FTP Set-ItemProperty ‘HKCU:\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\http\UserChoice’ -name ProgId IE.HTTP Set-ItemProperty ‘HKCU:\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\https\UserChoice’ -name ProgId IE.HTTPS } ‘FF’ { Set-ItemProperty ‘HKCU:\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\ftp\UserChoice’ -name ProgId FirefoxURL Set-ItemProperty ‘HKCU:\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\http\UserChoice’ -name […]

Round house and powershell

Using https://github.com/chucknorris/roundhouse for powershell to get automated database change management   Task UpgradeDatabase{ if (($environment -eq ‘integration’) -or ($environment -eq ‘uat’)) { # round house variables $rh = “C:\dev\Phoenix\trunk\Tools\RoundhousE\console\rh.exe” $connectionString = “Data Source=localhost;Database=XXX; User Id=XXXuser; […]