Hello everyone. I had a task to create a solution which will perform task of backing up Windows SQL server both locally and on S3.We all know that if you use AWS RDS, you wouldn’t have to worry about backing up SQL databases. However, if you don’t want to pay any third party software which … Read More →
As you may already know, the GA version of Powershell Core is suppose to be released on 10th of January, with release Candidate version being available for some time already. Powershell will come with two versions: Windows Powershell Powershell Core Powershell Core is a version of PowerShell built on top of .NET Core. The official … Read More →
This is just a simple and easy script, which is retrieving disk info from either local or remote PC. I have defined a couple of parameters, some of them are mandatory, some of them not, with parameter options to validate set, which means that while you are writing the parameter, it will give you a … Read More →
Few days ago, I had a task to check if SQL Native Client version 11 was installed on some server in our environment. Of course, I could have logged in to all of my servers and check manually, but why I should do that if I could achieve the same thing with PowerShell. And it … Read More →
When you have an automation engine supported by PowerShell, it is a good idea to create a custom Event Log Type, where you would log all the messages sent by PowerShell. This is just one example where you could implement Custom Logging in Event Viewer, you could do this even with a single PowerShell script, … Read More →
Hello. In one of my previous posts, COMPARE TWO CSV FILES VIA POWERSHELL, I was comparing values from two CSV files, and saved output into CSV again. This is not bad, if you don’t care about formatting or coloring the cells etc. But what if you would need to do such a thing. What if … Read More →
Hello. Recently I had a task to find a way how to compare two CSV files, find a match and save it in a new CSV file. I was struggling a lot, but with a help of a friend, we were able to create such a script. Thank you Michal 🙂 Here, I will show … Read More →
We all know how to create an Active Directory group via GUI. Right-click, select this select that and you are done. But, doing this via PowerShell is a great way to manage computer accounts in Active Directory. To be able to create, move, or delete AD groups, OUs, and so on, you need to have … Read More →
Hello again. Today, I have had a task to check the status of a service on all my servers. Since I didn´t have much time, I decided to make a quick and ugly script to check the status of the service. So lets start. First, we need to get all our computer names and put … Read More →
PsExec - Remotely Connect and Logoff a User So, as the title says, sometimes when you have two users already connected remotely to a server, you need to disconnect someone, or to log him off or something… Well, you contact that person and ask politely to logoff by him\herself, and they don´t want to do … Read More →