Mar
21
2017
Powershell provides a “count” method that comes first to mind when you have to count lines, files or objects. I was astonished to observe PowerShell would display nothing when it should count 0 or 1. Here’s a screenshot where I retrieve the number of Active Directory accounts and showing count is unreliable. Instead use the Measure-Object […]
Tags: Powershell, Windows
Mar
09
2017
You’re in charge of a Remote Desktop Services (RDS) server but unfortunately, the C: drive starts running out of space, user profiles being on that same volume.Lucky enough, a huge amount of space remains on the D: drive, but how shall I move RDS profiles? Set Path for New Profiles You can set up a […]
Tags: GPO, RDS, Remote Desktop, Windows
Oct
06
2016
Olivier, a friend of mine, had to parse a CSV file and took the opportunity to benchmark the performance of 3 programming languages. The file contains server names and disks he needs to add up into a hash table in order to get the total disk space for each server. He assumes on his […]
Tags: bash, linux, performance, perl, shell
Aug
25
2016
I want to do a bit of cleanup on our main IBM i because users jobs are running in all sort of queues. Most users have a dedicated JOBD and JOBQ, which is wrong in my humble opinion. A user’s JOBQ is defined within the user’s JOBD (Job Description). A JOBD references a JOBQ and […]
Tags: AS400, IBM i, iSeries, shell
Feb
22
2016
Change Owner Through IBM i Terminal There are many ways to change an object owner on IBM i. With CHGOBJOWN for a single object, or WRKOBJOWN then press 9 for each object if you want to start with all objects belonging to somebody.Changing ownership of thousands of objects this way will be very painful and […]
Tags: AS400, IBM i, iSeries