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...

New PowerShell cmdlets in 5.0

Today I attended my first meeting of the Dutch PowerShell User Group (or DuPSUG for short) which contained an enormous amount of info on several topics. In this post I’ll discuss 3 of the PowerShell cmdlets I picked up of which I never even knew the existence. These cmdlets came from the session of Ed Wilson, “Ed’s 5 favorite things about PowerShell 5.0”. If you didn’t know he’s the guy behind the scripting guy blog. Thanks for the input Ed! Compress/Expand-Archive Handling zip archives was always a pain in the ass. You’d either have to resort to .net. Which I personally never used...

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...