Change active partition using a script? 
Author Message
 Change active partition using a script?

Does anyone know of a way to change the active partition of a disk ?
It has to be a script or an .exe, because it needs to come in a Windows2000
startup or shutdown script.


Thu, 03 Feb 2005 05:35:23 GMT  
 Change active partition using a script?

Quote:

> Does anyone know of a way to change the active partition of a disk ?
> It has to be a script or an .exe, because it needs to come in a Windows2000
> startup or shutdown script.

Hi

Accessing hardware directly under Win2k? I would be very surprised if you found
any utility that does this for you from inside Win2k.

Why not use a boot manager that supports this instead?

BootIt Next Generation ($29.95 USD)
http://www.bootitng.com/bootitng.html

Partition Boot Manager ($24.95 USD)
http://www.sadevelopment.com/

BootMagic (part of Partition Magic, $69.95 USD)
http://www.powerquest.com

--
torgeir



Thu, 03 Feb 2005 06:21:00 GMT  
 Change active partition using a script?

Quote:

> Accessing hardware directly under Win2k? I would be very surprised if you found
> any utility that does this for you from inside Win2k.

Hi

Hmm, I stand corrected. After some research I found that there exists one such
utility ;-) And of course, it is PowerQuest that makes it, who else ;-)  In the
Partition Magic package, you will find Pqboot32.exe that can set active partition
from command line. I have done extensive searching, but have not been able to find
any other product that can do this.

It doesn't seem like WMI is a solution either. The BootPartition property in the
Win32_DiskPartition class is read-only.

Win32_DiskPartition
http://msdn.microsoft.com/library/en-us/wmisdk/wmi/win32_diskpartitio...

Anyway, here is an API reference if you want to make something yourself:


Subject: Re: Set active partition programatically
Newsgroups: microsoft.public.win2000.file_system
Date: 2001-02-26 08:00:07 PST
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=%23n...

<qoute>
Which Ioctl are you using?
You can use IOCTL_DISK_SET_PARTITION_INFO, with PartitionInformation->BootIndicator
= TRUE to set a partition active. You need to clear BootIndicator for the other
partition.
</qoute>

--
torgeir



Thu, 03 Feb 2005 09:39:22 GMT  
 Change active partition using a script?
Thank you.
Pqboot32.exe is all I need then.
I tried the Win32API you mentioned, but I can't get it to work.


Quote:

> > Accessing hardware directly under Win2k? I would be very surprised if
you found
> > any utility that does this for you from inside Win2k.

> Hi

> Hmm, I stand corrected. After some research I found that there exists one
such
> utility ;-) And of course, it is PowerQuest that makes it, who else ;-)
In the
> Partition Magic package, you will find Pqboot32.exe that can set active
partition
> from command line. I have done extensive searching, but have not been able
to find
> any other product that can do this.

> It doesn't seem like WMI is a solution either. The BootPartition property
in the
> Win32_DiskPartition class is read-only.

> Win32_DiskPartition
> http://msdn.microsoft.com/library/en-us/wmisdk/wmi/win32_diskpartitio...

> Anyway, here is an API reference if you want to make something yourself:


> Subject: Re: Set active partition programatically
> Newsgroups: microsoft.public.win2000.file_system
> Date: 2001-02-26 08:00:07 PST

http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=%23n...
HA.1880%40tkmsftngp03
Quote:

> <qoute>
> Which Ioctl are you using?
> You can use IOCTL_DISK_SET_PARTITION_INFO, with

PartitionInformation->BootIndicator

- Show quoted text -

Quote:
> = TRUE to set a partition active. You need to clear BootIndicator for the
other
> partition.
> </qoute>

> --
> torgeir



Thu, 03 Feb 2005 17:40:31 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. changing th active partition

2. Set Active Partition with Scripts?

3. Set Active Partition with Scripts?

4. Change partition with script

5. Set Active Partition with VBScript / WMI?

6. Set Active Partition with VBScript / WMI?

7. need vb script to change users home directory in on fell swoop (active directory)

8. accessing a File using disk and partition

9. Disk partition information displayed using VBScript

10. Using a script to clean Active Directory of unused or invalid accounts

11. Changing an element's style attribs using script

12. How can I change nework drive label using script

 

 
Powered by phpBB® Forum Software