dbatools is a free PowerShell module with over 300 SQL Server administration, best practice and migration commands included.

Please note that documentation and command names may be out of date while we work furiously towards 1.0


Get-DbaOperatingSystem

Gets operating system information from the server and returns as an object.

Screenshots

dbatools-Get-DbaOperatingSystem

Examples

Returns information about the local computer’s operating system.

Get-DbaOperatingSystem

Returns information about the sql2016’s operating system.

Get-DbaOperatingSystem -ComputerName sql2016

Author

This command was created by Shawn Melton. You can find Shawn on Twitter and his blog.

Get-Help

From PowerShell, execute Get-Help Get-DbaOperatingSystem -Detailed for more information on this function.

Source Code

Want to see the source code? View Get-DbaOperatingSystem.ps1 on GitHub
 

Related commands