PowerShell – Telegram
PowerShell
822 subscribers
214 photos
4 videos
1 file
802 links
Task automation and configuration management framework #PowerShell
Download Telegram
📘 PowerShell 7 for IT Professionals

Take advantage of everything Microsoft’s new PowerShell 7 has to offer.

#ebook
PowerShell 7.2 Preview 2 release.

Experimental Features:
- PSAnsiRendering: Enable ANSI formatting via $PSStyle and support suppressing ANSI output

Now we can have text contains ANSI escape codes which control text decorations like color, bold, italics, etc…

See other updates and improvements in Github repo below.

https://devblogs.microsoft.com/powershell/powershell-7-2-preview-2-release/
📘 Hosting and Protecting Your Own NuGet Feed with ProGet

Why might you want to do this? Remember when PowerShell Gallery went down for a while in October? That’s a pretty good reason. Another reason might be if you like or need the use of the PowerShellGet cmdlets when interacting with the PowerShell Gallery, but do not want to store your code publicly.

https://adamcook.io/p/hosting-and-protecting-your-own-nuget-feed-with-proget/
Sometimes it is just not obvious...
The default midpoint rounding method used in PowerShell is called "Rounding to Even", or "Banker's Rounding". Numbers will be rounded to the nearest even integer when rounding from a midpoint (###.5) value.

This behavior stems from the underlying library method [math]::Round() which is documented in more detail here
Still may be not obvious....
Episode 028 - PowerShell Summit, Errors, and Much More!
The PowerShell News Podcast Episode 028

In this episode, we discuss the upcoming PowerShell Summit, errors in PowerShell when using Notepad.exe, POSE Powershell web server, and much more.
🤡Next level error handling...
🔊 098: Infrastructure Development with Brandon Olin

In this episode, we talk about:
...
- What readers can expect to learn from Building PowerShell Modules
- The build process for a PowerShell Module
- What PowerShell testing looks like with Pester and other frameworks
- Transitioning to PowerShell Core for beginners and experienced noscripters
- Updates on PowerShell DSC and how Brandon uses it
...
and some other topics...

https://cloudskills.simplecast.com/episodes/098-08alAf9V

#podcast
This media is not supported in your browser
VIEW IN TELEGRAM
New VMware PowerCLI Home Page

1.   PowerCLI Home Page
2.   Re-organization of cmdlets
3.   Global Search Bar
4.   Data Structure
5.   Categories
6.   CMDLET Reference Page

More details:
https://blogs.vmware.com/PowerCLI/2021/01/introducing-the-new-powercli-home-page.html
📌 Copy request from Chrome network tools as PowerShell

It will produce nice output:

Invoke-WebRequest -Uri "https://www.microsoft.com/" -Headers @{
"method"="GET"
 "authority"="www.microsoft.com"
 "scheme"="https"
 ...
}
PowerShell v7.1.1 now released.

General Cmdlet Updates and Fixes
- Avoid an exception if file system does not support reparse points
- Make AppLocker Enforce mode take precedence over UMCI Audit mode

Code Cleanup
- Fix syntax error in Windows packaging noscript

Build and Packaging Improvements
📌 Index accessors in PowerShell support multi-key access (read-only):

PS > @(1..5)[2,1]
3
2

Same with dictionaries:

PS> @{ A=1; B = 2; C = 3 }[-split 'A C']
1
3
💡 A Powershell Template For Creating The Perfect Function

Powershell Template
Comment Based Help
CmdletBinding and the Param Block
       SupportsShouldProcess
Create Powershell Function Parameters
       How To Use Alias
       How To Use ValidateSet and ValidateRange
       How To Use ValidateScript
       How To Use ParameterSetName
Begin, Process And End Blocks
       Begin and End Blocks
       Process Block

https://thesysadminchannel.com/powershell-template/
Windows Terminal Preview 1.6 Release

- IN PREVIEW TODAY: Terminal now has an optional graphical settings editor! Until it's ready for prime time, it's hidden behind a NON-DEFAULT key binding.
- Terminal now supports "Startup Actions"
- Terminal 1.6 has gained experimental support for HLSL pixel shaders
- We've gained support for application progress reports on OSC 9;4
- Terminal has gained two new visual bell features
- The italic graphic rendition (SGR 3) is now supported
- Terminal has learned a new cursor style: double underscore
- Tabs can now be moved left/right with the keyboard with action binding moveTab

https://devblogs.microsoft.com/commandline/windows-terminal-preview-1-6-release/?WT.mc_id=WDIT-MVP-5002293
💡Reddit: I finished a noscript for work but I'm not comfortable showing it to others, what can I do to make it look professional?
🎁 The Ultimate Guide to Terminal User Interfaces in PowerShell

Why not...

https://blog.ironmansoftware.com/tui-powershell/