[Solved] AmbiguousParameterSet error

So you decided to use the ParameterSet statement in your script or cmdlet. But you get now the following error: CategoryInfo          : InvalidArgument: (:) [<CmdletName|ScriptName>], ParameterBindingException FullyQualifiedErrorId : AmbiguousParameterSet,<CmdletName|ScriptName> The reason You have this error in two situations: Your command-line doesn't use any of the parameters members of a parameter set. Your command-line uses simultaneously … Continue reading [Solved] AmbiguousParameterSet error

How to view/add an SPN with Powershell

No need to bother with the syntax of SetSPN anymore (despite it still works). There is now a native function built into the Get-Computer and Set-Computer cmdlets. View all SPN for a given computer Use the Get-ADComputer cmdlet and specify the ServicePrincipalNames parameter. It returns an array of values you can easily expand with the … Continue reading How to view/add an SPN with Powershell

Telnet is obsolete for testing ports

On recent versions of Windows, neither the telnet client nor the telnet service is installed by default, but they are still available as features. Years ago, they were used as a terminal service system to manage remote hosts. Currently, a lot of people are still using the telnet client to test if a TCP port … Continue reading Telnet is obsolete for testing ports

Fast event log search in PowerShell with the FilterHashtable parameter

In my last post, I showed you how to display and find specific events with the Get-WinEvent cmdlet. Whereas you can filter event messages easily with the Where-Object cmdlet, using the Data key from the FilterHashtable parameter is much faster. Contents of this article - Measuring the speed difference - Raw data structure of an … Continue reading Fast event log search in PowerShell with the FilterHashtable parameter