Skip to content

ShellGeek

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

shelladmin

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

Rename a computer in PowerShell

by shelladmin

Rename-Computer cmdlet in PowerShell renames the local computer or remote computer name. It has a New-Name parameter to specify a new name for the local …

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 User SID in Active Directory

by shelladmin

SID (Security IDentifier) is a unique id number assigned to each user on a windows computer, group, or computer on the domain-controlled network. The Get-LocalUser …

Read more

Older posts
Page1 Page2 … Page36 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