We have created two partitions in removable drive(USB). One of the partition is active and the other is hidden. We are trying to acess the hidden partition in Win PE 3.0 environment using WMI

We have created two partitions in removable drive(USB). One of the partition is active and the other is hidden. We are trying to access the hidden partition in Win PE 3.0 environment using WMI. VBScript code snippet used to detect the partitions is given
below:- 
SetobjWMIService = GetObject("winmgmts:"_&
"{impersonationLevel=impersonate}!\\"&
strComputer & "\root\cimv2")
SetcolDisks = objWMIService.ExecQuery
Select * from Win32_LogicalDisk")
It will return the partition which is active but fails to list the partition which is hidden. The same piece of code was supported on WinPE 2.0

I am giving the complete code, may be you are able to understand better. We are using Win32_LogicalDisk to retrieves the complete information of all the drives (like C:, D:) including removable drives. 
Function
LocalDriveFound()
    strComputer =
SetobjWMIService = GetObject("winmgmts:"_
"{impersonationLevel=impersonate}!\\"&
strComputer & "\root\cimv2")
SetcolDisks = objWMIService.ExecQuery
"Select * from Win32_LogicalDisk")
ForEachDiskDrive
IncolDisks
        DriveLetter = Left(DiskDrive.Name,1)
        DriveType = DiskDrive.DriveType
        VolumeName = DiskDrive.VolumeName
        WScript.echo Driveletter &
"|"& Drivetype &
"|"&VolumeName
SelectCaseDriveType
Case2 ,3  
'Fixed or removable
If(VolumeName=USBVolumeName)
Then
If(DriveLetter<>
"Z")
Then
                    ChangeDriveLetterWithMountvol DriveLetter,
"Z"
EndIf
                bIsLocal=
True
EndIf 
If(VolumeName=USBRootName)
Then
If(DriveLetter<>
"Y")
Then
                    ChangeDriveLetterWithMountvol DriveLetter,
"Y"
EndIf
                bIsLocal=
True
EndIf 
CaseElse
EndSelect
Next
SetDrives =
Nothing
SetFileSystemObject =
Nothing
End
Function

