Powershell script CopyHere not working when run through GO

Follow

Comments

6 comments

  • Avatar
    Marco Abis

    Hi Anupam,

       any specific reasons you are using Go 2.3? It's 2 years old and is out of support.

    Please do upgrade to a more recent version.

    Marco

  • Avatar
    Anupam Roychowdhury

    Actually this is provided environment and we have to work on this only. So can you please tell me that if this issue exists for this version? And if we move to latest versions this issue will not happen?

  • Avatar
    Marco Abis

    Hi again,

           I'm not aware of any specific issues on that front though I will try and do a quick search around to see if anything comes up.

    As mentioned we are not able to provide feedback on a 2 years old version which has been out of support for more than a year now. If it helps there are no reports of any issues with that functionality in the supported versions. For a list of everything that has changed since 2.3.1 please take a look at the What's New Page here.

    Marco

  • Avatar
    Anupam Roychowdhury

    Thank you Marco.

  • Avatar
    Dhawal Patel

    I have the same issue with the latest Go Server v13.4. I don't think this is an issue with Go even though I understand that the script works correctly when executed directly on Go Agent.

    I think it has something to do with Shell.Application CopyHere not working when executed inside a shell. I haven't find any solution (except to use .net zip provider). If you find a way to get it working with Shell.APplication, please let me know.

  • Avatar
    Dhawal Patel

    Replace Shell.Application with .Net zip provider. Its works and is much faster:

     

    Add-Type -AssemblyName System.IO.Compression.FileSystem -ErrorAction Stop
    [System.IO.Compression.ZipFile]::ExtractToDirectory($zipFilename, $destination)

     

Please sign in to leave a comment.