Skip to content

Active Directory Tools

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

PS

How to Escape Backslash in PowerShell

by ADAdmin

The backslash ( ‘\’) is an escape character in PowerShell. There are several ways to escape backslashes in PowerShell. Method 1: Use single quotes to …

Read more

How to Extract Substring Before Specific Character in PowerShell

by ADAdmin

In PowerShell, you can extract the substring before a specific character using the SubString() method or the -split operator. The following methods show how you …

Read more

Check If String Exists in List of Strings in PowerShell

by ADAdmin

To check if a string exists in the list of strings in PowerShell, you can use the -in operator or the Contains() method or -contains …

Read more

Find If Element in Array Using PowerShell

by ADAdmin

You can find the input value or element in an array in PowerShell by using the Contains() method or -contains operator. The following methods show …

Read more

How to Check If a String is Empty or Null in PowerShell

by ADAdmin

In PowerShell, you can use the [string]::IsNullOrEmpty() method or the [string]::IsNullOrWhiteSpace() method to check if a string is empty or null. The following methods show …

Read more

How to Get Date TimeZone in PowerShell

by ADAdmin

In PowerShell, you can get the current date and time using the Get-Date cmdlet and the timezone information using [System.TimeZoneInfo] class. The following method shows …

Read more

How to Compare File Dates in PowerShell

by ADAdmin

To compare file dates in PowerShell, you can use the Get-Item or Get-ChildItem cmdlets to retrieve file information and compare their LastWriteTime property, which indicates …

Read more

How to Convert Date to Epoch in PowerShell

by ADAdmin

To convert a date to epoch time in PowerShell, you can use the Get-Date cmdlet to get the date and time and subtract it from …

Read more

How to Subtract Dates in PowerShell

by ADAdmin

To subtract dates in PowerShell, you can subtract one datetime object from another, it returns a TimeSpan object, which represents the difference between the two …

Read more

How to Change the Last Modified Date of File in PowerShell

by ADAdmin

You can change the last modified date of a file in PowerShell by updating the LastWriteTime property of the file object. The following method shows …

Read more

Older posts
Newer posts
← Previous Page1 Page2 Page3 Page4 … Page21 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