AcidCorps Posted January 28, 2008 Share Posted January 28, 2008 Not to long ago I was browsing the forums and found a topic but cannot find it again so sorry for asking a question already here. I'm trying to get computer information while running BartPE which if I remember correctly does not sure WMI so that makes it so I am unable to get the partition number of a drive. I remember someone suggested a third program that created a txt (or simular) file with the computer specs that could easly be read through auto it what I'm trying to do is simply get the partition number of the hard disks. Link to comment Share on other sites More sharing options...
weaponx Posted January 28, 2008 Share Posted January 28, 2008 You will probably use diskpart from the command line.diskpartselect disk 0list partitionYou will probably have to use a DiskPart script to execute these commands since they have to be done sequentially.diskpart /s scriptname.txt > result.txtSee here:http://technet2.microsoft.com/windowsserve...3.mspx?mfr=true Link to comment Share on other sites More sharing options...
AcidCorps Posted January 28, 2008 Author Share Posted January 28, 2008 Thank you Link to comment Share on other sites More sharing options...
AcidCorps Posted January 28, 2008 Author Share Posted January 28, 2008 I'm having a bit of trouble with this I can't get the diskpart to work for me, could you give me an example of what to type into the cmd in order to list the partitions? Link to comment Share on other sites More sharing options...
weaponx Posted January 28, 2008 Share Posted January 28, 2008 I posted an example that lists all partitions for disk 0. Link to comment Share on other sites More sharing options...
AcidCorps Posted January 29, 2008 Author Share Posted January 29, 2008 the example created this as the result:Microsoft DiskPart version 5.1.3565Copyright © 1999-2003 Microsoft Corporation.On computer: HOME-CD74260827Microsoft DiskPart version 5.1.3565ADD - Add a mirror to a simple volume.ACTIVE - Marks the current basic partition as an active boot partition.ASSIGN - Assign a drive letter or mount point to the selected volume.BREAK - Break a mirror set.CLEAN - Clear the configuration information, or all information, off the disk.CONVERT - Converts between different disk formats.CREATE - Create a volume or partition.DELETE - Delete an object.DETAIL - Provide details about an object.EXIT - Exit DiskPartEXTEND - Extend a volume.HELP - Prints a list of commands.IMPORT - Imports a disk group.LIST - Prints out a list of objects.INACTIVE - Marks the current basic partition as an inactive partition.ONLINE - Online a disk that is currently marked as offline.REM - Does nothing. Used to comment scripts.REMOVE - Remove a drive letter or mount point assignment.REPAIR - Repair a RAID-5 volume.RESCAN - Rescan the computer looking for disks and volumes.RETAIN - Place a retainer partition under a simple volume.SELECT - Move the focus to an object. 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