0

I re-image one of my machines regularly; and have a script that I run after the OS install completes to configure my machine; such that it works how I like.

I happen to have my data on another drive...and I'd like to add code to my script to change the location of the Documents directory from "C:\Users\bryansh\Documents" to "D:\Users\bryansh\Documents".

Does anybody have any insight, before I fire up regmon and really roll up my sleeves?

Cœur
  • 37,241
  • 25
  • 195
  • 267
bryansh
  • 293
  • 2
  • 8

2 Answers2

1

I use reparse points http://www.hanselman.com/blog/MoreOnVistaReparsePoints.aspx to redirect My Documents.

Scott Hanselman
  • 17,712
  • 6
  • 74
  • 89
1

SHSetFolderPath Function should help, since this article mentions its use for folder redirection by the Group Policy API.

macbirdie
  • 16,086
  • 6
  • 47
  • 54