VMware Cloud Community
plusoneakki
Contributor
Contributor

scriptable task or workflow to unzip remote file

Hi All,

I have a vRO workflow that generates a zip file on a windows server with a random name. path of that is C:\filename.zip. The name of the file is random and has been attributed under "filename"..

Can someone help me create a simple scriptable task or a simple workflow to :

1) make a directory under C:

2) unzip the file in that directory

Please don't suggest to use powershell cmdlets or ps scripts since in my environment, powershell on all servers is disabled due to security reasons..

Quick help is appreciated..

Reply
0 Kudos
2 Replies
iiliev
VMware Employee
VMware Employee

Hi,

You can use Guest script manager to run commands/scripts on the remote machine - https://communities.vmware.com/docs/DOC-25474

An interesting topic is how to unzip files on Windows if you don't have some ZIP tools (like WinZip, etc.) installed. There is some info online how this can be achieved; for example, https://stackoverflow.com/questions/28043589/how-can-i-compress-zip-and-uncompress-unzip-files-and-f...

Reply
0 Kudos
KRAEMS
Enthusiast
Enthusiast

In situations like this, I have found it beneficial to generate self extracting executables instead of zip files, then transfer the self extracting executables to the guest OS prior to extracting them. 

KRAEMS

Reply
0 Kudos