Powershell安全 [英] Powershell security

查看:78
本文介绍了Powershell安全的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不确定我是否在正确的论坛上发帖,但我创建了一个在Windows 7上运行良好的powershell脚本。该脚本执行一个应用程序。我试图在Windows 8.1,64位家庭版上实现它。

I'm not sure if I'm posting in the correct forum or not, but I have created a powershell script that runs fine on Windows 7. The script executes an application. I am trying to implement it on Windows 8.1, 64 bit home edition.

我的Windows用户帐户具有管理员权限。我已将执行策略更改为remotesigned,以我的Windows用户帐户登录。当我通过powershell命令行执行powershell脚本(以管理员身份运行)时,脚本工作
并执行应用程序。一切都很好。当我双击powershell脚本时,它会尝试运行但是错误,说明执行策略不允许执行脚本(Windows Defender关闭)。我需要做什么,使脚本
作为"我"运行,即使我已经将执行策略设置为remotesigned?

My Windows user account has Administrator rights. I have changed the execution policy to remotesigned, logged in as my Windows user account. When I execute the powershell script through the powershell command line, running as administrator, the script works and executes the application. All is good. When I double click the powershell script, it tries to run but errs, stating that the execution policy does not allow the execution of the script (Windows Defender is off). What do I have to do, to make the script run as "me", even though i've already set the execution policy as remotesigned?

谢谢,

man da bull

man da bull

推荐答案

您是否可以尝试将执行策略设置为安装在其中的powershell控制台你的64位机器。

Can you try to set execution policy to both the powershell console installed in your 64bit machine.

我的意思是你必须在32位的PowerShell控制台中设置执行策略 然后双击它试图以64位打开。让我们试一试。

I mean you must have set execution policy in 32 bit powershell console  and while double click its trying to open in 64 bit. Lets give a try.


这篇关于Powershell安全的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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