Skip to content

Active Directory Tools

  • Home
  • PowerShell Tutorials
  • Active Directory
  • CMD
  • About Us
  • Contact

ADAdmin

How to Check If Registry Key Exists in PowerShell

by ADAdmin

The Test-Path cmdlet in PowerShell is used to check if the registry key exists at the specified path. The following method can be used to …

Read more

How to Create Registry Key in PowerShell

by ADAdmin

PowerShell provides a built-in cmdlet New-Item to create a registry key and a New-ItemProperty cmdlet to add a registry key value. The following methods can …

Read more

How to Rename File with Date in PowerShell

by ADAdmin

PowerShell built-in cmdlet Rename-Item in combination with the Get-Date cmdlet to rename a file with a date. The following methods can be utilized rename a …

Read more

How to Rename Files in PowerShell Using Rename-Item

by ADAdmin

PowerShell has a built-in cmdlet Rename-Item that allows you to rename files, directories, or other items in a file system or registry. You can use …

Read more

How to Remove Duplicates from Array in PowerShell

by ADAdmin

PowerShell offers various methods to remove duplicates from an array. Method 1: Use the Select-Object -Unique to remove duplicate items from an array This example …

Read more

How to Get Length of an Array in PowerShell

by ADAdmin

To get the length of an array in PowerShell, you can use the Length property or its Count alias. It returns the number of items …

Read more

How to Count Lines in the File in PowerShell

by ADAdmin

To count the total number of lines in a file, you can use the Get-Content cmdlet along with the Measure-Object cmdlet. Method 1: Count lines …

Read more

How to Count Files in Folder in PowerShell

by ADAdmin

To count files in a folder using PowerShell, you can use the Get-ChildItem cmdlet along with the Measure-Object cmdlet. Method 1: Count files in a …

Read more

How to Extract Text From String in PowerShell

by ADAdmin

PowerShell offers various methods to extract text from a string. Method 1: Extract text from a string using the Substring() method This example will extract …

Read more

How to Adjust the Width with Format-Table in PowerShell

by ADAdmin

In PowerShell, you can adjust and control the width when using the Format-Table cmdlet in several ways. Method 1: Format-Table Column Width Using the AutoSize …

Read more

Older posts
Newer posts
← Previous Page1 … Page16 Page17 Page18 … Page24 Next →

Recent Posts

  • PowerShell Array of Arrays: A Complete Guide
  • How to List Installed Modules in PowerShell
  • How to Use the Find-Script Cmdlet in PowerShell
  • How to Use the Find-Command Cmdlet in Powershell
  • How to Install and Update PowerShellGet Module

Footer Bar

  • PS
  • Windows Commands
  • Privacy Policy
  • Terms of Condition
Copyright © 2025 ActiveDirectoryTools All rights reserved