In this session we will look at some of the powerful scripting capabilities of Windows PowerShell. First, we will introduce some of the basics of Windows PowerShell. We will examine how the help system works and review the Windows PowerShell command structure. We will also discuss how to format output and some basic Windows PowerShell commands. Next, we will explore variable declaration and scripting constructs in Windows PowerShell to perform basic programmatic functions, like loops and branching. Then we will look at advanced scripting techniques involving functions, filters, script blocks, and error handling. We will also look briefly at how to use Windows PowerShell with WMI to gain access to a wide variety of system objects and settings. Finally, we will look at how to use the .NET Framework to build a simple form using Windows PowerShell.
- Scripting and advanced scripting
- Using Windows PowerShell with Windows Management Instrumentation (WMI)
- Using Windows PowerShell with .NET Framework and COM objects
- Converting Microsoft Visual Basic to Windows PowerShell Scripts