As a Windows Server Administrator we often need to manage local user accounts and groups on servers.It could be very tedious when you need to manage this on hundreds or thousands of servers. However, we can make it less tedious and more efficient by using scripts. Today, I am going to share a powershell script…
Category: Windows
List Printers on a Windows Print Server
This post is about a small script to connect a Windows Print Server remotely and list all Printers attached to the Server.It will also provide printer IP Address, printer status etc. I will use Microsoft Windows Operating System WMI provider in Powershell to connect and generate details from the print server. Through this script, I…
Change Ownership of Directories using Powershell
Today I am going to share a small , however, very useful script to change Ownership of a list of Windows Directories / CIFS using Powershell. Being a Windows System Administrator, we often find ourselves in situations where we have issues to access or change NTFS permission on Directories. We tend to update or take…
Automated File share audit using Powershell
For any organization, it is very important to have proper Governance around File server and share access management. For regulated Organization, it is really very critical to do regular auditing on shares, access management and identify any discrimination and mitigate those ASAP. In recent past, I worked on a project for one customer where we…
WinRM status check using Powershell
Here is another small script snippet I used in one of my project to quickly check status of WinRM setup on a list of servers I was managing. This was part of a bigger project work, and this data was important for my project on whether WinRM is setup as per requirements or not. You…
Merge multiple JSON files to one file
Recently I was processing some JSON files for one of my project and wanted to merge multiple similar JSON files in to a single file. All those files I was processing were in similar JSON format, however, coming from different sources. Once I have all these files stored in disk, I wanted to ingest in…
Automated MD5 CheckSum comparison using Powershell
Recently I came across a requirement where we wanted to make sure if checksum of files copied from source to destination remain same. Checksum is used data integrity monitoring for given file. I used MD5 checksum algorithm for file integrity check. Refer here for more information. Manually comparing a large set of files is very…