New
#1
Windows pops up dialog asking how to run VBS scripts on some PCs
I have a mixture of Windows to 1809 and 21H2 PCs. Upgrading all to 21H2.
I have created a scheduled task which runs a script called connect.vbs, which contains the following;
Which runs the login script. The sole purpose of the vbs script is to hide to dos box that otherwise shows if calling the login script directly.Code:Dim WinScriptHost Set WinScriptHost = CreateObject("WScript.Shell") WinScriptHost.Run "C:\Tools\login.cmd", 0 Set WinScriptHost = Nothing
On some PCs at boot up Windows will ask how I want to open the vbs file. I select the script processor and it runs the script. But instead of remembering that, it asks me on every start up. To make matters worse, it doesn't do it on all PCs. Some 1809, some 21H2... I can't find any common denominator.
.VBS is present on the pathext envrionment variable.
assoc .vbs shows;
How vbs files are executed seems correct too..Code:C:\Users\Tanya>assoc .vbs .vbs=VBSFile
wscript.exe exists in %systemroot%\system32Code:C:\Users\Tanya>ftype | find /I "VBS" VBSFile="%SystemRoot%\System32\WScript.exe" "%1" %*
Any ideas? Thanks