Computing Staff
  • 1

Deploy App Using Vbscript Via GPO

  • 1

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\fileserver

So, 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

Share

1 Answer

  1. 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"""

    • 0