Jump to content

BartPE + AutoIt Help


Recommended Posts

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

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

Link to comment
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.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...