Office Automation

A very common scenario that keeps sprouting new heads like a hydra is Office Automation. Let me start by saying that this is not supported. There is a KB-article number 257757 discusses this, and clearly states the following: Microsoft does not currently recommend, and does not support, Automation of Microsoft Office applications from any unattended,…

1

PowerShell – Advanced configuration editing in IIS7

I’ve written a lot of PowerShell posts lately and here’s another one. I got a question from one of the account managers if it was possible to alter the FTP Authorization Rules for a specific folder on his IIS. The appcmd for the operation was appcmd.exe set config "FTPFolder" -section:system.ftpServer/security/authorization /+"[accessType=’Allow’,users=’*’,roles=’*’,permissions=’Read, Write’]" /commit:apphost He wanted…

3

PowerShell – Editing permissions on a file or folder

I got the following question from a reader the other day: I’ve been trying to figure out how to change permissions on a folder in PowerShell. I’ve looked at the Get-Acl and Set-Acl, but I can only use them to copy the settings from a pre-existing object. How do I manually configure permissions? This is…

21