🎬 What's the right Write cmdlet to use to write to the right output
https://www.youtube.com/watch?v=08U80wlmKNA
https://www.youtube.com/watch?v=08U80wlmKNA
YouTube
What's the right PowerShell Write cmdlet to use to write to the right output (Steven Judd)
Have you ever wondered if you're writing data in your noscripts the correct way? For example, when should you use Write-Host vs Write-Output? How do you write to the console and the logs at the same time?
Join Steven Judd for a walk through on the various…
Join Steven Judd for a walk through on the various…
❗v7.2.0-preview.8 Release of PowerShell
Engine Updates and Fixes
- Add a Windows mode to $PSNativeCommandArgumentPassing that allows some commands to use legacy argument passing
- Use nameof to get parameter names when creating ArgumentNullException
- Test if a command is 'Out-Default' more thoroughly for transcribing scenarios
- Add Microsoft.PowerShell.Crescendo to telemetry allow list
General Cmdlet Updates and Fixes
- Use $PSStyle.Formatting.FormatAccent for Format-List and $PSStyle.Formatting.TableHeader for Format-Table output
- Highlight using error color the exception Message and underline in PositionMessage for Get-Error
- Implement a completion for View parameter of format cmdlets
- Add support to colorize FileInfo file names
- Don't serialize to JSON ETS properties for DateTime and string types
- Fix HyperVSocketEndPoint.ServiceId setter
- Add DetailedView to $ErrorView
Engine Updates and Fixes
- Add a Windows mode to $PSNativeCommandArgumentPassing that allows some commands to use legacy argument passing
- Use nameof to get parameter names when creating ArgumentNullException
- Test if a command is 'Out-Default' more thoroughly for transcribing scenarios
- Add Microsoft.PowerShell.Crescendo to telemetry allow list
General Cmdlet Updates and Fixes
- Use $PSStyle.Formatting.FormatAccent for Format-List and $PSStyle.Formatting.TableHeader for Format-Table output
- Highlight using error color the exception Message and underline in PositionMessage for Get-Error
- Implement a completion for View parameter of format cmdlets
- Add support to colorize FileInfo file names
- Don't serialize to JSON ETS properties for DateTime and string types
- Fix HyperVSocketEndPoint.ServiceId setter
- Add DetailedView to $ErrorView
A new PowerShell book is now available for purchase.
All code examples and noscripts in the book are available on the GitHub repo for the book.
All code examples and noscripts in the book are available on the GitHub repo for the book.
👍1
📘 New PowerShell Docs content
- about_Functions_Argument_Completion
Argument completion is a feature of PowerShell that provide hints, enables discovery, and speeds up input entry of argument values.
- about_Tab_Expansion
PowerShell provides completions on input to provide hints, enable discovery, and speed up input entry. Command names, parameter names, argument values and file paths can all be completed by pressing the Tab key.
- about_Functions_Argument_Completion
Argument completion is a feature of PowerShell that provide hints, enables discovery, and speeds up input entry of argument values.
- about_Tab_Expansion
PowerShell provides completions on input to provide hints, enable discovery, and speed up input entry. Command names, parameter names, argument values and file paths can all be completed by pressing the Tab key.
Docs
About functions argument completion - PowerShell
Explains the various argument completion options available for function parameters.
📦 Posh-SSH 3.0 is out.
- Windows PowerShell 5.1 and PowerShell 7.x Only supported.
- Cross platform support (Linux, Windows and MacOS).
- Updated SSH.NET library fixing multiple issued with OpenSSH and Cisco version strings.
- Support for more key formats. (OpenSSH ECDSA still not supported in the OpenSSH format)
- Support for password: and PASSCODE: prompts.
- Windows PowerShell 5.1 and PowerShell 7.x Only supported.
- Cross platform support (Linux, Windows and MacOS).
- Updated SSH.NET library fixing multiple issued with OpenSSH and Cisco version strings.
- Support for more key formats. (OpenSSH ECDSA still not supported in the OpenSSH format)
- Support for password: and PASSCODE: prompts.
This media is not supported in your browser
VIEW IN TELEGRAM
📦Customize Windows11
❗️v7.1.5 Release of PowerShell
Telemetry Changes:
- Configure ApplicationInsights to not send cloud role name.
Engine Updates and Fixes:
- Handle error from unauthorized access when removing AppLocker test files.
- Test more thoroughly whether a command is Out-Default for trannoscription scenarios.
- Handle error when the telemetry mutex cannot be created.
- Disallow Add-Type in NoLanguage mode on a locked down machine.
Telemetry Changes:
- Configure ApplicationInsights to not send cloud role name.
Engine Updates and Fixes:
- Handle error from unauthorized access when removing AppLocker test files.
- Test more thoroughly whether a command is Out-Default for trannoscription scenarios.
- Handle error when the telemetry mutex cannot be created.
- Disallow Add-Type in NoLanguage mode on a locked down machine.
❗ Microsoft asks admins to patch PowerShell to fix vulnerabilities
CVE-2021-41355
An Information Disclosure vulnerability exists in .NET where System.DirectoryServices.Protocols.LdapConnection may send credentials in plain text on non-Windows Operating systems.
CVE-2020-0951
A security feature bypass vulnerability exists in Windows Defender Application Control (WDAC) which could allow an attacker to bypass WDAC enforcement.
CVE-2021-41355
An Information Disclosure vulnerability exists in .NET where System.DirectoryServices.Protocols.LdapConnection may send credentials in plain text on non-Windows Operating systems.
CVE-2020-0951
A security feature bypass vulnerability exists in Windows Defender Application Control (WDAC) which could allow an attacker to bypass WDAC enforcement.
What is the output of the code above?
Anonymous Quiz
5%
Let's 1get it started
9%
Let's get it started
42%
Let's it started
45%
Let's 1:get it started
📘New MicrosoftLearn module - Just Enough Administration in Windows Server
- Introduction
- Explain the concept of Just Enough Administration (JEA)
- Define role capabilities for a JEA endpoint
- Create a session configuration file to register a JEA endpoint
- Describe how JEA endpoints work to limit access to a PowerShell session
- Create and connect to a JEA endpoint
- Demonstration: Connect to a JEA endpoint
- Knowledge check
https://docs.microsoft.com/en-us/learn/modules/just-enough-administration-windows-server/
- Introduction
- Explain the concept of Just Enough Administration (JEA)
- Define role capabilities for a JEA endpoint
- Create a session configuration file to register a JEA endpoint
- Describe how JEA endpoints work to limit access to a PowerShell session
- Create and connect to a JEA endpoint
- Demonstration: Connect to a JEA endpoint
- Knowledge check
https://docs.microsoft.com/en-us/learn/modules/just-enough-administration-windows-server/
Docs
Just Enough Administration in Windows Server - Learn
Streamline the administration of your Windows Server environments with Just Enough Administration (JEA). Limit privileged operations to a set of specified PowerShell cmdlets, parameters and variables, and limit which users can connect to JEA endpoints. Constrain…
What is the output of the code above?
Anonymous Quiz
55%
Let's 1:move on
17%
Let's :move on
12%
Let's on
16%
Let's move on
What is the output of the code above?
Anonymous Quiz
20%
`$LetterA contains Apple.
8%
Apple contains Apple.
7%
Apple contains $LetterA.
65%
$LetterA contains Apple.
❗The first preview of version 3.0.0 of the PowerShell extension (VSCode)
This preview release includes a complete overhaul of the core PowerShell engine of PowerShell Editor Services. This represents over a year's work, tracked in PSES #1295 and implemented in PSES #1459, and is our answer to many, many issues opened by users over the last few years. We're hoping you'll see a marked improvement in the reliability, performance and footprint of the extension as a result.
https://github.com/PowerShell/vscode-powershell/releases
This preview release includes a complete overhaul of the core PowerShell engine of PowerShell Editor Services. This represents over a year's work, tracked in PSES #1295 and implemented in PSES #1459, and is our answer to many, many issues opened by users over the last few years. We're hoping you'll see a marked improvement in the reliability, performance and footprint of the extension as a result.
https://github.com/PowerShell/vscode-powershell/releases
GitHub
Revamp pipeline thread handling · Issue #1295 · PowerShell/PowerShellEditorServices
A lot of the problems we face is based around handling of the pipeline thread. In order to invoke something on it, we need to interact with the PowerShell class, making us invoke at least a small b...