Work with Environment Variables using Windows PowerShell – Part I
Question: Hey dotnet-helpers, I wanted to see the values of all the Environment variables in my servers/PC, How do I do this in PowerShell? Dotnet-helpers
How to Un-ZIP compressed files using PowerShell Expand-Archive cmdlet
In the previous post, we have discussed how to zip the folder/files, so here we going to discuss how to unzip files and folders archives.
How to Remove Empty Folders/Directories recursively with PowerShell
As part of System Admin, you will have control of more servers and there may be hundreds of empty folders as junk files which may
Creating Multiple Tables in single HTML Report using Powershell
Actually System Admins do a lot stuff with Powershell Scripts. Often in Powershell you get lists where data is collected in table format.ย All Tech/non Tech
How to remove duplicate rows in a CSV using Powershell
We are maintaining the user database in our environment, every week automatically the excel will be placed in the the specific folder. Post this, the
How to create Basic Chart by reading excel using PowerShell
As system admins, we are used to digging through heaps of searching, selecting, sorting, filtering, until we got what we were looking for. My point
How to use splatting in Powershell – Part I
Splatting is a method of passing a collection of parameter values to a command as unit. PowerShell associates each value in the collection with a
Creating Chart Reports using Powershell Chart controls
As system admins, we are used to digging through heaps of searching, selecting, sorting, filtering, until we got what we were looking for. My point
How To Monitor a Folder changes using Powershell
In our environment, large numbers of users are working on a daily basis and it very difficult to track what file they have modified and
How to encrypt and store Passwords securely in PowerShell
As a system Admin, managing automation scripts passwords in PowerShell is a tricky task. There is always risk that someone may find the password by
How to Get average CPU usage of a computer in last x minute with Powershell
We got the requirement to monitor the performance for few minutes before starting the activity (CPU usage of a computer in last x minute )
How to combine the elements of two arrays using Powershell
An array is a data structure that is designed to store a collection of items. The items can be the same type or different types.
How to Use PowerShell to Detect Logins and Alert Through Email using SendGrid
From Microsoft MSDN, The Get-WinEvent data from event logs that are generated by the Windows Event Log technology introduced in Windows Vista.And, events in log
How to delete files older than 30 days automatically using PowerShell
Delete files older than 30 days: In many scenario we will store large number of non-important files on a different location, and its very difficult
How to Read Multiline User Input in Powershell
Here we will discuss about reading multi line inputs from command line using PowerShell. In some time we often get requirement to enter multiple lines
How to write data to an xml file using Powershell
Recently, I came up with a requirement of updating an config file (Xml data) in our PROD environment without login in to the sever to
Use PowerShell to create compressed ZIP files
In many scenarios, we will have a requirements for handling to create zip archives or extract files from existing archives with programmatically .ย From PowerShell
How to Use Multidimensional arrays in Powershell
Before I show you how multi-dimensional arrays work, let we start what is an array. By default, PowerShell assumes that the elements of an array
Reading XML Files With PowerShell
Handling XML with PowerShell is very simple. It converts XML elements to properties on .NET objects without the need to write any parsing code. So
Creating HTML report with CSS (Cascading Style Sheet) using Powershell
All Tech/non Tech peoples loves a nice HTML report for reviewing. Creating these type of reports in PowerShell is very easy and simple. These type