Powershell:PSScheduledJob非pipe理员

有没有办法让非pipe理员使用PSScheduledJob模块? 例如,我尝试了没有pipe理员权限的Register-ScheduledJob,但是它返回“Access is Denied”错误。 我们知道我们可以通过改变PSSessionConfiguration来允许非pipe理员使用PSRemoting(如New-PSSession):

http://blogs.msdn.com/b/powershell/archive/2009/11/23/you-don-t-have-to-be-an-administrator-to-run-remote-powershell-commands.aspx

有没有办法做相同的调度工作? 我想允许非pipe理员安排工作和东西

你有没有尝试从他的TechNet博客Ben Shy的MS员工这个方便的提示?

http://blogs.technet.com/b/benshy/archive/2012/06/04/using-a-powershell-script-to-run-as-a-different-user-amp-elevate-the-process。 ASPX

您可以添加该会话中embedded的整个PSScheduled作业命令。

如果你不知道用户是如何得到这些信用的,那就是另外一回事了。

有两件事情,你可能需要不受限制的执行政策(我还没有testing过),你可能需要将你的信誉存储在某个地方(可能是不安全的)

我不知道你的networking或要求,所以不能build议:-0

你的

埃德

不要忘记投票有用,并标记回答,如果是的话!