如何使用Powershell扩展音量? [英] How to extend volume using powershell?

查看:93
本文介绍了如何使用Powershell扩展音量?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在远程计算机上使用Powershell(我更喜欢WMI而不是Powershell远程处理)来扩展卷?

How to extend volume using powershell (I prefer WMI over powershell remoting) on remote computer ?

操作系统是Win XP sp3。

OS is win XP sp3.

推荐答案

我最终得到了像这样的东西:

I ended up with somethin like this:

Invoke-Command -ComputerName $compName -Credential $compCred -ScriptBlock {"rescan","select volume 2","extend" | diskpart}

如果有的话,我还在寻找更好的解决方案。

I'm still looking for better solution, if there is one.

这篇关于如何使用Powershell扩展音量?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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