When working with arrays and PSObject in PowerShell, there are several efficient methods for creating and managing array elements. Below are examples that highlight both the creation of arrays and the addition of elements in different ways.
To create an empty array in PowerShell, you have two m…
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…
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.
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…
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…
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…
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…
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…
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…
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…
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…
Earlier I wrote two articles regarding PowerShell WPF for DataBinding examples. In this article I will be using DataBinding to use with DataGrid control.
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 …
Windows Presentation Foundation (WPF) provides a simple and consistent way for applications to present and interact with data by binding elements to data from different kinds of data sources in the form of .NET objects and XML.
Here in this example I will show how to create simple WPF binding usi…
This GUI tool is written using PowerShell and it helps encrypt given password and then decrypts that text to Password back. My colleague schedules PowerShell scripts a lot. Generally as best practice they do not use clear text password in their scripts. Instead they wanted to keep it in the encrypte…
Some times it is essentials to convert your codes to EXE. In my scenario when I try to provide script to end users and if I expect them not to modify the script before running or executing it, I can convert any cmd bat or PS1 script to EXE easily using native windows tool called iExpress.exe, and ex…
This script helps to get last installed patches, updates with dates, Server/System Last boot Uptime and C drive disk space information. This script was asked by one of the my SCCM team to troubleshoot in case if patches/updates installation are failing.