For each folder move a specific subfolder

by Feb 1, 2012


I'm a ps noob but I'm keen to start using it primarily.

Need a script or command that will go through all user drive folders on a volume and move a specific folder from within the user folder to UNC path.

Psuedo code

For each folder in E:Users

If exists move E:UsersUser1UPM_Profile to \backuplocationUser1
If exists move E:UsersUser2UPM_Profile to \backuplocationUser2

/Psuedo code


Hope you can help me.

Thank you,