Posts

Showing posts from May, 2016

Can't change Maximum password age on a domain? Apply or modify password policy

If you try gpedit.msc or secpol.msc > Security Settings > Account Policies > Password Policy > Maximum password age on a modern Windows Server domain system you will fail: The value (and all the others) are grayed out. The proper way to set the values for Password Policy as a Password Settings Object (PSO): adsiedit.msc Right-click and "Connect to..." and accept defaults ... Note for parameters of type "duration" you may use the so called I8 values or the more easy to read d:hh:mm:ss format. Sources: Configuring Granular Password Settings in Windows Server 2008 Creating a PSO using ADSI Edit Apply or modify password policy

Choosing a Windows automation script language: AutoIt vs AutoHotkey

Recently I had to decide for which automation script language to go. As always the simple answer is: What is the use case? Give the most prominent tools a try and see which you like best As the immediate use case at hand is mapping a mouse button to a keyboard key I went for AutoHotkey. Collected below are a couple of URLs worth reading if you're also planning to embark on that journey. Sources: AutoIt VS AutoHotkey (at StackOverflow) AutoIt VS AutoHotkey (at AutoIt Forum) Remapping keys with AutoHotkey Remapping keys with AutoIt (1) Remapping keys with AutoIt (2)