无法启动脚本错误= 1314 [英] Cant start script error =1314

查看:109
本文介绍了无法启动脚本错误= 1314的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试使用管理员权限启动powershell脚本并获取错误代码= 1314.无法以用户Administrator身份启动程序。此管理员帐户具有作为服务登录的权限。权限以及访问和控制powershell脚本的所有权限。如果作为本地系统启动,该脚本可以正常工作。帐号。

感谢您的帮助

解决方案

您还应该允许您的系统执行PowerShell脚本。



一个典型的PowerShell命令是

 Set-ExecutionPolicy RemoteSigned 





要自己输入此命令,您需要在PowerShell下以交互方式执行此操作,并且应该以管理员身份启动PowerShell会话。



有关更多详细信息,请执行 Get-ExecutionPolicy 命令并阅读有关这些命令的帮助。另请参阅:

http://technet.microsoft.com/en-us /library/ee176949.aspx [ ^ ]。



新年快乐!



-SA

Tried to start a powershell script with Administrator rights and get error code = 1314. Failed to start program as user Administrator. This admin account has the "logon as service" privilege and all the rights to access and control the powershell script. The script works fine if launched as "local system" account.
Thanks for help

解决方案

You also should allow your system to execute PowerShell scripts.

A typical PowerShell command would be

Set-ExecutionPolicy RemoteSigned



To enter this command itself, you need to do it interactively under PowerShell, and you should start PowerShell session as administrator.

For further detail, execute Get-ExecutionPolicy command and read help on these commands. See also:
http://technet.microsoft.com/en-us/library/ee176949.aspx[^].

Happy New Year!

—SA


这篇关于无法启动脚本错误= 1314的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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