Similar Messages

  • I have created an editable pdf to assess our students at the end of each subject.  It is being used by individuals with Reader only.  The document was originally created in Word.  I have reader enabled it before sending it out.  The student has two attemp

    I have an editable pdf (created using Acrobat 9).Is it possible to lock an editable pdf using Reader, but then unlock the same pdf (in Reader) at some stage in the future?  The users of this pdf will only have Reader available to them.  Once the editable fields are complete, I'd like them to be able to lock and unlock the document as it is being used - and depending on who is looking at the pdf.  Is this possible and if so how?  My understanding is that this would only be possible using Acrobat, but there might be a way around this?

  • Create two partitions on one hard drive?

    Hi
    I have an external hard drive I want to use for both PC and Mac.
    Can somebody please help me on how to create two partitions on the hard drive, one with Mac extended format and one with NTFS format.
    Many thanks

    pbmarcano wrote:
    Alternatively (my usual approach): Format the Windows partition to FAT then when you bring it to a windows machine, format the partition to NTFS.
    No need to format to NTFS, you can convert to NTFS with no destruction of data.
    Just format to FAT in Disk Utility, then when accessing the FAT drive in WIndows:
    *To convert a volume to NTFS from the command prompt*
    http://technet.microsoft.com/en-us/library/bb456984.aspx
    Open Command Prompt. Click Start, point to All Programs, point to Accessories, and then click Command Prompt.
    *In the command prompt window, type: convert drive_letter: /fs:ntfs*
    For example, typing convert D: /fs:ntfs would format drive D: with the ntfs format. You can convert FAT or FAT32 volumes to NTFS with this command.

  • In Aperture 3, how can I easily move entire projects out of my main Ap Library into other libraries?  My Ap library is running super slow because it's overloaded l so I have created two new libraries, but can't seem to move the projects into them

    In Aperture 3, how can I easily move entire projects out of my main Ap Library into other libraries?  My Ap library is running super slow because it's overloaded, so I have created two new libraries, but can't seem to move the projects into them?

    Hello Annabel,
    To move entire projects export them as Aperture Libraries, and then import those Libraries into the other Aperture Library:
    Select the Project in the Inspector, then
    File -> Export -> Project as Library
    In the other Library do:
    File -> Import  -> Library/ Project
    But I am not quite convinced, that the size of your current Aperture Library is responsible for the slowness of Aperture - Aperture is designed to cope with huge libraries.
    You may want to post your hardware setup and details of your library, and some of the hardware experts here may help you to find the reason for the slowness.
    A huge library should only be a problem, if the projects are too big, and if you have many, many smart albums at the root level of your library.
    So keep the projects small, and try to move some of your smart albums to lower levels in your folder structure (then Aperture does not need to scan all of your images to build the smart album).
    Other reasons for Aperture's slowness may be, e.g.
    An overfull system drive and/or external drive (keep at least 20% of your drives empty)
    lack of RAM
    a corrupted Aperture Library, that needs repairing
    Have you checked those options, before you split your library? It would be a pity to split it, for you would loose the ability to browse all parts at the same time, to use all your images in the Media Browser, etc.
    Regards
    Léonie

  • I have created two servers in my "Mail"

    I have created two servers in my "Mail" and need to eliminate one of them, as I need to select the proper one, each time I send an email. I don't know how to do that. This is the message I get;
    "The servers marked with alert icons are in conflict and cannot be saved. No two servers may share the same address and authentication settings. Please resolve the conflicts and try again"
    How do I correct this?

    Go to the Mail/Preferences/Accounts/Outgoing Mail Server.
    Click on the drop-down list and choose "Edit Server List"
    This should bring up a window with a list showing the two identical servers.
    If you see two servers in the list that look the same, click on one of them and then click on the - (minus) button below the list to remove the server you've chosen to get rid of.
    Depending on how the settings work out, you may need to go back and select the email account you want to work with and then choose the remaining server for the account to use to send mail (if it isn't already shown in the list).

  • After formatting and creating two partitions on my external HD, why is Time Machine taking 25x longer to perform a backup?

    Hi.
    I bought a macbookpro 13"retina, new two weeks ago and a G-tech 1TB external drive from the apple store. It's my first mac.
    I performed a backup, using Time Machine, which copied 18 GB onto he 1TB external HD in around 20 minutes.
    After a little more reading, I realised I should use Disk utility to partition the 1TB external G-tech drive into a 250gb partition, and a 750gb partition.
    [My MBP has a 250gb flash HD. I'll use the other 750gb for storage of my other files, like photos, music etc.]
    So, using disk utility I formatted the 1TB exernal drive, then created two partitions.
    However, I've started backing up my data using time machine again, onto the 250gb partition, on the external drive, and its now taking 5 hours to copy the 19.81GB
    So why is it taking 25x longer than the first time I did it? [First time it took 20 minutes]
    Thanks

    Since performing the fist backup, a couple of days ago, which took twenty minutes, and the second backup, which is taking 5 hours, I installed MS office for Mac 2011 and Silverlight.
    Dont know if thats responsible?

  • I have created two related books in Lightroom 5 (Volumes 1 and 2) but my balance of page numbers is off. So I'd like to take some pages out of one book (complete with images) and paste them into the other. Is this possible?

    I have created two related Blurb books in Lightroom 5 (Volumes 1 and 2) but my balance of page numbers is off. So I'd like to take some pages out of one book (complete with images) and paste them into the other. Is this possible?

    Can you zip up a few of your GoPro images, upload them to dropbox.com and post a share link, here, so others can experiment with them, or do you mean this issue is global to all camera models?

  • I have created an iTunes account on my current computer for my daughters ipod touch and tried connecting my ipod nano and it won't sync and says that it is associated with another iTunes library so how do I merge the two libraries?

    I have created an iTunes account on my current computer for my daughters ipod touch and tried connecting my ipod nano and it won't sync and says that it is associated with another iTunes library so how do I merge the two libraries?

    You do not merge libraries.
    iDevices sync to one and only one computer.
    If you want a single library, you manually move the content from one library to another... all content will still be associated with the Apple ID it was acquired with.

  • Unable to publish a single site when I have created two

    Using iWeb 08, I have created two separate sites. When I select one and attempt to publish to a folder, both sites are included. I cannot find a way to publish one site only. Am I overlooking the obvious or is iWeb so impressed with my work that it insists that both need to be seen?

    I ran into this same problem. I created one for my personal site and then another for my hobbies. The only solution that I found for this is to create a new user, in my case I just called it my website's name, and then publish the website to that user's site file. It's a workaround really, not a solution. But I have not found another way to do it. Hope it helps.

  • I have created two tables for my new  report under one transport request.

    Unwanted table transported
    I have created two tables for my new  report under one transport request.
    But I only need one table and the second table I was supposed to delete.
    However by mistake, with out deleting the second tableu2026 the transport request is released and moved to quality system.
    how to handle this issue. 
    I am not sure any additional changes for this program.
    Could you please suggest me an idea.
    Thanks in adv

    >
    sam kumar wrote:
    > Unwanted table transported
    > I have created two tables for my new  report under one transport request.
    > But I only need one table and the second table I was supposed to delete.
    > However by mistake, with out deleting the second tableu2026 the transport request is released and moved to quality system.
    >
    > how to handle this issue. 
    >
    > I am not sure any additional changes for this program.
    > Could you please suggest me an idea.
    >
    > Thanks in adv
    Does one custom table more or less really matter?  If you really want delete it, delete the table in DEV which will put it into a new transport and get that transport moved to TEST.

  • HT4314 We have one appleid user account and have created two game center logins,  but can now only access one...any idea how to be able to access the other

    We have one appleid and have created two game center login names under that one apple id.  now we can only access one of the logins.  does anyone know how to get to the other account

    This is to avoid piracy. What could happen is, people could buy music, and give it away for free online. Usually it is then you buy a complete album off iTunes that it will only be available on one device. It is tied to that account, and the device must be registered to that account to listen to it.

  • I have created some partitions on my mac. it can not be restored how can I restore it please?

    I have created some partitions on my mac. it can not be restored how can I restore it please?

    I hope you have a good backup.
    https://discussions.apple.com/message/18877374#18877374
    https://discussions.apple.com/message/16447467#16447467
    https://discussions.apple.com/thread/3646296

  • I have just owned a macbook pro and trying to learn things since i have all along used windows laptop. My first question is : when there are two files i am working together, one above the other on screen, how you switch over between the two with key ?

    I have just owned a macbook pro and trying to learn things since i have all along used windows laptop. My first question is : when there are two files i am working together, one above the other on screen, how you switch over between the two with key ?

    Hi...
    Mac OS X keyboard shortcuts
    Control-F4
    Move focus to the active (or next) window
    Shift-Control-F4
    Move focus to the previously active window
    By the way...  since you are new to Mac, click a clear space on your Desktop. You should see "Finder" top left corner of the screen in the menu bar.
    Click Help then click Help Center
    As an example type in    keyboard shortcuts
    You can use the Help menu for almost any application on your Mac.
    Apple - Find Out How - Mac Basics
    For held switching from PC to Mac >  Apple - Support - Switch 101

  • I have purchased two audiobooks from iTunes. They play perfectly for about 13 minutes and then abruptly stop. I have purchased other audiobooks and have not had a problem. Please, any ideas on why this is happening and what can I do to fix it.  Thanks!

    I have purchased two audiobooks from iTunes. They play perfectly for about 13 minutes and then abruptly stop. I have purchased other audiobooks and have not had a problem. Please, any ideas on why this is happening and what can I do to fix it.  Thanks!

    As long as you use your computer like King Penguin stated for Report a Problem, you should be fine. If you can't get to your computer, are not using your computer, or your computer is not longer in the mix since you have been using your iPad, email iTunes support about the problem.
    http://www.apple.com/emea/support/itunes/contact.html

  • Can i use my ext hard drive USB 2 on the the new macbook pro laptops with a USB3

    can i use my ext hard drive USB 2 on the the new macbook pro laptops with a USB3

    stephan ach wrote:
    but i read that there are lots of problems with the new macbook pro. i  have all my data on ext. la cie hard drive. i wont have a problem reading them?
    What problems specifically? If you have a problem you should start your own thread and explain the problem in detail.
    External USB devices including hard drives and DVD work fine on the new Macbook Pros.

Maybe you are looking for

  • Compressor opens but no windows appear, then hangs

    hi, i just used compressor, went back into it for a second job and the compressor load pop up appeared and the menu appeared at the top but none of the windows appear, happens on opening from the menu or from sending a clip to open in compressor. nev

  • Inserting pictures in Crystal Reports10

    In Crystal Reports 10, I have a number of boolean value fields (from .NET dataset). For each field I have two pictures (OLE objects), one ticked checkbox and one empty checkbox. Depending on the boolean value of the field, I suppress the appropriate

  • Adobe 9 Pro Collaborative Review Outlook E-Mail Issue

    I have been trying repeatedly to hold a collaborative review of a document to no avail.  I can set up the review and send it to one person.  I then go in to add other reviewers - add them send by e-mail but they never get sent.  My sent box does not

  • Switching from PC to MAC -Will I have a problem with Lightroom?

    I am getting ready to switch from a PC to a MAC ( I think).  I know I will need new Lightroom software.  Other than that, will I have any problems.  Will it read my files automatically?  Sepcifically, will it maintain my key words, ratings, metadata,

  • Need Schedule Lines for the External Processed Operation

    Dear All, In My routing, I have totally 10 operations. 2 of which are externally processed Operations. When i create Production Order, the system creates Purchase Requisitions for both the Operations. My client wants, Schedule lines to be created in