How to Pass function as a parameter in PowerShell
I got a few questions to my inbox, that is "How to pass the function as a parameter (calling function from another function) using PowerShell". To answer this, I thought to write a quick article
When to use Tee-Object Cmdlet in PowerShell
In this blog post, we will discuss about Tee-Object cmdlet in PowerShell. Previously I am not got a chance to use this cmdlet in any of my automation and currently using the same in my
How to add XML values to the PSCustomObject using Powershell
We already discussed the reading/Writing XML file using PowerShell in previous posts and How to add values to the string array from XML using Powershell. Now in this post, we will discuss How to add
Performance comparison between FOREACH LOOP and FOREACH-OBJECT using PowerShell
If you're familiar with any programming language then you're probably also familiar with a ForEach loop. A ForEach loop is a simple language construct that enables you to iterate through a set of items in
How to Check if a PowerShell Script is Running with Admin Privileges
In one of my PowerShell automation, the automated script needs to run with Admin mode. So to avoid the error during the scrip execution, we need to check whether the script is running in the
How to Quickly Find Hyperlinks in Excel using PowerShell
I recently had the requirement to fetch out all of the hyperlinks from a Large excel worksheet to prepare another document and its repetitive monthly task. While I could have gone the manual approach by
How to call REST APIs using Powershell
What is API? The API is not the database or even the server, it is the code that governs the access point(s) for the server. APIs allow developers to interact with online services without actually
How to Create XML file for the current Running services using Powershell
As a System Admin, I came up with a requirement of creating an XML file for a currently running process from Multiple systems as output using PowerShell code. Post this, the same XML file will