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…

Get User Groups and Add Users to Groups

 jamilpremji  February 19, 2024  0 Comments on Get User Groups and Add Users to Groups

To find the Active Directory (AD) groups that a user is a member of, you can use the Get-ADPrincipalGroupMembership cmdlet…

PowerShell and Functions

 jamilpremji  February 16, 2024  0 Comments on PowerShell and Functions

A function in PowerShell is a block of code that can be defined and then called by name. Functions can…

Moving Your Script into a Reusable Function

 jamilpremji  February 12, 2024  0 Comments on Moving Your Script into a Reusable Function

There are several reasons why you might want to use functions in your PowerShell scripts: Overall, using functions can help…

What Can You Do with PowerShell?

 jamilpremji  February 7, 2024  0 Comments on What Can You Do with PowerShell?

PowerShell is a powerful tool that can be used to manage a wide variety of systems, including: Some common uses…