Category Archives: Scripting

Use PowerShell to Download the HTML of a Website

You can use PowerShell’s Invoke-WebRequest cmdlet to download the HTML content of a website. This versatile cmdlet not only allows you to fetch files from the web via HTTP and HTTPS but also provides the capability to analyze and extract information from web pages.

PowerShell vs Command Prompt: Pros and Cons

Both PowerShell and Command Prompt (cmd) play significant roles. While Command Prompt has been around for decades as a staple tool for running commands and scripts, PowerShell represents a more modern and robust CLI introduced by Microsoft. In this blog post, we’ll compare PowerShell and Command Prompt, highlighting their respective pros and cons to help you understand which… Read More »

Crawling the Web with PowerShell

To crawl links on the internet using PowerShell, you can use the Invoke-WebRequest cmdlet. Here is an example script that can be used as a starting point: # Define the starting URL to crawl$url = “https://www.example.com/” # Create an array to store the URLs$urls = @() # Get the web page content$response = Invoke-WebRequest $url # Find all links on… Read More »

What is DSC?

Desired State Configuration (DSC) is a configuration management platform in Windows PowerShell that enables you to manage your infrastructure and enforce your desired configuration. It allows you to declaratively specify the configuration of your servers, and then automatically ensures that your servers are in the desired state.

Powershell Arrays

Using arrays in PowerShell can be a powerful tool for organizing and manipulating data. In this blog post, we will cover the basics of working with arrays in PowerShell, including how to create and access array elements, and how to manipulate arrays using various methods.

HTTP Request in Javascript

There are several ways to make an HTTP request in JavaScript. One of the most common ways is using the XMLHttpRequest (XHR) object, which is supported by all modern browsers.