使用PowerShell检查默认操作系统 [英] Using PowerShell to check default operating system

查看:70
本文介绍了使用PowerShell检查默认操作系统的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用PowerShell检查计算机是否配置为双启动或从多个操作系统启动?

How does one use PowerShell to check whether a computer is configured to dual boot or boot off of more than one operating system?

我想我需要制作从PowerShell内部进行WMI调用以检查启动配置,但我不确定要查找什么或如何进行操作。 Bing和其他搜索引擎让我失望。

I'm thinking I need to make a WMI call from within PowerShell to check the boot configuration but I'm not certain of what to look for or how to go about it. Bing and other search engines are failing me.

我要检查的系统是Windows 7,2008 R2,2012 R2,可能还有Vista,XP和2003.

The systems I'll be checking are Windows 7, 2008 R2, 2012 R2, and possibly Vista, XP, and 2003.

有人可以帮忙吗?

推荐答案

Invoke-Command -Script {BCDEDIT} -Computer< some remote PC>

Invoke-Command -Script {BCDEDIT} -Computer <some remote PC>


这篇关于使用PowerShell检查默认操作系统的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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