Solved ScreenConnect download file from script
-
I have a bunch of users that are out of the office and I need to update their VPN client. If they had a connection established, I could put the new client on the server and then issue commands in the command window to install the new one. Can anyone suggest a way to download the files (a .msi file and .cer file) from something like my web server so I can run them locally? Is there a way to download stuff from the SC toolbox without being interactive?
-
Use PowerShell in the command window of ScreenConnect.
This will download the ML logo from Imgur to the root of C.
#!ps #timeout=300000 $url = "https://i.imgur.com/L7kwgRN.png" $output = "C:\L7kwgRN.png" Invoke-WebRequest -Uri $url -OutFile $output
-
If your installer can run in a silent mode, you could issue those commands also.
-
This all assumes that you have the access client installed with the default permissions (aka admin rights) on the computers.
-
Thanks @JaredBusch That worked great for Windows 10. I had to use some other powershell commands for the Windows 7 computers.
#!ps #timeout=60000 $url = "http://mywebsite.com/sonicwall.cer" $path = "C:\temp\sonicwall.cer" # param([string]$url, [string]$path) if(!(Split-Path -parent $path) -or !(Test-Path -pathType Container (Split-Path -parent $path))) { $targetFile = Join-Path $pwd (Split-Path -leaf $path) } (New-Object Net.WebClient).DownloadFile($url, $path) $path $url = "http://mywebsite.com/NetExtender.8.6.260.msi" $path = "C:\temp\NetExtender.8.6.260.msi" # param([string]$url, [string]$path) if(!(Split-Path -parent $path) -or !(Test-Path -pathType Container (Split-Path -parent $path))) { $targetFile = Join-Path $pwd (Split-Path -leaf $path) } (New-Object Net.WebClient).DownloadFile($url, $path) $path certutil -addstore TrustedPublisher c:\temp\sonicwall.cer Msiexec /i C:\temp\NetExtender.8.6.260.msi /q /qn /lv!*x c:\temp\netextender.log ALLUSERS=2
-
@mike-davis said in ScreenConnect download file from script:
Thanks @JaredBusch That worked great for Windows 10. I had to use some other powershell commands for the Windows 7 computers.
#!ps #timeout=60000 $url = "http://mywebsite.com/sonicwall.cer" $path = "C:\temp\sonicwall.cer" # param([string]$url, [string]$path) if(!(Split-Path -parent $path) -or !(Test-Path -pathType Container (Split-Path -parent $path))) { $targetFile = Join-Path $pwd (Split-Path -leaf $path) } (New-Object Net.WebClient).DownloadFile($url, $path) $path $url = "http://mywebsite.com/NetExtender.8.6.260.msi" $path = "C:\temp\NetExtender.8.6.260.msi" # param([string]$url, [string]$path) if(!(Split-Path -parent $path) -or !(Test-Path -pathType Container (Split-Path -parent $path))) { $targetFile = Join-Path $pwd (Split-Path -leaf $path) } (New-Object Net.WebClient).DownloadFile($url, $path) $path certutil -addstore TrustedPublisher c:\temp\sonicwall.cer Msiexec /i C:\temp\NetExtender.8.6.260.msi /q /qn /lv!*x c:\temp\netextender.log ALLUSERS=2
Interesting, you are trying to install the SSl VPn clienr for Sonicwall on Windows 10, I have had mixed results with it on Windows 10, some on the Mobile Connect app or the application installer.
-
@dbeato What issues have you had? I have a new SonicWall going in and would like to avoid those issues if possible. It's one of those install it over night and it needs to work in the morning cut overs. Cut is scheduled for Thursday. We tested it last week with a Windows 10 and Windows 7 client.
-
@mike-davis said in ScreenConnect download file from script:
@dbeato What issues have you had? I have a new SonicWall going in and would like to avoid those issues if possible. It's one of those install it over night and it needs to work in the morning cut overs. Cut is scheduled for Thursday. We tested it last week with a Windows 10 and Windows 7 client.
Why are you deploying SonicWalls? what feature does it have that ER's don't that you need?
-
@dashrender said in ScreenConnect download file from script:
Why are you deploying SonicWalls? what feature does it have that ER's don't that you need?
- Grant money paid for it
- must have content filtering
-
@mike-davis said in ScreenConnect download file from script:
@dbeato What issues have you had? I have a new SonicWall going in and would like to avoid those issues if possible. It's one of those install it over night and it needs to work in the morning cut overs. Cut is scheduled for Thursday. We tested it last week with a Windows 10 and Windows 7 client.
It is mostly with Windows 10 where the client installs fine but when it comes to connect to the Sonicwall SSL VPN it does not work properly with it stating various error on connecting. Which then leads me to setup the Mobile Connect application.
-
@mike-davis said in ScreenConnect download file from script:
@dashrender said in ScreenConnect download file from script:
Why are you deploying SonicWalls? what feature does it have that ER's don't that you need?
- Grant money paid for it
- must have content filtering
Why does the content filtering have to happen at the gateway? DNS filtering is even easier, imo.
-
@travisdh1 said in ScreenConnect download file from script:
@mike-davis said in ScreenConnect download file from script:
@dashrender said in ScreenConnect download file from script:
Why are you deploying SonicWalls? what feature does it have that ER's don't that you need?
- Grant money paid for it
- must have content filtering
Why does the content filtering have to happen at the gateway? DNS filtering is even easier, imo.
I was wondering what grant money had to do with it - unless the grant specifically said it had to be SonicWall? or no other filtering solution was less?
-
@travisdh1 said in ScreenConnect download file from script:
@mike-davis said in ScreenConnect download file from script:
@dashrender said in ScreenConnect download file from script:
Why are you deploying SonicWalls? what feature does it have that ER's don't that you need?
- Grant money paid for it
- must have content filtering
Why does the content filtering have to happen at the gateway? DNS filtering is even easier, imo.
Yeah it seems weird to need it on the firewall itself
-
@dashrender said in ScreenConnect download file from script:
@travisdh1 said in ScreenConnect download file from script:
@mike-davis said in ScreenConnect download file from script:
@dashrender said in ScreenConnect download file from script:
Why are you deploying SonicWalls? what feature does it have that ER's don't that you need?
- Grant money paid for it
- must have content filtering
Why does the content filtering have to happen at the gateway? DNS filtering is even easier, imo.
I was wondering what grant money had to do with it - unless the grant specifically said it had to be SonicWall? or no other filtering solution was less?
¯\(ツ)/¯
-
@dashrender said in ScreenConnect download file from script:
I was wondering what grant money had to do with it - unless the grant specifically said it had to be SonicWall? or no other filtering solution was less?
Yes, the grant specifically specified a SonicWall. I can't use the money and put in an Edge Router with OpenDNS. They actually have auditors come out and see that the equipment is installed. It's so frustrating on so many levels as a tax payer...
-
@mike-davis said in ScreenConnect download file from script:
@dashrender said in ScreenConnect download file from script:
I was wondering what grant money had to do with it - unless the grant specifically said it had to be SonicWall? or no other filtering solution was less?
Yes, the grant specifically specified a SonicWall. I can't use the money and put in an Edge Router with OpenDNS. They actually have auditors come out and see that the equipment is installed. It's so frustrating on so many levels as a tax payer...
So who submitted (based on what recommendation) for a sonicwall when the grant was requested?
-
@mike-davis said in ScreenConnect download file from script:
@dashrender said in ScreenConnect download file from script:
I was wondering what grant money had to do with it - unless the grant specifically said it had to be SonicWall? or no other filtering solution was less?
Yes, the grant specifically specified a SonicWall. I can't use the money and put in an Edge Router with OpenDNS. They actually have auditors come out and see that the equipment is installed. It's so frustrating on so many levels as a tax payer...
That is gross. What do they have a state contract with Dell?
-
@wirestyle22 said in ScreenConnect download file from script:
@mike-davis said in ScreenConnect download file from script:
@dashrender said in ScreenConnect download file from script:
I was wondering what grant money had to do with it - unless the grant specifically said it had to be SonicWall? or no other filtering solution was less?
Yes, the grant specifically specified a SonicWall. I can't use the money and put in an Edge Router with OpenDNS. They actually have auditors come out and see that the equipment is installed. It's so frustrating on so many levels as a tax payer...
That is gross. What do they have a state contract with Dell?
Dell Sold SonicWall.
-
@dashrender said in ScreenConnect download file from script:
@wirestyle22 said in ScreenConnect download file from script:
@mike-davis said in ScreenConnect download file from script:
@dashrender said in ScreenConnect download file from script:
I was wondering what grant money had to do with it - unless the grant specifically said it had to be SonicWall? or no other filtering solution was less?
Yes, the grant specifically specified a SonicWall. I can't use the money and put in an Edge Router with OpenDNS. They actually have auditors come out and see that the equipment is installed. It's so frustrating on so many levels as a tax payer...
That is gross. What do they have a state contract with Dell?
Dell Sold SonicWall.
Didn't know that. Haven't used a Sonicwall in years. Who did they sell to?
Ah, independent.
-
@wirestyle22 said in ScreenConnect download file from script:
@dashrender said in ScreenConnect download file from script:
@wirestyle22 said in ScreenConnect download file from script:
@mike-davis said in ScreenConnect download file from script:
@dashrender said in ScreenConnect download file from script:
I was wondering what grant money had to do with it - unless the grant specifically said it had to be SonicWall? or no other filtering solution was less?
Yes, the grant specifically specified a SonicWall. I can't use the money and put in an Edge Router with OpenDNS. They actually have auditors come out and see that the equipment is installed. It's so frustrating on so many levels as a tax payer...
That is gross. What do they have a state contract with Dell?
Dell Sold SonicWall.
Didn't know that. Haven't used a Sonicwall in years. Who did they sell to?
Ah, independent.
Francisco Partners and Elliot Management.