问题描述
机器在自动化脚本运行期间被锁定,这是因为不同脚本之间存在很长的间隔(出于某些原因需要这样做).我想避免这种自动锁定功能.问题是,根据安全策略,我们无法从控制面板禁用此功能.有没有其他办法让系统保持解锁状态?
machine get locked during the automation script run-time , this is because there is a long interval between different scripts that(this is required for some reasons) . I want to avoid this auto locking feature. The problem is, as per security policies we cannot disable this feature from control panel. Is there any other way to keep the system unlocked?
推荐答案
我认为您可以通过定期发送按键来停止锁定,因此我建议您查看 WScript.SendKeys.然后将其放入带有睡眠的循环中,使其定期发送.
I'd think that you could halt the locking by sending a keypress at regular intervals, so I'd suggest looking at WScript.SendKeys. Then put that in a loop with a sleep to make it send it regularly.
请注意您发送的密钥,以免影响其他任何东西.
Just be careful about what key you're sending so you don't affect anything else though.
这篇关于如何使用VBscript防止XP机器的自动锁定功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!