Skip to content

ShellGeek

  • Home
  • PowerShell
  • PowerShell Tips
  • About Us
  • Contact

PowerShell

PowerShell – Get AD Group Members and list of Users

by shelladmin

PowerShell Get-AdGroupMember is used to get members from the active directory. You can get ad group members by specifying the active directory group name. The …

Read more

Convert Timestamp to Date in PowerShell

by shelladmin

To convert timestamp to Date in PowerShell, use the .Net method FromFileTimeToUTC(). This method takes Int64 as the input parameter and returns the DateTime. Windows …

Read more

PowerShell Compare Files Modified Date and Creation Dates

by shelladmin

The file has attributes like CreationTime, LastWriteTime, Length, etc. In PowerShell to compare files by modified date or creation date, use the PowerShell operators lt …

Read more

PowerShell Compare Dates

by shelladmin

To Compare dates in PowerShell, use the PowerShell operator lt or gt. It compares the date that is less or greater than the other date …

Read more

PowerShell Get-Date Minus 1 Day

by shelladmin

In PowerShell to Get-Date minus 1 day date or get yesterday’s date, use the Get-Date cmdlet. The Get-Date has AddDays() function that takes -1 day …

Read more

PowerShell – How to add newline to string or variable?

by shelladmin

More often, we need to add new line between lines for string output to make output neat and easy to read. Using Windows PowerShell new …

Read more

How to Get Current Directory Full Path in PowerShell?

by shelladmin

The Get-Location cmdlet in PowerShell gets current directory full path similar to PowerShell pwd which prints the current directory. In this tutorial, we will discuss …

Read more

PowerShell- Get Specific lines of file

by shelladmin

Use the Get-Content cmdlet in PowerShell to read the file, and get the content of a text or CSV file. It has the First parameter …

Read more

PowerShell Get-ADUser Examples

by shelladmin

The PowerShell Get-ADUser cmdlet available in the ActiveDirectory module is more frequently used by Admin on their day-to-day task to get one or more active …

Read more

Find Get-AdUser Password Expiration Date

by shelladmin

The Get-ADUser cmdlet retrieves one or more active directory user information. It has msDS-UserPasswordExpiryTimeComputed attribute that contains the ad user password expiration date. Active Directory …

Read more

Older posts
Page1 Page2 … Page29 Next →

Recent Posts

  • PowerShell – Get AD Group Members and list of Users
  • Convert Timestamp to Date in PowerShell
  • PowerShell Compare Files Modified Date and Creation Dates

Footer

  • Home
  • About Us
  • Contact
  • Privacy Policy
  • Terms and Conditions
Copyright © 2023 ShellGeek All rights reserved