$PSScriptRoot in PowerShell – Get full path of executing script
$PSScriptRoot automatic variable in PowerShell Contains the full path to the script that uses the $PSScriptRoot variable in the script or command. $PSScriptRoot is one …
$PSScriptRoot automatic variable in PowerShell Contains the full path to the script that uses the $PSScriptRoot variable in the script or command. $PSScriptRoot is one …
When we download the PowerShell script from the internet and try to run it on the local system using PowerShell, it throws an exception as …
In one of my recent tasks, I had to deal with files and folder-based operations on a local system. File or folder-based operation is a …
In this article, I will explain how to get printer IP address and other printer properties like Portname, model, driver name, and printer status in …
Using the PowerShell `Get-PrinterProperty` cmdlet, it gets one or more printer properties for a specified printer. Here is the PowerShell command to get printer properties. …
PowerShell Get-ADGroupMember gets an active directory group members, members can be users, groups, or computers. To get ad group members displayname, we need to use …
The Get-ChildItem in the PowerShell cmdlet get items and child items in one or more specified location specified by the Path parameter. To get count …
What is an environment variable in Windows? How to print environment variables in PowerShell? Environment variables store information about the operating system environment information and …
More often system administrator has to get mapped network drives to get information about available network drives or remove mapped network drives if not required. …
In this quick article, I will explain how to count lines in a file and get a number of lines and words in the file …