我正在尝试让组策略为用户 OU 运行登录脚本。该脚本运行,但它创建要运行的 Shell 对象的部分在登录期间不会加载。如果我双击脚本,它会按预期工作 - 问题出在登录期间。
以下是脚本的内容(已清理):
Dim Response,URL,WshShell,
URL = "https://forms.office.com/Pages/ResponsePage.aspx?id=REDACTED"
Response = MsgBox("Have you completed your Daily Health Check survey today?", vbYesNo + vbQuestion + 4096,"Company Name Here")s
if Response = vbNo Then
Set WshShell = CreateObject("WScript.shell")
WshShell.run "CMD /C start """" /MAX /B ""C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"" " & URL, 0, False
End if