determining drive letter for windows partition for USMT offline folder scan
In our environment, we have some pc's with bitlocker enabled, and some without. When you boot into windows PE, you'll see that those with bitlocker enable show that the windows directory is installed on the "D" drive. Those without have windows installed to teh C drive. Is there a way to identify in winpe where windows is actually installed, then run the offlinewindir scanstate against the correct partition? My thought is that i would do quick directory exists script to determine where to run scanstate, but i wasnt' sure if there's somewhere else i can look to provide me with the correct information.
July 2nd, 2011 9:05am

once the "apply OS" step has finished, the drive letter will be in the variable OSDTargetSystemDrive .VBS script _____________________________________________________________ set env = CreateObject("Microsoft.SMS.TSEnvironment") wscript echo "driveletter = " & env("OSDTargetSystemDrive") ________________________________________________________ Will write the drive in the smsts.log file
Free Windows Admin Tool Kit Click here and download it now
July 2nd, 2011 9:23am

Michael, what about prior to the OS Applying? this is for an Offline Scanstate when i need the location of the windows directory
July 2nd, 2011 10:26am

To be honest I can't remember if the variable is present before OS apply, I can test it for you tomorrow, if you would like.. There are also some MDT created variables, pointing to the OS drive, but i can't remember which, but i can also find those for you tomorrow!Michael Petersen My Deployment Blog - http://blog.coretech.dk/mip
Free Windows Admin Tool Kit Click here and download it now
July 2nd, 2011 3:19pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics