Skip to content

Active Directory Tools

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

ADAdmin

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

How to Change Created Date of File in PowerShell

by ADAdmin

You can change the created date of a file in PowerShell by updating the CreationTime property of the file object. The following method shows how …

Read more

How to Get Date and Time with UFormat in PowerShell

by ADAdmin

You can use the Get-Date cmdlet in PowerShell with -UFormat to get the date in a Unix date format. The -UFormat parameter is used to …

Read more

Remove Null Values From PowerShell Array

by ADAdmin

To remove null values from an array in PowerShell, you can use the Where-Object cmdlet with a condition to check null values and filter out. …

Read more

How to Remove Empty Rows From Array in PowerShell

by ADAdmin

To remove empty rows from an array in PowerShell, you can use the Where-Object cmdlet with a condition to check empty or whitespace-only strings and …

Read more

Older posts
Newer posts
← Previous Page1 … Page5 Page6 Page7 … 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