Hi there mates,
I need some help with VB Script. I'm trying to deploy
an application (.exe file) to over 100 users via GPO because I don't have the .msi package. The setup program located on \\share\fileserverSo, I need a script that checks if there's a folder on user's computer, if not, the script will run the application setup. If the folder exists the script closes.
I am appreciated for any help
Angus
Careful; I'm not sure if startup scripts or its child processes have the ability to spawn windows. Also, logon scripts might not have the required permissions to run an installer. You might just want to build an msi. That said:
If Not CreateObject("Scripting.FileSystemObject").FolderExists("a folder") Then _ CreateObject("WScript.Shell").Run """\\share\fileserver\application setup"""
this script is run when user logon, the program setup under admin right. is the script you post here work these critiria? Angus
the program setup under admin right.
I'm not sure what you're saying here. Does the installer supply its own administrative credentials?
I need help with a logon vb script. what it does the script will check if folder exist, if not, then it installs program on user's PC. the program installation require administrator privilege so that I am not sure the script need to include admin credential. any suggestion? Angus
There is no native way for VBScript/Batch script to run a local program using separate credentials. To do so, you would need the help of a third party utility.
Hi,
the logon script is running on AD/GPO, so I can deploy installing program for all users when they logon domain.Angus
Yes (14) | ![]() | |
No (14) | ![]() | |
I don't know (15) | ![]() |