Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是powershell的新手,所以一步一步的指南会有所帮助。每次用户登录时,我都需要通过组策略运行 powershell 脚本。这是为了注册定期更改的 DLL。我怎么能在没有提示用户的情况下做到这一点
你得到什么提示?您如何在登录过程中运行脚本?
我在批处理脚本中使用以下内容运行了 powershell 脚本
powershell.exe -ExecutionPolicy Bypass -file ".\script.ps1"