Monthly Archives: November 2019

Get-Counter

The Get-Counter cmdlet returns in PowerShell v7 preview 6. Its only Get-Counter though the Import/Export-Counter cmdlets aren’t available. Get-Counter isn’t experimental feature so its available as soon as you install preview 6. PS> Get-Command Get-Counter -Syntax Get-Counter [[-Counter] <string[]>] [-SampleInterval … Continue reading

Posted in PowerShell 7 | Leave a comment

Clipboard cmdlets

The clipboard cmdlets return in PowerShell v7 preview 6 Get-Clipboard and Set-Clipboard are back and according to the release notes work cross platform. PS> Get-Command Get-Clipboard -Syntax Get-Clipboard [-Raw] [<CommonParameters>] PS> Get-Clipboard Clipboard test The Raw parameter makes Get-Clipboard ignore … Continue reading

Posted in PowerShell 7 | Leave a comment

Clear-RecycleBin

The Clear-RecycleBin cmdlet returns in PowerShell v7 preview 6 on Windows PS> Get-Command Clear-RecycleBin -Syntax                                                                                Clear-RecycleBin [[-DriveLetter] <string[]>] [-Force] [-WhatIf] [-Confirm] [<CommonParameters>] To use PS> Clear-RecycleBin Will ask for confirmation you want to perform the action PS> Clear-RecycleBin -Force or … Continue reading

Posted in PowerShell 7 | Leave a comment

Fibonacci series

Today’s date 23 November is 1123 id written as month then day. Those numbers are the start of the Fibonacci series. So as its Fibonacci day here’s a quick PowerShell function to create a Fibonacci series. function new-fibonacci {   param … Continue reading

Posted in Powershell | 1 Comment

PowerShell v7 preview 6

PowerShell v7 preview 6 has arrived – https://github.com/PowerShell/PowerShell/releases Its the last preview, as the Release candidate should appear next month, so this version is a good indication of what’ll be available in PowerShell v7. Test-Connection finally works properly and is … Continue reading

Posted in PowerShell 7 | Leave a comment

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

Searching Active Directory by email address

I was asked recently about searching Active Directory by email address and returning the first and last names of the users. First off I needed to populate the first and last name and email fields as they weren’t set in … Continue reading

Posted in PowerShell and Active Directory | Leave a comment