Interactive stuff &  remote PowerShell

Have you ever had the issue that you had to run something on a remote computer? Remote PowerShell is very convenient in these cases. Whenever you need to run something truly interactively though that’s where remote PowerShell stops helping you. If you need something that runs inside a normal interactive session you need an alternative solution. For that I’ve created a PowerShell script. Run-InteractiveScript allows you to run a PowerShell script in an interactive session on a remote machine utilizing Remote PowerShell to set everything up. Something I do have to note that this is by no means a secure...

LoginAM – RDS 2016 Blueprint ready

The new RDS 2016 Blueprint based on Windows Server 2016 is ready for usage. I could say I put blood, sweat and tears into it. However I didn’t really do too much. I imported the old RDS 2012R2 blueprint. I already knew that when installing Server 2016 with a full GUI desktop experience was already installed so I removed that part. Then I renamed the collections, layer and packages from 2012 to 2016. That’s basically it. I went on to deploy the RDS deployment (which was the biggest part of the job) and all was working out of the box. Windows Server...

LoginAM custom maintenance scripts

Running automated maintenance is complicated LoginAM offers a maintenance plugin that grants you extensive capabilities to perform automated changes on your machines. I wrote a blogpost about this subject last week. A couple of the options are that you can process servers in different orders (or divide them into 2 groups), request users to gracefully logoff, daily or weekly scheduling and it reports about the results of maintenance. So the maintenance plugin is already very complete. We can’t however know all kinds of servers and actions needed before a change starts. Some databaseservers might need their databases gracefully stopped, you might want...

PowerShell jobs for multithreading 

PowerShell is a very powerful tool. Sometimes that means you might do something that takes a lot of time. There’s a simple trick to speed things up. PowerShell jobs is a crude form of multithreading (actually more like parallel processing). If you perform something time consuming over and over again it might be useful to use jobs with this. I had this some time ago. I had a large array which I looped through with a foreach statement. Each iteration could take up to a minute and in some cases I needed to make up to 400 iterations. Since I...