six demon bag
Wind, fire, all that kind of thing!
2022-05-21
A Convenience Wrapper for the Puppet Agent
At work we're doing config management with Puppet, and although using the Puppet agent is mostly fine, I have some workflows where it becomes rather unwieldy. For example, when debugging something or developing a new role I usually want to keep the agent disabled, but still do manual (dry-)runs every now and then to check what Puppet would change in the config or apply changes selectively. Which tends to look somewhat like this:
Posted 12:09 [permalink]
2015-01-18
Adding Group Members Across Domains
Normally when you add a member to an Active Directory group you'll simply use the Add-GroupMember
cmdlet from the ActiveDirectory
module. Except when you have to do it across domains/forests where the source domain is still running Windows Server 2008 (not R2). As in "no AD PowerShell cmdlets" and "no Active Directory Web Service (ADWS)". *sigh*
Posted 18:25 [permalink]
2015-01-12
Translate VBA to PowerShell
Microsoft Office applications can be controlled from PowerShell in the same way they can be controlled from VBScript. Most of what was said in the previous article about translating VBA to VBScript applies to PowerShell as well, but there are some additional things to take care of due to the syntactical differences between PowerShell and the VB dialects.
Posted 16:30 [permalink]
2014-06-07
Translate VBA to VBScript
Since I'm seeing lots of questions like "how can I do FOO in Excel/Word/... with VBScript" I thought I'd post some guidelines on how to approach this kind of task.
In general, VBA and VBScript are quite similar, so most of the time you're better off recording a VBA macro and translate that to VBScript than writing the whole thing in VBScript from the get go. There are some notable differences between the two languages, though, which you need to observe when translating VBA to VBScript.
Posted 15:26 [permalink]