Quantcast
Channel: Operations Manager - General forum
Viewing all articles
Browse latest Browse all 11941

Create Partition using MSFT_Disk

$
0
0

Hi,

I have installed Windows Server 2012 R2 Datacenter Evaluation, am trying to Create Partition and Format the disk using wmi classes with WSMAN soap call, while execute MSFT_DISK/CreatePartition soap always return : "A parameter is not valid for this type of partition. (41006)"
Please could you check my soap call formation method.

doubt:- is it possible CreatePartition and Format volume remotely ?

Please could any one share idea.

<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:w="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd">
  <s:Header>
    <a:To>http://xxx.xx.xx.xx:5985/wsman</a:To>
    <w:ResourceURI s:mustUnderstand="true">http://schemas.microsoft.com/wbem/wsman/1/wmi/root/Microsoft/Windows/Storage/MSFT_Disk</w:ResourceURI>
    <a:ReplyTo>
      <a:Address s:mustUnderstand="true">http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:Address>
    </a:ReplyTo>
    <a:Action s:mustUnderstand="true">http://schemas.microsoft.com/wbem/wsman/1/wmi/root/Microsoft/Windows/Storage/MSFT_Disk/CreatePartition</a:Action>
    <w:MaxEnvelopeSize s:mustUnderstand="true">153600</w:MaxEnvelopeSize>
   <a:MessageID>uuid:A06E63F0-4378-4EAF-9BAF-03E74F4E495E</a:MessageID>
   <w:Locale s:mustUnderstand="false" xml:lang="en-US"/>
   <w:OperationTimeout>PT60.000S</w:OperationTimeout>
  
  <w:SelectorSet>
      <w:Selector Name="ObjectId">\\?\scsi#disk&amp;ven_seagate&amp;prod_st2000nm0001#5&amp;15e91996&amp;0&amp;000900#{53f56307-b6bf-11d0-94f2-00a0c91efb8b}</w:Selector>
    </w:SelectorSet>
  </s:Header>
 <s:Body>
 <p:CreatePartition_INPUT xmlns:p="http://schemas.microsoft.com/wbem/wsman/1/wmi/root/Microsoft/Windows/Storage/MSFT_Disk">
      <p:AssignDriveLetter>True</p:AssignDriveLetter>
      <p:UseMaximumSize>False</p:UseMaximumSize>
      <p:IsActive>False</p:IsActive>
      <p:IsHidden>False</p:IsHidden>
      <p:GptType>ebd0a0a2-b9e5-4433-87c0-68b6b72699c7</p:GptType>
    </p:CreatePartition_INPUT>
  </s:Body>
</s:Envelope>

Regards

--venki--




Viewing all articles
Browse latest Browse all 11941

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>