如何使用SMAPI(msft)为磁盘/分区设置Boot和Active标志 [英] How to set Boot and Active flag for a disk/partition using SMAPI(msft)

查看:183
本文介绍了如何使用SMAPI(msft)为磁盘/分区设置Boot和Active标志的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hi All,

我在设置"引导"时遇到问题磁盘标志和"活动"标志分区的标志。

I am facing problem with setting a "Boot" flag for a disk and "Active" flag for a partition.

使用磁盘部件实用程序很容易设置它们,但是当使用power-shell使用SMAPI时,我们没有选项来设置这些标志。

It's easy to set them using disk part utility, but when working with SMAPI using power-shell we don't' have an option to set these flags.

我能够使用SMAPI创建存储池,虚拟磁盘,分区和格式化,但这里缺少的最基本的事情是如何将任何指定的分区设置为活动状态。

I am able to create storage pools, virtual disk, partition and format them using SMAPI, but the very basic thing missing here is how to set any specified partition as active.

这不是一个合适的方法使用powershell命令后,磁盘部分和设置这些标志,

Its not an appropriate way to go to disk part and set these flags after using powershell commands,

任何人都可以帮助设置它们。

Can any one please help how to set them.

class MSFT_Disk
{Boolean IsBoot;

class MSFT_Disk { Boolean IsBoot;


class MSFT_Partition
{ Boolean IsBoot;
  Boolean IsActive;


谢谢

推荐答案

嗨Mahendra,

Hi Mahendra,

欢迎来到MSDN论坛!

Welcome to MSDN forum!

根据你的描述,我建议你
参考本文

According to your description, I advise you to refer this article.

IsActive 仅有效当磁盘的 PartitionStyle 属性为
MBR NULL

IsActive is only valid when the disk's PartitionStyle property is MBR and will be NULL for all other partition styles.

问候!


这篇关于如何使用SMAPI(msft)为磁盘/分区设置Boot和Active标志的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