Predict the future with Powershell – Part 1

In this blog I will get a little bit scientific with a little bit of philosophy twist, well yes the title says it all, almost. Based on scientific studies and research the brain has already made a decision or action before we are actually aware of the decision, well in short the brain thinks before we do. You can google this or read this article about it. Now that made…

Continue Reading No Comments

Powershell better coding

I have seen some horrible bad coding in powershell in the past, well it´s probably my fault because I did not understand how to code correctly when I started to code, hehe, yes I´m making fun of my self. I took some codes that I was working with and I just wanted to show you how you can approach this in different ways. The problem I had in the past …

Continue Reading No Comments

Create users using CSV and Powershell

There have been a lot of questions on the internet about how to create users from csv so I wondered if I could just create a quick simple guide how to do this. First we need to decide what attributes we are going to implement into the CSV file, we need some required attributes such as First Name, Last Name, Display Name, Username and so on. You can run the …

Continue Reading No Comments

Linux Powershell

As you may know that Microsoft has released Powershell on linux a few months ago but I have not been able to test it, so I decided to try it out. I installed Ubuntu 64bit 16.04 and tried to figure out how to install Powershell. I noticed that Microsoft has said that they have released Powershell for linux and mac but they did not mention that it was an alpha …

Continue Reading No Comments

Create a lottery game using Powershell

I just wondered if it was possible to build a small game with powershell so I started to figure out what was the best possible game for this scenario, I thought that it would be best just to create a lottery game. You would select your numbers and each draw will be random. If you would get 100% in the numbers you would then receive congratulations sign. There are few …

Continue Reading No Comments

Dynamic Infrastructure Documentation with Powershell – Part 3

Here we go again, in this part we are going to get all servers in Active Directory and then we are going to audit them for both applications and services. Note that the snippets in LinkedIn is not very code friendly so bare with me, I will post this blog also on my personal website that I am currently working on and it will have better code snippets. Create a …

Continue Reading No Comments

Dynamic Infrastructure Documentation with Powershell – Part 2

Before you continue with this tutorial I would recommend to read the first part of the blog which is to be able to write data into SQL database. We have configured the SQL database in part 1 and now we are going to get some data from Active Directory to write into SQL database. Before we start coding we need to figure out the organizational unit structure in Active Directory …

Continue Reading No Comments

Powershell ISE vs Visual Studio Code

I have been using Powershell ISE for a long time and is very good software, it´s simple and not too much annoying stuff running in the background to be able to run the code you are writing. Microsoft has introduced Visual Studio Code which will also be available to write Powershell code, at the first start it was not specifically usable for powershell unless you would download extensions and it …

Continue Reading No Comments

Dynamic Infrastructure Documentation with Powershell – Part 1

Dynamic Infrastructure Documentation with Powershell – Part 1 – You are here now

When I have asked my students or other IT Admins if they are using some kind of documentation system for the server infrastructure and most commonly I hear the word “Almost” but when I ask them if it is up to date I hear the word “Almost”. Well the word “Almost” is maybe almost nothing. So why …

Continue Reading No Comments

The reality of IT Admin worst fears

For the past twenty something years while I have been in IT the environment has been changing vastly and the common issues when I talk to IT admins is what they fear the most are changes. I can understand why they fear it and is basically because they fear that they will be obsolete and loose their jobs, in some instances it can happen like when I was at a …

Continue Reading No Comments