大佬教程收集整理的这篇文章主要介绍了Windows 2008 R2 powershell术语“Get-Disk”无法识别为cmdlet的名称,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
Windows版本:Microsoft Windows Server 2008 R2 SP1 64b
Windows 2008 R2 powersHell术语“Get-Disk”无法识别为cmdlet的名称.我有PowersHell的第3版
Get-Disk : The term 'Get-Disk' is not recognized as the name of a cmdlet,function,script file,or operable program. check the spelling of the name,or if a path was included,verify that the path is correct and try again. At line:1 char:1 + Get-Disk + ~~~~~~~~ + CategoryInfo : ObjectNotFound: (Get-Disk:string) [],CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException
Name Value ---- ----- WsmanStackVersion 3.0 PSCompatibLeversions {1.0,2.0,3.0} serializationVersion 1.1.0.1 BuildVersion 6.2.9200.16398 PSVersion 3.0 CLRVersion 4.0.30319.1 PSRemoTingProtocolVersion 2.2
我还希望在Azure VM Server 2008 R2上使用Get-Disk命令,我安装的PowerSHell 3.0和Get-Disk仍然不可用,然后用Google搜索到此页面.
从这个Scripting Guy blog link开始,它提到了这一点
因此,如果您希望在Windows Server 2008 R2上使用Get-Disk,那么您无法做到.
相同的ScripTing Guy链接还提供了可以使用的相关DiskPart命令.
From an elevated sHell: DiskPart.exe List disk SELEct disk 1—disk 1 being the USB drive Clean Create partition priMary SELEct partition 1—partition 1 being the new partition Active Format FS=NTFS
以上是大佬教程为你收集整理的Windows 2008 R2 powershell术语“Get-Disk”无法识别为cmdlet的名称全部内容,希望文章能够帮你解决Windows 2008 R2 powershell术语“Get-Disk”无法识别为cmdlet的名称所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。