I really wanted to see how complicated it would be to write a very basic PowerPack for PowerGUI.
I had recently updated my WMI defrag script to report to HTML, so I thought this would be an excellent candidate for a PowerPack.
I must admit that, at first it is not very straight forward, but the more time you spend on it the easier it becomes. I am really looking forward to re-create some of my favorite apps / scripts as PowerPacks. I think this is an excellent platform from Quest.
Suggestions / comments always welcome. Have mercy, it’s my first attempt at a PowerPack.
As an update to the automatic cleanup script, this script will do essentially the same, but will also attempt to take ownership of the folder before renaming it. This was added because some of our users had full control on their folders, and removed all other permission from the folder.
There is a slight problem with get-acl and set-acl. The ownership will fail if you can’t read the ACL. If that fails, as a last resort, the script writes the failures out to a text file, which can be used as a batch file with a little utility called takeown.exe which will take ownership of the folders regardless. On a re-run of the script, the rename will succeed.
You can download the script from here:
Enter your email address:
Delivered by FeedBurner