简体   繁体   English

如果我“不限制”本地计算机的执行策略,潜在的威胁是什么?

[英]What is the potential threat if I "Unrestricted' the Execution Policy for Local Machine?

I installed oh-my-posh but the profile script for PowerShell was not working correctly.我安装了 oh-my-posh,但 PowerShell 的配置文件脚本无法正常工作。 I found out PowerShell execution policy is restricted by default.我发现默认情况下限制了 PowerShell 执行策略。 I have changed the setting following Microsoft's About Execution Policy page.我在 Microsoft 的关于执行策略页面之后更改了设置。

What is the security threat of unrestricted execution?无限制执行的安全威胁是什么?

The default is remotesigned now anyway.无论如何,默认值现在是远程签名的。 But anyone can override it by running "powershell -executionpolicy bypass".但是任何人都可以通过运行“powershell -executionpolicy bypass”来覆盖它。 The purpose is to stop unknowingly running a PowerShell script, say from an email attachment, like the good old days of getting vbscripts in email.目的是停止在不知不觉中运行 PowerShell 脚本,例如 email 附件,就像在 email 中获取 vbscripts 的美好时光一样。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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