List of Listings

 

Chapter 10. Building a basic function and script module

Listing 10.1. Basic functional code

Listing 10.2. Adding output

Listing 10.3. Our solution

Chapter 11. Going advanced with your function

Listing 11.1. Original Get-MachineInfo function

Listing 11.2. Modified Get-MachineInfo

Listing 11.3. Set-TMServiceLogon

Listing 11.4. Modified Set-TMServiceLogon

Chapter 12. Objects: the best kind of output

Listing 12.1. Get-MachineInfo

Listing 12.2. Add-ADComputerWindowsBuild function

Listing 12.3. Set-TMServiceLogonsplatting

Listing 12.4. Our version of Set-TMServiceLogon

Chapter 13. Using all the pipelines

Listing 13.1. Adding output

Listing 13.2. Using an information variable

Listing 13.3. Revised function

Listing 13.4. Proof of concept

Listing 13.5. Set-TMServiceLogon

Listing 13.6. Our solution

Chapter 14. Simple help: making a comment

Listing 14.1. Comment-based help

Listing 14.2. Set-TMServiceLogon functionSet-TMServiceLogon

Listing 14.3. Our solution

Chapter 15. Dealing with errors

Listing 15.1. Set TMServiceLogon

Listing 15.2. Our solution

Chapter 16. Filling out a manifest

Listing 16.1. MyTools.psm1 script module

Chapter 17. Changing your brain when it comes to scripting

Listing 17.1. Typical PowerShell

Listing 17.2. Get-FolderSize