wmi - How to extend volume using powershell? -


how extend volume using powershell (i prefer wmi on powershell remoting) on remote computer ?

os win xp sp3.

i ended somethin this:

invoke-command -computername $compname -credential $compcred -scriptblock {"rescan","select volume 2","extend" | diskpart} 

i'm still looking better solution, if there one.


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -