HI All,
Below VBs not running and error on Line 5.. What did i do wrong?
dim commandLine, WshShell
set wshshell = wscript.createobject("wscript.shell")
wshshell.currentdirectory = "C:\Program Files\uvnc bvba\UltraVnc"
commandLine = "%ProgramFiles%\uvnc bvba\UltraVnc\MSLogonACL.exe" /i /a "\\domain.com\VNC\vnc.txt"
Set WshShell = CreateObject("WScript.Shell")
Call WshShell.Run (commandLine,8,false)
set WshShell=Nothing
================================PS=================
can this run as below?
Execute-Process -Path "%ProgramFiles%\\uvnc bvba\UltraVnc\MSLogonACL.exe" -Parameters /i /o "\\domain.com\VNC\vnc.txt"
or
Invoke-Expression "& " "C:\Program Files\uvnc bvba\UltraVnc\MSLogonACL.exe'" -Parameters "/i /o \\domain.com\VNC\vnc.txt"
As