Jump to content

cahonis

Member
  • Posts

    1
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United Kingdom

Everything posted by cahonis

  1. Hi, Forgive my ignorance but I'm new to VBS and was hoping someone might be able to tell me where I'm going wrong with the below portion of a script I'm writing: Const HKEY_LOCAL_MACHINE = &H80000002 'Variables strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set WshShell = WScript.CreateObject("WScript.Shell") WshShell.Run """\\closepf.local\dfs\packages\JAVA\epal.exe"" ""/c:ou=JRE,ou=EPAL Groups,ou=Exempt Users and Groups,ou=Closepf Users"" ""\\closepf.local\dfs\packages\JAVA\jre-6u10.exe"" & "/s /v/qn IEXPLORER=1 REBOOT=Suppress""" The script runs EPAL to launch an install of Java Runtime Environment onto users PCs that do not have admin rights. The syntax is correct (without the required VBS quotes) because I can run it from either a command window or Start-Run but I cannot get it to execute as a VBS script, I get an expected end of statement error on line 8, column 198. Any help would be much appreciated.
×
×
  • Create New...