Menu

Virtual Geek

Tales from real IT system administrators world and non-production environment

Blog posts : "powershell"

Part 4.1 GitHub Actions deploy azure resources with PowerShell

After successfully configuring and setting up Azure and Terraform in GitHub Actions, I embarked on a Proof of Concept (POC) to automate PowerShell scripts (Azure az module) using GitHub Actions. I meticulously automated all the job steps using PowerShell, with a primary focus on utilizing credential…

Read more

Configure SNMP Service on HPE ILO Redfish Rest API using PowerShell

In our team, a colleague was tasked with configuring SNMP settings on multiple HPE ILO portals. To streamline this process and avoid manual labor, they sought my expertise in automation. I leveraged the HPE ILO Redfish REST API with PowerShell to automate the task, utilizing the comprehensive API do…

Read more

Reboot remote Linux server from PHP PowerShell web server for privileged users

This HTML tool enables users to restart Linux servers remotely from their web browser, providing a convenient and efficient way to manage server operations. Built using HTML, PHP, and PowerShell, this project is designed to be hosted on a Windows XAMPP server only. 

For added security and author…

Read more

Generate GUID using PowerShell GUI tool

This PowerShell script provides a graphical user interface (GUI) for generating new GUIDs. Each time the "Generate" button is clicked, a new GUID is created using the [guid]::NewGuid() command. The interface is built using Windows Forms, offering a user-friendly way to quickly generate and view uniq…

Read more

PowerShell create resources on Azure using Rest API with user account

Using client id (Service Principal) and client secret to connect Azure Rest API is fairly easy and simple. As I have shown in my earlier articles. I am using another way of using your organization Username of Password to connect to azure Rest API instead of client id and client secret. You generate …

Read more

Azure Rest API connect with Powershell and create resources

Powershell Microsoft Azure Rest API postman configuration automation application platform interface invoke-webrequest invoke-restmethod.png

I had a task to explore and deploy resources in Microsoft Azure using Rest API. Very good and detailed documentation is provided by Microsoft for Azure Rest API here https://learn.microsoft.com/en-us/rest/api/azure/

In this example I will use PowerShell to automate Azure Rest API and cre…

Read more

Terraform Force-Unlock Command and Unlocking State file on Azure backend with PowerShell

While working on collaborative environment of Terraform deployments, you might encounter an error of acquiring the tf state locking issue. In Terraform word when backend is configured to store state file on remote. It limits multiple users from making changes to environment at the same time to avoid…

Read more

Create storage account and Service Principal using PowerShell for Terraform Azure Backend

While working on earlier article Configure Azure Storage Account Blob as Terraform backend to store tfstate file, I wanted to test terraform backend configuration with Azure Service Principal (App registrations) account. To configure initial resources on Azure for backend, I have automated all the …

Read more

Automate chrome browser with PowerShell using selenium

Working with deprecated Internet Explorer using PowerShell to automate it was very easy earlier. To automated clicks or auto type on Internet Explorer, I was just using native .net com objects, which was a very simple and comprehensive. But since Internet Explorer is deprecated, I switched to Google…

Read more

Adding parameters in Azure DevOps pipelines examples Part 1

This is an example of how to use parameters in Azure DevOps Pipeline YAML configurations. To start with this I have added first parameters: in the YAML file configuration. Under it I have multiple parameters, to create basic string parameter 3 properties are required name, displayName and type as …

Read more

PowerShell convert shared folder permissions SDDL to readable format

While working with shared folder permissions, I wanted to document access and permissions of folders in readable format in automation way with PowerShell, You can see the permissions with below command of a folder. Access and permissions are in SDDL format, not in user friendly format to read, it co…

Read more

Generate PowerShell Tree View HTML diagram of Active Directory group recursive memberships

Long back I wrote article on Powershell Active Directory: Show treeview of User or Group memberof hierarchy, where it was showing group Tree View on the PowerShell command console. In the hierarchy it was only showing Tree View of groups only. I improvised this script and included users as well. A…

Read more

Reboot remote Linux server from PHP PowerShell web server

This web portal is part of Executing a Linux programs from PHP web server. In earlier part I used only PHP to remotely execute commands on Linux server. In this it is a combination of PHP and PowerShell. Once you launch portal you will need to provide Domain username and password to authenticate an…

Read more

Testing domain AD credential with PowerShell one liner

This is a one liner command script to connect to Active Directory and verify user name and password credentials provided. I am using  System.DirectoryServices.DirectoryEntry .net object here to connect to LDAP server (In my case it is Active Directory). When you are connected successful with correct…

Read more

PowerShell WPF Mouse cursor tracker

Currently I am working on a PowerShell GUI project where I need to track Mouse Cursor. In this article this is a sample code to track Mouse Cursor. As you move mouse on GUI console, it shows the position of mouse.

In this sample code it uses MouseMove event and Windows.Input.Mouse position…

Read more

PowerShell HTML Server Racks Cabinet Live Diagram maker Demo

This is test code I built to create dynamic Server / Racks cabinet live diagram on HTML as frontend from provided input inside Excel CSV using PowerShell script. I am still working on the code, whatever code I have worked so far I am posting it online. Basically after generating Diagram on HTML webp…

Read more

Bulk change multiple file names with OneLiner PowerShell command

This is a one liner PowerShell script to change multiple files names in bulk. In this below given example I had multiple png images. I will take one file name Button_Icon_Black.png as an example. I wanted to just keep the name of the file with the Black.png (color name). Using below command you can…

Read more

PowerShell HTML based Live Ping Monitor Demo

This is small demo where I combined PowerShell + HTML to create a dashboard report for ping. Basically what it does is?  when you put some servers entries in Pinglist.txt file which you want to ping and start a PowerShell Get_PingData.ps1 script. It shows the Live Dashboard on HTML web page as per…

Read more

PowerShell WPF XAML multibinding datacontext template example - Part 4

PowerShell WPF XAML control to control data binding datacontext example - Part 2

This is a part 2 of PowerShell WPF XAML simple data binding datacontext example - Part 1. Here I will configure control to control data binding context in WPF XAML. In this example I am using Slider and TextBox controls to show example. Here if I change Slider it should update its value on TextBox …

Read more

20 blog posts

Blog Search

Page Views

12056407

Follow me on Blogarama