How to Check PowerShell Version

The $PSVersionTable automatic variable in PowerShell checks the PowerShell version and gets the PSVersion. $PSVersionTable is an automatic variable in PowerShell is a read-only hash …

Read more

PowerShell Approved Verbs

Approved Verbs in PowerShell follow a specific structure [Verb]-[Noun] to ensure consistency and clarity in PowerShell command syntax. In PowerShell approved verbs are a verb-noun …

Read more

PowerShell Multiline String

While doing string operations in PowerShell, often we have to print multiline strings for ease to read, read file content and convert multiline string to …

Read more

Get File Version in PowerShell

The command to get the file version in PowerShell is the Get-Command cmdlet. This command uses FileVersionInfo.FileVersion property to get the version of the file. …

Read more

PowerShell – Base64 Encoding

The `ToBase64String()` method of the class `[System.Convert]` is used to convert binary data into text-based data using Base64 encoding in PowerShell. Base64 encoding represents binary …

Read more

Get Current User name in PowerShell

To get current username in PowerShell, use whoami, GetCurrent() method of WindowsIdentity .Net class or Get-WMIObject cmdlet in PowerShell. In PowerShell, there are different ways …

Read more