asco
(Fresh Scripter)
2008-09-04 11:03 AM
Change drive letter

hi all. Im haveing some problems with drive letter. i have som machines there have card reader, and the card reader takes the drive letter H. But all my users home folder is also H, so the home folder does not get maped. Is there any why kixtart can change the drive letter on the card reader at login? Hope you can hel me here! thx

Mart
(KiX Supporter)
2008-09-04 11:46 AM
Re: Change drive letter

There are some scripts around that are able to do this but they do not work for me. Don't know why but all I get are errors and nothing gets changed. There is also some talk about XP not supporting this kind of actions.

But .......... don’t throw the towel and start crying because there is an other option.

Microsoft has a small application that you can use to change drive letters.

A Description of the Diskpart Command-Line Utility
Download DiskPart.exe from MS website (requires genuine Windows check)

A small overview of the steps to take.
I followed the exact same steps and it works great. This can easily be done from a script.
1. parse the output of DISKPART's "LIST VOLUME" command
2. locate the drive you want to change from the list and determine its Volume ID
3. SELECT that volume ID
4. REMOVE its existing drive letter
5. ASSIGN MOUNT=<new drive letter>: to give it the new drive letter


Richard H.Administrator
(KiX Supporter)
2008-09-04 01:20 PM
Re: Change drive letter

I use this technique to move the CDROM drive on my automated Citrix server builds.

It works very well.


Richie19Rich77
(Seasoned Scripter)
2008-09-12 11:22 PM
Re: Change drive letter

We have just do the same thing when we found a encrypted usb key conflicted with the cdrom drive letter.

 Code:
;Main Part Of Script
Shell 'C:\WINDOWS\System32\Diskpart.EXE /s "'+$ScriptPath+'\Data\Reassign CD Drive Letter\'+$Version+'\CDROM.s"'


CDROM.S File
 Code:
SELECT Volume 0
Assign Letter=Z
Exit


Hope this helps.


NTDOCAdministrator
(KiX Master)
2008-09-13 07:07 AM
Re: Change drive letter

You would think that MS would allow some interaction from scripting to manage this correctly. This is another task I've recently wanted to do. I'll use it if I have to, but will also look for a proper method that works with scripting.

Arend_
(MM club member)
2008-09-15 12:47 PM
Re: Change drive letter

Well there are good and bad card readers, the bad ones take up drive letters from the get go. The good ones only take a drive letter when a card is inserted. I don't know if this can be set manually....

dynadrate
(Fresh Scripter)
2008-09-19 10:49 AM
Re: Change drive letter

You might take a look at USBDLM
This programm solves other issues with USB drive letters, too.
No start script required.
Costs money if you are a company.


NTDOCAdministrator
(KiX Master)
2008-09-19 06:14 PM
Re: Change drive letter

Thanks dynadrate but for:

Site Licence 2400.00 USD
World-Wide Licence 9600.00 USD


I think that is part of the reason most of us do scripting as it is FREE