Resolve-Path is a cmdlet I haven’t used much – if at all – so I thought I should have a look at it. At an arbitrary point in the file system: PS> Get-Location Path —- C:\Scripts\Modules\Coordinates .. Indicates the next level up PS> Get-ChildItem -Path .. Directory: C:\Scripts\Modules etc ..\.. indicates two levels […]
Archive for October, 2019
Ad hoc development
Posted by: richardsiddaway | October 31, 2019 Comments Off on Ad hoc development |I was having a discussion about how people can learn PowerShell at the recent UK PowerShell day and mentioned ad hoc development. Surprisingly, no-one really knew what I meant. Ad hoc development is a concept more than a development type. It was used extensively back in the days of PowerShell v1 and v2 but […]
Pipeline Chain operators
Posted by: richardsiddaway | October 30, 2019 Comments Off on Pipeline Chain operators |Another experimental feature from PowerShell v7 preview 5 brings pipeline chain operators to PowerShell. PS> Get-ExperimentalFeature -Name PSPipelineChainOperators | Format-List Name, Description Name : PSPipelineChainOperators Description : Allow use of && and || as operators between pipeline invocations The operators work as follows <command1> && <command2> means that command2 will fire if command1 completes […]
One of the experimental features new PowerShell v7 preview 5 is the Get-Error cmdlet. The features description states: Enable Get-Error cmdlet that displays detailed information about ErrorRecords included nested objects Enable the feature: PS> Enable-ExperimentalFeature -Name Microsoft.PowerShell.Utility.PSGetError WARNING: Enabling and disabling experimental features do not take effect until next start of PowerShell. It […]
If I’m interpreting the email updates coming from the PowerShell project the next code release of PowerShell v7 should see the following returning cmdlets: Get-Counter Update-List Clear-RecycleBin Out-Printer All but Update-List are Windows only as far as I can ell
Error view is another experimental feature introduced with PowerShell v7 preveiw 5. The experimental feature needs to be enabled and PowerShell restarted. PS> Enable-ExperimentalFeature -Name PSErrorView WARNING: Enabling and disabling experimental features do not take effect until next start of PowerShell. At the PowerShell prompt you’d normally see an error in this form PS> […]
In PowerShell v7 preview Test-Connection sees some improvements: PS> Test-Connection -TargetName 127.0.0.1 | Format-List Source : W510W10 Destination : 127.0.0.1 Replies : {System.Net.NetworkInformation.PingReply, System.Net.NetworkInformation.PingReply, System.Net.NetworkInformation.PingReply, System.Net.NetworkInformation.PingReply} The progress bar has been removed as has the unrequired text displayed with each ping. The replies are still wrapped up in a collection of objects each of […]
Null coalescing with Object properties
Posted by: richardsiddaway | October 28, 2019 Comments Off on Null coalescing with Object properties |The Null coalescing operators were introduced in PowerShell v7 preview 5. last time you saw how to use Null coalescing with variables. You can also use Null coalescing with Object properties. Let’s first create an object. PS> $prop = @{Nullprop = $null; NonNullProp = ‘something’} PS> $obj = New-Object -TypeName PSobject -Property $prop Yes, […]
Null coalescing operators
Posted by: richardsiddaway | October 25, 2019 Comments Off on Null coalescing operators |Powershell v7 preview 5 introduces a new experimental feature that supports Null coalescing operators and null coalescing assignment operstors. As its an experimental feature: PS> Get-ExperimentalFeature -Name PSCoalescingOperators | Format-List Name : PSCoalescingOperators Enabled : False Source : PSEngine Description : Support the null coalescing operator and null coalescing assignment operator in PowerShell language […]
PowerShell v7 preview 5 experimental features
Posted by: richardsiddaway | October 24, 2019 Comments Off on PowerShell v7 preview 5 experimental features |PowerShell v7 preview 5 has a number of new, and some modified experimental features. The full list of PowerShell v7 preview 5 experimental features is: PSCoalescingOperators – – Support the null coalescing operator and null coalescing assignment operator in PowerShell language PSCommandNotFoundSuggestion – – Recommend potential commands based on fuzzy search on a CommandNotFoundException PSErrorView […]
Categories
- .NET
- Active Directory
- Architecture
- Azure
- Bash
- BITS
- Books
- CDXML
- CIM
- Cloud
- COM
- Containers
- Deep Dive
- Desired State Configuration
- DevOps
- DHCP
- DNS
- DSC
- European Summit
- Events
- Exchange
- File System
- Firewall
- General
- General IT Matters
- Hyper-V
- IIS
- Infrastructure
- IT Community
- IT Security
- Learning PowerShell
- Linux
- Math
- Microsoft
- Modules
- Nano Server
- Networking
- Office 2010
- Office 2013
- Open Source
- Opinion
- Outlook
- Philosophy
- PowerShell
- PowerShell 7
- PowerShell and .NET
- PowerShell and Active Directory
- PowerShell and CIM
- PowerShell and Exchange 2007
- PowerShell and IIS
- PowerShell and SQL Server
- PowerShell and WMI
- PowerShell Basics
- PowerShell original
- PowerShell Summit
- PowerShell User Group
- PowerShell User Group 2
- PowerShell v2
- PowerShell V3
- PowerShell v4
- PowerShell v5
- PowerShell v6
- PowerShell.org
- PowerShellGet
- PowerShellV2
- PSAM
- Rant
- Registry
- Scripting
- Scripting Games
- Scripting Games 2104
- Security
- SQL Server
- Storage
- Strings
- Summit
- Technology
- Uncategorized
- Virtualization
- Windows 10
- Windows 2012 R2
- Windows 7
- Windows 8
- Windows 8 Server
- Windows 8.1
- Windows Server
- Windows server 1709
- Windows Server 2008
- Windows Server 2008 R2
- Windows Server 2012
- Windows Server 2012 R2
- Windows Server 2016
- Windows Server 2019
- WMFv5
- WPF
- WSUS