From the course: Automating SQL Server with dbatools

Unlock this course with a free trial

Join today to access over 25,500 courses taught by industry experts.

Running your first command

Running your first command

- [User] One of my favorite things about PowerShell is that it likes to teach you as you go. We've already seen how it can help us find the commands we're going to need to use with GET command and Find-DBA command. Now we're going to learn all about the comment based help that's included with every command in the module. Get-Help is the second PowerShell level command that I believe everyone should have in their tool belt. This will show you all the details you need to know for the command you're looking to use. If we run Get-Help for Test-DbaDbCompression with no other parameters, we'll get a short synopsis, information on the syntax, and a longer description. Depending on the command, these descriptions can be quite detailed, explaining any calculations you use or knowledge and expertise that has gone into creating the command. A great parameter to use if you're on a Windows machine is ShowWindow. This will open up…

Contents