Archive for the 'Windows' Category

 

 

Apr 22 2017

Managed Service Account Fails after Reboot

Published by under Windows

Windows services can be started with a Managed Service Account (MSA) for the sake of security and easy management. It was working just fine until I initiated a server reboot. The service would not start. Opening the service and wiping out the password field makes the service start again. What could be wrong?Let’s focus on […]

No responses yet

Apr 06 2017

Windows Managed Service Accounts

Published by under Windows

Managed service accounts appeared with Windows 2008 R2 Server. MSA provide a dedicated account for each service without the hassle of managing password assignment or reset; less management, more security. However, an account can only be used on one server.   Setting up a service account is done in 2 steps: Create it on the […]

No responses yet

Mar 21 2017

Count Results in PowerShell

Published by under Windows

  I was astonished to see PowerShell would display nothing when it should count 0 or 1.   Here’s a screenshot retrieving the number of AD accounts.   Instead use the Measure cmdLet and select the count value: C:\>(Get-ADUser -filter {SamAccountName -like “dron*”} | select SamAccountName | measure).count 1     Another useful command: The […]

No responses yet

Mar 09 2017

Move RDS profiles to Another Volume/Drive

Published by under Windows

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 […]

No responses yet

Sep 06 2015

DOS / Powershell Scripts to Remove Files Older Than

Published by under Windows

System admins face more and more ever-growing directories storing auto-generated reports by scripts or scheduled tasks. Same goes to temp directories and nobody bother cleaning them up. But isn’t it our job?Here are 2 simple scripts that can be run every so often to delete files older than say 30 days for instance. The first […]

No responses yet

Next »