Apr
22
2017
Windows services can be started with a Managed Service Account (MSA) for the sake of security and easy management. It is working just fine until I initiate a server reboot. The service would not start. Opening the service and wiping out the password field makes the service start again, until the next boot. What could […]
Tags: GPO, security, Windows
Apr
06
2017
Windows Managed service accounts (MSA) appeared in Windows 2008 R2 Server. MSA provide dedicated accounts for each service without the hassle of managing password assignment or reset. Less management, more security.However, a single account cannot be used across multiple servers. This could lead to many service accounts within a domain but this is not a […]
Tags: Powershell, security, Windows
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
Sep
06
2015
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 too?Here are 2 simple scripts that can be run every so often to delete files older than say 30 days for instance in […]
Tags: DOS, Powershell