PowerShell SnippetRace 35-2020

Windows store, Conference book #3, Script logging, Type Acceleratores

Events

PowerShell Einsteigerworkshop 22. Oct. 2020 ONLINE

Snippets

PowerShell Preview available in the Windows Store

A milestone happened recently! You can install Powershell-Preview from the Windows Store!. Search for Powershell-Preview (dont use „Powershell“ only, as you might oversee the preview) and install. The app gets installed in

(Get-AppxPackage -Name '*power*').InstallLocation

To integrate it in your Windows Terminal profile create a new profile (dont forget to create a new guid if you copy an existing one) and start

"C:///Program Files///WindowsApps///Microsoft.PowerShellPreview_7.1.6.0_x64__8wekyb3d8bbwe///pwsh".

PowerShell Conference Book #3 available

Get it, read it and learn from it. Agenda below.

  •  Foreword
    • Contributors
    • How to Use This Book
    • Acknowledgements
    • Disclaimer
  • I Systems Management
    • 1. Contain Yourself – Long-Running PowerShell Scripts in Containers
    • 2. VMware PowerCLI and the Art of the API
    • 3. Build, Test, Deploy – Software Distribution Using Intune
  • II Tips & Tricks
    • 4. Save Your Standards from Becoming Rarely Used Checklists; Codify Them
    • 5. Spice Up Your Console Output or Prompt with ANSI
    • 6. Writing Your First Visual Studio Code Extension
    • 7. How to Add Voice to Your PowerShell Code or Scripts
  • III DevOps
    • 8. Git for Admins That Don’t Get Git
    • 9. Learning new things with PowerShell
    • 10. Testing SQL Code with Pester
    • 11. Testing Infrastructure as Code with Terraform and Pester
    • 12. Automate Azure Sentinel Deployment
    • 13. AWS Lambda
  • IV PowerShell Language Features
    • 14. Exploring Experimental Features in PowerShell 7
    • 15. Regale a Radical Reading of a Reflection in Remoting
  • Afterword

Link

Deep Script block logging in the EventLog

Wolfgang Sommergut explaines scriptblock logging in this blog-post. Read it and learn how you can log PS-events, to detect suspisious activities. Link

PowerShell type Accelerators

PowerShell code often includes [ThisKindOfEntry]. Learn about type accelerators, which are available and how to use them. Link