From the course: PowerShell: Functions for Advanced Automation

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Use .NET in Windows PowerShell

Use .NET in Windows PowerShell

From the course: PowerShell: Functions for Advanced Automation

Start my 1-month free trial

Use .NET in Windows PowerShell

- [Instructor] There are .NET classes for every application built using .NET including Windows and it's subsystems. It can sometimes be difficult however to figure out which class to access and what you can do with it. If you have a pretty good idea what the name of the class is you can go to Microsoft's .NET API browser and search it here, but if you don't know how it was named within this .NET framework you might do a web search instead. The most successful web searches usually start out by entering .NET class followed by what you're looking for. For example, let's say I want to play the system sounds that are configured in Windows settings. I don't want to build an entire player function. I don't even want to go find the wave files. I just want to access the system sounds already configured in Windows and play them as part of my script. To find the class that holds the system sound objects I would go ahead and search .NET class system sound. And I can see from these results that…

Contents