PowerShell – Telegram
PowerShell
822 subscribers
214 photos
4 videos
1 file
802 links
Task automation and configuration management framework #PowerShell
Download Telegram
📌 Sanitize GUID's in documentation with PowerShell.

PS C:\> "0e53b2e7-cd7a-4f0f-a7f2-2f71353d7682" -replace "\w","0"
00000000-0000-0000-0000-000000000000
Example of usage 'FlagsAttribute' in Enum

PS C:\> [Flags()]
>> enum AccessFlags
>> {
>> None = 0
>> Execute = 1
>> Write = 2
>> Read = 4
>> FullAccess = 7
>> }
PS C:\>
PS C:\> [AccessFlags]$access = 'none'
PS C:\> $access = 'Read'
PS C:\> $access
Read
PS C:\> $access = 'Write'
PS C:\> $access
Write
PS C:\> $access = 'Read,Write,Execute'
PS C:\> $access
FullAccess

https://stackoverflow.com/questions/8447/what-does-the-flags-enum-attribute-mean-in-c
📚 pwshop: A PowerShell 101 Workshop

A self paced workshop to teach you the fundamentals of PowerShell and leave you ready to use those fundamentals in the prompt.

https://leanpub.com/c/pwshop
#free
Do we expect this?

#TIL
PowerShell 7.2-preview.1 is out!

Engine Updates and Fixes:
- Change the default fallback encoding for GetEncoding in Start-Trannoscript to be UTF8 without a BOM

General Cmdlet Updates and Fixes
- Update pwsh -? output to match docs
- Fix NullReferenceException in Test-Json
- Make Dispose in TrannoscriptionOption idempotent
- Add additional Microsoft PowerShell modules to the tracked modules list
- Relax further SSL verification checks for WSMan on non-Windows hosts with verification available
- Add the OutputTypeAttribute to Get-ExperimentalFeature
- Fix blocking wait when starting file associated with a Windows application
-Emit warning if ConvertTo-Json exceeds -Depth value

Code Cleanup

https://github.com/PowerShell/PowerShell/releases/tag/v7.2.0-preview.1