Sign in to follow this  
Followers 0
AcidCorps

BartPE + AutoIt Help

6 posts in this topic

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.

Share this post


Link to post
Share on other sites



You will probably use diskpart from the command line.

diskpart

select disk 0

list partition

You will probably have to use a DiskPart script to execute these commands since they have to be done sequentially.

diskpart /s scriptname.txt > result.txt

See here:

http://technet2.microsoft.com/windowsserve...3.mspx?mfr=true

Share this post


Link to post
Share on other sites

Thank you

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

I posted an example that lists all partitions for disk 0.

Share this post


Link to post
Share on other sites

the example created this as the result:

Microsoft DiskPart version 5.1.3565

Copyright © 1999-2003 Microsoft Corporation.

On computer: HOME-CD74260827

Microsoft DiskPart version 5.1.3565

ADD - 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 DiskPart

EXTEND - 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.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0