简体   繁体   English

使用 RDP 登录时应用 GPO

[英]GPO apply when login using RDP

I'm actually working on a PowerShell script that enables or disable the Shutdown if the user connects by RDP, and it works perfectly.我实际上正在研究一个PowerShell 脚本,如果用户通过 RDP 连接,它会启用或禁用关机,并且它运行良好。

I want to make it a GPO , i go to User Configuration > Scripts but the only choices i got is Startup and Shutdown, but i want it to work when the user unlocks his account (for example, The user lock his account to go eat and when he come back, he just unlocks, the script run in the background and he goes back to work).我想让它成为GPO ,我 go 到用户配置 > 脚本,但我得到的唯一选择是启动和关闭,但我希望它在用户解锁他的帐户时工作(例如,用户将他的帐户锁定到 go 吃当他回来时,他只是解锁,脚本在后台运行,然后他回去工作)。

There is any way to do that?有什么办法吗?

Thanks for your help:)谢谢你的帮助:)

I finally found the solution, i just added a task in the Scheduled Tasks.我终于找到了解决方案,我只是在计划任务中添加了一个任务。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM