I can't tell you how many times I have had to reach out and touch multiple servers to add a service account to one of the systems local groups. This can be a time consuming endeavor when you get above a few machines. This post lists the code needed to add a user to the … Continue reading Remotely Add Users to the Local Admins Group with Powershell
Several years ago, I was tasked with putting together a script to output a list of all users and groups on a server. Additionally, management wanted to know the membership of the local groups. If the groups contained other groups, the contents of those groups should be listed as well.
If you deal with any private data, you may have a need to securely delete the file to ensure the data is non recoverable.
Windows PowerShell is a new task-based command-line shell and scripting language designed especially for system administration. Built on the .NET Framework, Windows PowerShell helps IT professionals and power users control and automate the administration of the Windows operating system and applications that run on Windows. Built-in Windows PowerShell commands, called cmdlets, let you manage the … Continue reading Powershell
How many times as an administrator do you hear about someones account being locked. It can be very problematic for the user, especially when they don't know where it is being locked out from.
Problem: I had the need to test multiple ports on multiple servers and didn't want to do each one manually. Typing telnet multiple times get old real quick not to mention the potential for fat fingering the keyboard.
Problem: I need to monitor the installed services and their status. I.E. if they are started or stopped. I will take the data and use a separate script to make alert notifications. Here are a couple of ways to do this.
Problem: A lot of licensing is based on the number of CPU sockets and or cores assigned to a system. See below for methods on making the proper determination
Problem: I occasionally need to ping a system to check connectivity during off hours. For my results to make sense, I wanted the timestamp for each ping. Here are a couple of quick ways to do this.
There are many applications that use UDP ports in operation. When firewalls are in place, it can be difficult to determine if the problem connecting is due to the firewall, or simply the application. The attached files can help with this. udpserv.ps1 is a quick PowerShell script that will listen on a defined port for … Continue reading UDP Client Testing