Quickly extracting all links from a web page using the PowerShell
We are maintaining 500+ client websites in our environment. Some day before we received a request to get the list of links/Images used on each home page. We knew that it will be very tricky
Run BAT File From PowerShell Script
To Run BAT File from PowerShell Script, you can run it manually from the PowerShell (or make the PowerShell execution in the windows scheduler run at a certain time). A batch file is a series
How to Convert YAML to JSON / JSON to YAML using PowerShell
A few days back my team member asked, Is there an easy way to convert YAML to JSON and JSON to YAML using scripts? As expected, my answer was: Yes, with PowerShell! In some scenarios
Passing Local Variables to Remote PowerShell session
While working with automation in remote computers using PowerShell, you'll come across many scenarios where you may want to use local variables or input data in a remote session. But when you try to use
How to remotely get computer CPU and memory usage
Requirement: One of my clients requested to check the status of the CPU utilization and Memory usage before starting the deployment. If any utilization is beyond the threshold (by taking the N samples of utilization
Downloading a file with PowerShell
Scenario: We got a requirement to download the Excel files on a daily basis from the webpage and need to process the same automatically (window scheduled jobs) and share the report with my supervisors. If
Where to use the –replace operator and Replace() method & its difference
In this post, you’re going to learn where to use the PowerShell replace() method and PowerShell replace operator. The tutorial will cover the basics and even drive into some regular expressions. .Replace is a .NET
How to Extract Specific Files from ZIP Archive using PowerShell
When is this required (Real-time Scenario)? In our blog, we already discussed the zip and unzip files using Powershell. In this post, we are going to discuss how to extract specific files from the zip.