Tag Archives: administration

Attaching All Databases with PowerShell–Refactoring out Write-Host

Someone posted a note to me on Twitter that noted that Write-Host is not recommended for your scripts. I checked the link to an MSDN blog on Write-Host Considered Harmful, and it made some sense. Basically it says that since … Continue reading

Posted in Blog | Tagged , , , , | Comments Off on Attaching All Databases with PowerShell–Refactoring out Write-Host

Attaching All Databases with PowerShell–Attaching Missing Databases

I wrote a PowerShell script recently to actually accomplish a task I that I needed. What’s more, this was the first time I thought that Powershell might prove more useful than other methods. This series looks at my script, and … Continue reading

Posted in Blog | Tagged , , , | Comments Off on Attaching All Databases with PowerShell–Attaching Missing Databases

Attaching All Databases with PowerShell–Checking All Databases

I wrote a PowerShell script recently to actually accomplish a task I that I needed. What’s more, this was the first time I thought that Powershell might prove more useful than other methods. This series looks at my script, and … Continue reading

Posted in Blog | Tagged , , , | Comments Off on Attaching All Databases with PowerShell–Checking All Databases

Attaching All Databases with PowerShell–Finding My MDF Files

I wrote a PowerShell script recently to actually accomplish a task I that I needed. What’s more, this was the first time I thought that Powershell might prove more useful than other methods. This series looks at my script, and … Continue reading

Posted in Blog | Tagged , , , | Comments Off on Attaching All Databases with PowerShell–Finding My MDF Files