Scripting Blog [archived]

Formerly known as the "Hey, Scripting Guy!" blog

PowerTip: Converting a Here-String to an Array in One Line with PowerShell

Summary: Using the split method in a more powerful fashion to split an array based upon two line terminating types (image) Hey, Doctor Scripto. I was wondering if there was a more efficient way of converting a Here-String to an Array when there were multiple line termination options like Linefeed or Carriage Return and Linefeed? (...

PowerTip: Identify if SQL Servers are configured to best practices

Summary: Using the features of the SQLServer PowerShell module to run assessments of your servers (image) How can I easily check that my SQL Servers are all configured to meet best practices? (image) You can use SQL Server Assessments – the latest addition to the SQLServer PowerShell module. Just Run a best practices assessment...