• Kiran Sharma posted an update in the group Group logo of PowerShellPowerShell 2 months, 1 week ago

    Hi Team, I’m using powershell to download a file from my github and place it in specific location on my laptop and it works fine. However when run the same command on windows Server, it throws an error. Exception calling “DownloadFile” with “2” argument(s): “An exception occurred during a WebClient request.” At line:3 char:1 + $WebClient.DownloadFile(“$Link”,”$env:C:Test_powershellBackupCI.xls … + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : WebException any suggestions on this would be highly appreciated

© 4sysops 2006 - 2022


Please ask IT administration questions in the forums. Any other messages are welcome.


Log in with your credentials


Forgot your details?

Create Account