简体   繁体   English

避免PowerShell脚本中的权限弹出窗口

[英]Avoiding permissions popups in PowerShell script

I have a PowerShell script that inadvertently triggers popups asking the user for permission. 我有一个PowerShell脚本,该脚本无意间触发了向用户询问权限的弹出窗口。 For example, in the code: 例如,在代码中:

$appt = $outlook.CreateItem("olAppointmentItem")
....
$appt.Send()

I have this PowerShell script running in a server that creates appointments, and the popups serve no purpose. 我在创建约会的服务器中运行此PowerShell脚本,并且弹出窗口没有作用。 How can I run my script without having Windows ask permission? 如何在没有Windows许可的情况下运行脚本?

FWIW, I found one, admittedly suboptimal, workaround for this problem. FWIW,我发现了一个解决此问题的方法,虽然它不是最理想的。 There is, almost unbelievably, but then again not really, a tool that clicks "yes" whenever a popup appears, the eponymous Click Yes . 还有就是,几乎令人难以置信,但随后又不是真的,点击“是”每当一个弹出窗口,同名的工具单击是

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

相关问题 权限的继承Powershell脚本 - Inheritance of Permissions Powershell Script 使用 Powershell 运行 a.bat 脚本时避免“不被识别为内部或外部命令” - Avoiding “is not recognized as an internal or external command” when running a .bat script with Powershell 由于权限,在 Powershell 脚本中使用 Set-Date 失败 - Using Set-Date in a Powershell script fails due to permissions Powershell脚本添加证书并绑定到IIS-权限问题 - Powershell script to add certificate and binding to IIS - permissions problems SET-ACL 文件夹权限未正确应用于我的 PowerShell 脚本 - SET-ACL folder permissions not applying correctly with my PowerShell script 如何在具有管理员权限的 Windows 任务计划程序中设置 Powershell 脚本? - How to setup a Powershell Script in Windows Task Scheduler with admin permissions? 列出特定Exchange数据库的所有(组)邮箱以及主要SMTP表示的所有权限的Powershell脚本 - Powershell script that lists all (group)mailboxes of a certain exchange Database and all permissions expressed by primary SMTP Powershell 脚本 - Powershell script for 使用PowerShell在NTFS Fileshare上设置权限 - Setting permissions on NTFS Fileshare with PowerShell Powershell ICACLS更改文件权限 - Powershell ICACLS to change permissions on a file
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM