Changing file dates and other more uncommon properties in PowerShell

There are some file properties that aren’t too easy to change. Neither in the command line or in Windows Explorer. One that I’ve wanted to change personally quite often is the created and changed dates of a specific file, or a batch of files. Background I frequently use my Windows Phone (currently a Nokia Lumia…

0

Running a scheduled PowerShell script on a pre-Vista OS

It’s been fun to see the reception that PowerShell has gotten. People are using it for tons of different stuff and the ingenuity in some of the scenarios is quite impressive. There is one thing, however, that you should be aware of. PowerShell is not an ideal candidate for execution through the Task Scheduler. Problem…

3

PowerShell – Managing Feature Delegation in IIS7

Perhaps you’ve read my earlier post on advanced feature delegation using PowerShell and the IIS 7.0 PowerShell Provider. This could actually be called Part II. The previous post was based on a quick question from a premier customer. He is a never-ending source of intriguing questions and I always enjoy his "just one thing"-type of…

2

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…

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

PowerShell – Automatically organizing your mp3-collection

Is your mp3-collection perfectly sorted? I know mine wasn’t. I thought I’d address that while creating a pretty good demo-script to show some basic filtering, script structures, etc. Since I also wanted the script to extract the metadata from every file in my collection I had to use the Shell.Application Com-object as well. All in…

6

PowerShell – An introduction, Part II

This is a continuation of part I. If you haven’t read it I suggest at least going through the summary at the end of the post. Working with Drives In your basic command prompt you have the normal file system drives that you use to access your hard-drive, floppy, DVD, USB-stick, network shares etc. PowerShell…

2

PowerShell – An introduction, Part I

Over the past months I’ve been holding a couple of workshops on PowerShell. It’s quite an interesting topic, but not something I originally thought would be suitable for this blog and its web-development theme. Still, having given this a bit more thought I decided that there are so many useful features and cmdlets that could…

2