Skip to content

Active Directory Tools

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

PS

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

How to Format Output to a Table in PowerShell

by ADAdmin

In PowerShell, you can format the output as a table using the Format-Table cmdlet. This command allows you to display the output in a table …

Read more

How to Send Output to a File in PowerShell

by ADAdmin

PowerShell offers various methods to write output to a file. Method 1: Using the Out-File Cmdlet to send output a file This example saves the …

Read more

How to Echo Variable in PowerShell

by ADAdmin

In PowerShell, you can output the value of a variable using various methods. Method 1: Using the Variable Directly to Echo Variable Value This example …

Read more

How to Remove Environment Variable in PowerShell

by ADAdmin

PowerShell provides multiple ways to remove an environment variable. Method 1: Using the Remove-Item cmdlet with the Env: Drive This script removes an environment variable my_variable from …

Read more

How to Get Environment Variable in PowerShell

by ADAdmin

To get the environment variable in PowerShell, use the Get-ChildItem cmdlet or [Environment] class. Method 1: Use the Get-ChildItem cmdlet to Get the Environment Variable …

Read more

Older posts
Newer posts
← Previous Page1 … Page14 Page15 Page16 … Page21 Next →

Recent Posts

  • How to Install RSAT on Windows 11
  • 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

Footer Bar

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