Gregory Candido Posted September 23, 2022 Posted September 23, 2022 (edited) I create a PS script that won't run on my workstation, nothing happens. After investigation the script download the EXE file but the installation next runs or executes. Not sure if this is permission issue or a scripting error? Please help me. Below is my current script  # Silent Install Dropbox # Download URL: https://vbc-downloads.vonage.com/win/VonageBusinessSetup.exe # Path for the workdir $workdir = "c:\temp\Vonage" # Check if work directory exists if not create it If (Test-Path -Path $workdir -PathType Container) { Write-Host "$workdir already exists" -ForegroundColor Red} ELSE { New-Item -Path $workdir  -ItemType directory } # Download the installer $source = "https://vbc-downloads.vonage.com/win/VonageBusinessSetup.exe" $destination = "$workdir\VonageBusinessSetup.exe" Invoke-WebRequest $source -OutFile $destination # Wait 60 Seconds for the installer to download Start-Sleep -s 60 # Start the installation Start-Process -FilePath "$workdir\VonageBusinessSetup.exe" -ArgumentList "/S" # Wait XX Seconds for the installation to finish Start-Sleep -s 60  Edited September 23, 2022 by Gregory Candido Jamie Taylor 1
Jamie Taylor Posted September 29, 2022 Posted September 29, 2022 Hey, I have raised a support ticket for your query on the script. Our team will assist you regarding the same.Â
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now