Powershell commands to copy file and folder permissions across volumes
Posted on 2011-02-16
Hey guys, I have a template folder (call it source) in a directory that I use to create new directories. When my firm get's a new job a new project number is assigned and that number becomes a new folder a network share. We use a template directory to create this share. The template directory contains a standard set of folders with specific permissions. Back in XP this was easy, I'd use SCopy. Example. E:\templates> scopy source u:\proj11\12345 /s. That command takes the "source" folder in the E:\templates directory and copies it to the U:\proj11 folder, names the new folder 12345 and retains the security from the source directory. Well, I can't use SCopy anymore unless I use xp mode. Besides I'd like to start using powershell more now anyway. Can anyone give me a hand? I'm a powershell n00b. Thanks.