Category Archives: PowerShell v6

Get-DnsServerResourceRecord

You saw how to discover the zones on a DNS server in the first post in this series. Now its time to discover the records in a zone. For that you need Get-DnsServerResourceRecord. The syntax is: Get-DnsServerResourceRecord [-ZoneName] <string> [[-Name] … Continue reading

Posted in DNS, PowerShell v6 | Leave a comment

DNS zones

I’m working through the commonly used DNS server cmdlets to determine if everything works in PowerShell core. First up is the cmdlet to get the DNS zones on your DNS server. PS>  Get-DnsServerZone | Format-List -Property ZoneName, ZoneType,  IsAutoCreated, IsDsIntegrated, … Continue reading

Posted in DNS, PowerShell v6 | Leave a comment

PowerShell v6.2.3

PowerShell v6.2.3 is available from https://github.com/PowerShell/PowerShell/releases It fixes a debugging performance issue and updates the .NET SDK and runtime framework version. Similar fixes are available in v6.1.6 released at the same time

Posted in PowerShell v6 | Leave a comment

Get-AdUser in PowerShell Core

There has been a problem with Get-ADUser in PowerShell core such that Get-ADUser -Identity Richard -Properties * Throws an error. The problem is in .NET Core and affects a small number of properties including ProtectedFromAccidentalDeletion The underlying .NET Core issue … Continue reading

Posted in PowerShell 7, PowerShell and Active Directory, PowerShell v6 | Leave a comment

Experimental features

PowerShell core has recently. v6.2, had the concept of experimental features added.  An experimental feature is new or changed functionality that may be a breaking change or about which the PowerShell team want feedback before finalising the code. My PowerShell … Continue reading

Posted in PowerShell 7, PowerShell v6 | Leave a comment

Out-GridView is back

Out-GridView is finally back in PowerShell core – https://devblogs.microsoft.com/powershell/out-gridview-returns/. The project is hosted on github – https://github.com/powershell/GraphicalTools Install the module from the gallery – PS> Install-Module -Name Microsoft.PowerShell.GraphicalTools Currently, Out-GridView is the only command in the module though adding Show-Command … Continue reading

Posted in PowerShell 7, PowerShell v6 | 1 Comment

PowerShell v6.2.2

PowerShell v6.2.2 has just been released. One breaking change – the Enter-PSHostProcess is disabled when system is in lock down mode. The jumplist is now created in STA to avoid potential CLR crash Other changes are around the build process. … Continue reading

Posted in PowerShell v6 | Leave a comment

Load format file in a module

Staying with the test-connection function I thought I’d show how to turn the function and format file into a module. This includes how to load the format file in a module. Create a folder TestConnection Copy the format file and … Continue reading

Posted in PowerShell 7, PowerShell v6 | Leave a comment

Test-Connection formatting

Last time I showed how to write a function that replaces the current PowerShell 6/7 Test-Connection. This time I’ll show you how to do the Test-Connection formatting. Using just the function you get something like this: PS>  test-connection -computername 127.0.0.1 … Continue reading

Posted in PowerShell 7, PowerShell v6 | Leave a comment

PowerShell 6/7 Test-Connection

The PowerShell 6/7 Test-Connection implementation as of PowerShell v6.2.1 and PowerShell v7.0 preview 1 is in my opinion a horrible example of how not to create output. the cmdlet shows  each ping and then wraps all of the results in … Continue reading

Posted in PowerShell 7, PowerShell v6 | 3 Comments