简体   繁体   中英

Will PowerShell 3 script run on Windows 7?

Will a PowerShell 3 script that contains PowerShell 3 cmdlets run on a vanilla installation of Windows 7 Professional or Enterprise? If not what are the minimum prerequisites required?

(Sorry, Powershell newbie)

Windows 7 from installation is with Powershell version 2.0.

For Powershell v. 3.0 you need Windows Management Framework 3.0 on a windows 7 sp1 and .net framework 4

As Christian notes in his answer : there are PowerShell V3 install for Windows Vista, 7, Server 2008 R2 and Server 2008.

But note:

  • To upgrade ISE (Integrated Scripting Environment) that feature must be enabled before applying the V3 install (this affects servers which default to no ISE).

  • If the script depends on cmdlets introduced by the Windows 8 or 2012 OS or its components (eg. Hyper-V's) these are not part of PowerShell V3 and are not added as part of the V3 upgrade.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM