dwmartin18 Posted August 26, 2005 Share Posted August 26, 2005 Ok, so I have been experiment with unattended installations lately and was wondering something. I almost always move "my documents" to another partition when installing so I can keep all my data and junk somewhat separate and would like to know if I can do this automatically during the installation.Any help would be greatly appreciated! Link to comment Share on other sites More sharing options...
InTheWayBoy Posted August 26, 2005 Share Posted August 26, 2005 I don't know exactly how, but that is controlled via a registry key...it's per user so you'll probably need to mess with the default profiles reg hive...here's the key:HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell FoldersIn that there are several items...all can be changed to a local drive or UNC. Even though it's called "My Documents" in the registry it's called "Personal"...you should be able to figure it all out, as they have the value listed so it's simple. Link to comment Share on other sites More sharing options...
warrior1109 Posted August 26, 2005 Share Posted August 26, 2005 Why not keep the important stuff, My Documents, Cookies, Favourites and any others you want permanently on say D:\ ? Copy these folders to the destination drive, then edit these registry keys to point the system to them;[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders][HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders][HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders]Once you have done that, restart the system, then, simply export those keys, and apply them during T12 (cmd). Hope that helps. Link to comment Share on other sites More sharing options...
ripken204 Posted August 26, 2005 Share Posted August 26, 2005 im guessing that you started this thread after reading mine http://www.msfn.org/board/index.php?showtopic=54325ill have to give that try, thx Link to comment Share on other sites More sharing options...
mls15000 Posted August 26, 2005 Share Posted August 26, 2005 I did this to my unattended setup:[GuiUnattended] ProfilesDir = "D:\Documents and Settings"This is in my unattend.txt and moves all of the "my docs, music, pics etc folders to D:\Documentys and Setings. You will of course have to have a D drive first, I create this using diskpart.You have to make a folder called D under your $oem$ folder, and a "Documents and Settings" folder under the D folder. I use this in an enterprise enviroment and works great for reloads. Link to comment Share on other sites More sharing options...
berrick Posted September 2, 2005 Share Posted September 2, 2005 CODE[GuiUnattended] ProfilesDir = "D:\Documents and Settings"This is the more technically correct way to move the My Docs folder as it will move everything to do with a users my documents including the more important stuff like the "local settings" folder which contains the application data (outlook *.pst files).I know you can move the mydocs folder and path for the default location of *.pst files but that has to be done per user from my experience (pls correct if i'm wrong) and is specific only to those folders. Also by default new users on those PC's will have their folders created in the M$ default path ie "c:\documents and settings" not the non standard (your chosen) path! Link to comment Share on other sites More sharing options...
Nepali Posted September 2, 2005 Share Posted September 2, 2005 [GuiUnattended] ProfilesDir = "D:\Documents and Settings"what will happen if i got only single drivec:\ only Link to comment Share on other sites More sharing options...
mls15000 Posted September 3, 2005 Share Posted September 3, 2005 what will happen if i got only single drivec:\ only<{POST_SNAPBACK}>The install will fail with an error. Can't remember the exact error. I use a batch process with bartpe to run diskpart. Create 2 partitions, c&d, format quick with ntfs then run winnt32.exe. I also have a D folder in my $OEM$ folder. In the D folder is a folder called Documets and Settings. During the install process, the Documents and Settings folder get copied to the D drive automatically. I do this to lessen the chance of errors created. Link to comment Share on other sites More sharing options...
ZileXa Posted September 6, 2005 Share Posted September 6, 2005 If you use WIHU, you can set it up that it will create the My docs etc on for example D:\ and that it will have the name of the User account.With wihu you can create users very easy at the end of your unattended install.I have it like this:The last item in my RunOnceEx is Wihu. It starts, now user accounts can be created. Next.Now some optional software can be selected. Finish.wihu performs the tasks and after reset, it is like this:Created 2 users: John and Maria:My documents = D:\JohnMy pictures = D:\John\My picturesMy dowloads = D:\John\My downloadsMy documents = D:\MariaMy pictures = D:\Maria\My picturesMy dowloads = D:\John\My downloadsMusic = D:\MusicMovies = D:\MoviesDownloads = D:\DownloadsShared Docs = D:\Shared DocumentsThe nice thing about Wihu, if you have created 2 partitions at the beginning of Windows Setup, only the partition on wich you install Windows is formatted, right?so the second one has to be formatted before these folders can be created!If wihu detects this situation, it will automatically format the partition.BTW: I don't recommend placing the Documents & Settings folder apart... since this folder contains a lot files that are totally not of any use if you would for example reinstall the C drive...so I just have the documentfolders above apart... and the "Documents & Settings" still on C, but without my docs or shared docs or so. Link to comment Share on other sites More sharing options...
outlook Posted September 19, 2005 Share Posted September 19, 2005 I have been using it. repair pst and outlook express problems more stable and secure than other programs. Link to comment Share on other sites More sharing options...
oldpro21 Posted September 27, 2005 Share Posted September 27, 2005 CODE[GuiUnattended] ProfilesDir = "D:\Documents and Settings"This is the more technically correct way to move the My Docs folder as it will move everything to do with a users my documents including the more important stuff like the "local settings" folder which contains the application data (outlook *.pst files).I know you can move the mydocs folder and path for the default location of *.pst files but that has to be done per user from my experience (pls correct if i'm wrong) and is specific only to those folders. Also by default new users on those PC's will have their folders created in the M$ default path ie "c:\documents and settings" not the non standard (your chosen) path!<{POST_SNAPBACK}>I found some info on micorsoft.com:http://support.microsoft.com/default.aspx?...kb;en-us;236621Can anyone tell me if the "d:\documents and settings" directory already exists, would it use what is there? That would be useful to me for a quick reload of c: drive without worrying about docs, .pst, favorites and such. B) Link to comment Share on other sites More sharing options...
nmX.Memnoch Posted September 28, 2005 Share Posted September 28, 2005 Can anyone tell me if the "d:\documents and settings" directory already exists, would it use what is there? That would be useful to me for a quick reload of c: drive without worrying about docs, .pst, favorites and such.No, it won't because the user account SIDs will be different. On the first install you would end up with, for example:D:\Documents and Settings\Administrator\D:\Documents and Settings\All Users\D:\Documents and Settings\Default User\D:\Documents and Settings\JoeBlowDomainUser\A reinstall would leave the original folder, however it will create a new profile for the user. You'll end up with things like:D:\Documents and Settings\Administrator.computername\D:\Documents and Settings\All Users.computername\D:\Documents and Settings\Default User.computername\D:\Documents and Settings\JoeBlowDomainUser.domainname\The profiles from the previous install will still be left intact...they just won't be used. This also happens if you do a reinstall on the C: drive without a reformat. Link to comment Share on other sites More sharing options...
DarkShadows Posted September 28, 2005 Share Posted September 28, 2005 I use a batch process with bartpe to run diskpart. Create 2 partitions, c&d, format quick with ntfs then run winnt32.exe. I also have a D folder in my $OEM$ folder. In the D folder is a folder called Documents and Settings. During the install process, the Documents and Settings folder get copied to the D drive automatically. I do this to lessen the chance of errors created.<{POST_SNAPBACK}>Q: Are you first booting to PE doing sysprep, diskpart, etc, then booting into your unattended install? Or are you booting into PE and then just executing your install from within PE? (I'm new to PE).Q: When you run your diskpart script from within PE to create your drives, do the drive letter assignments survive into your unattended installation?Q: Could you post your diskpart script as an example?Thanks in advance! Link to comment Share on other sites More sharing options...
mls15000 Posted September 28, 2005 Share Posted September 28, 2005 I just boot into PE and run an unattened install over the network. This is the batch file I call up...net use z: \\crp16237\windistdiskpart /s z:\diskpart.txtformat c: /q /fs:ntfs /v:System /y format D: /q /fs:ntfs /v:Data /yecho Starting XP install...set AnswerFile=\\CRP16237\windist\unattend2.txtset SetupFiles=\\CRP16237\windist\I386\\CRP16237\windist\I386\winnt32 /makelocalsource /tempdrive:C: /syspart:C: /s:%SetupFiles% /unattend:%AnswerFile%DiskPart.txt file..select disk 0Cleancreate partition primary size 8000 assign letter Cactiveselect disk 0create partition extended create partition logicalassign letter D Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now