Random thoughts of a System Center Admin...

Manage it, yeah I can do that...

Move Removable Drives up the Alphabet during Operating System Deployment

A while back I was presented with the following problem during a Operating System Deployment Project.  If a computer had a multi-card reader it would assign itself to the following 7 drives:

  • E:\
  • F:\
  • G:\
  • H:\
  • I:\
  • J:\
  • K:\

This wasn’t so much a problem, except that the Drives H:\, I:\, J:\ & K:\ were used for Network locations and as a result those drives did not map via the logon script.  So I had to move the Multi-Card reader off those drives.

It was decided that we would move the whole lot and not just the ones that were conflicting as this would enable us to create a standard deployment strategy.

So I wrote a script that would move all removable drives off the lower level drive letters and move them up the alphabet to a section that wasn’t quite so populated.

I then added this script to a SCCM Package and deployed it through the Task Sequence.  When the machine was built the Multi-Card reader would start at “O:\” and not “E:\”.

Simple solution, works very well.  Hopefully someone else will find some value in this.

 

2 Comments

  1. Hi Chris,
    Your script looks very good, excelent JOB.

    Could You help me With the runing the script ?
    I have tried to use/run but script ended with error about line 53. When I try to comment this line script doesn’t finish with error but writed to Log file >
    15:56:32 Need to relocate drive D:
    15:56:32 All Drives allocated, failed to move drive
    15:56:32 Need to relocate drive E:
    15:56:32 All Drives allocated, failed to move drive
    15:56:32 Need to relocate drive F:
    15:56:32 All Drives allocated, failed to move drive
    15:56:32 Need to relocate drive G:
    15:56:32 All Drives allocated, failed to move drive

    I’m not a specialist about vbs code 🙁 please help

    Walda

Leave a Reply

Your email address will not be published.

*

%d bloggers like this: