PowerShell
827 subscribers
214 photos
4 videos
1 file
802 links
Task automation and configuration management framework #PowerShell
Download Telegram
πŸ“¦ PSProfiler

A great tool that will measure the execution time of each line of your script.

This measures the script block and returns the times executed for each line in the script block.

https://www.powershellgallery.com/packages/PSProfiler

#module
πŸ“˜ Don Jones' PowerShell 4N00bs [Free]

#ebook
πŸ“¦ New version of NetworkingDsc resource

The PowerShell PSDSC module Networking v8.0.0 was just released with fixes to NetBios multi-adapter support and move to use shared

https://www.powershellgallery.com/packages/NetworkingDsc/8.0.0

#DSC
So $true

#fun
β›³ Code Golf now supports PowerShell

Code Golf is a game designed to let you show off your code-fu by solving problems in the least number of characters.

https://code.golf/

#game
πŸ“Œ Parse Email Address

[System.Net.Mail.MailAddress]"Bill.Gates@microsoft.com"

#oneline
πŸ“Œ4 ways to send PowerShell output to null

1..1000 | Out-Null
[Void]$(1..1000)
$(1..1000) > $null
$null = $(1..1000)

#oneline
πŸ“˜ A Blogger's Guide to Getting Started with PowerShell 7 [free]

#ebook
πŸ“Œ Ways to validate IP Address

[IPAddress]'192.168.0.1'
[byte[]] '192.255.0.0'.split('.')
[regex] #nobody likes regex

But wait! Below are also valid!

[IPAddress]'222222'
[IPAddress]'10.1'

#oneline
❓ Classes

A class in .NET might be considered to be the recipe used to create a type. A type is a representation of something, anything.

Classes are created using the Class keyword.
An instance of the Car class can be created using ::new().

class Car { }
$car = [Car]::new()

What type results when you create classes like above?

#quiz
🎁 Grab the latest PowerShell 7.1 Preview 4 release!

- Breaking Changes
- Engine Updates and Fixes
- General Cmdlet Updates and Fixes

Check full list of changes on GitHub