Recent Posts

Using RoboCopy with PowerShell – Parameterized

 jamilpremji  April 15, 2024  0 Comments on Using RoboCopy with PowerShell – Parameterized

The code sets the source path, destination path, and log file path using variables. It creates an array variable ($robocopyParams)…

Creating a Scheduled Task Using PowerShell to Run A Script Every Hour”

 jamilpremji  April 8, 2024  0 Comments on Creating a Scheduled Task Using PowerShell to Run A Script Every Hour”

To create a scheduled task that runs a specific batch file every 1 hour using PowerShell, you can use the…

How Do I Use Variables in PowerShell

 jamilpremji  April 1, 2024  0 Comments on How Do I Use Variables in PowerShell

In PowerShell, a variable is a container that stores a value or reference to an object. You can use variables…

Query Active Directory Computers

 jamilpremji  March 25, 2024  0 Comments on Query Active Directory Computers

To query all Active Directory (AD) computers in a specific organizational unit (OU) using PowerShell, you can use the Get-ADComputer…

Searching an Event Log Using PowerShell

 jamilpremji  March 18, 2024  0 Comments on Searching an Event Log Using PowerShell

Suppose you want to search your event logs for the last time someone logged onto a server. PowerShell makes it…

Invoke-Command for Remotely Accessing Servers

 jamilpremji  March 11, 2024  0 Comments on Invoke-Command for Remotely Accessing Servers

Invoke-Command is a PowerShell cmdlet that allows you to run commands or scripts on remote computers or servers. It can…

ConvertFrom-Json

 jamilpremji  March 8, 2024  0 Comments on ConvertFrom-Json

The ConvertFrom-Json cmdlet in PowerShell is used to convert a string in JavaScript Object Notation (JSON) format into an object…

Checking Network Adapter Configurations

 jamilpremji  March 4, 2024  0 Comments on Checking Network Adapter Configurations

To get all network adapters and their DNS information using PowerShell, you can use the Get-NetAdapter cmdlet from the NetAdapter…

Get Local Administrators on Servers

 jamilpremji  February 26, 2024  0 Comments on Get Local Administrators on Servers

To get a list of local administrators on a server using PowerShell, you can use the Get-LocalGroupMember cmdlet from the…