Highlighted
Contributor
Contributor

vCO: Write a file to a network share

Jump to solution

Hi,

I'm very new to vCO and unfortunately I do not have a strong programming/scripting background.

The question I have is how to write a folder/file to a Windows network share in a vCO scriptable task?  I am able to write a file to a local directory, but cannot write to a network share.

The code:

file.createDirectory();

I have already modified the js-io-rights.conf file to include the UNC path I wish to write to.

I believe it to be an issue that vCO executes the script under the SYSTEM context in Windows, but you cannot allow this in a network share.  I tested this by adding and removing SYSTEM to a local folder.

Any help is appreciated.

Thanks,

Mike

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
Highlighted
VMware Employee
VMware Employee

You'll need to create a network service account that has access to that network share. Re-configure vCO Server Service to run with that account's credentials. After doing that, you should be able to do what you are asking. I had this same use case on a project last year Smiley Wink

If my answer resolved or helped you, please mark it as Correct or Helpful to award points. Thank you! Visit http://www.vcoteam.info & http://blogs.vmware.com/orchestrator for vRealize Orchestrator tips and tutorials - @TechnicalValues on Twitter

View solution in original post

0 Kudos
2 Replies
Highlighted
VMware Employee
VMware Employee

You'll need to create a network service account that has access to that network share. Re-configure vCO Server Service to run with that account's credentials. After doing that, you should be able to do what you are asking. I had this same use case on a project last year Smiley Wink

If my answer resolved or helped you, please mark it as Correct or Helpful to award points. Thank you! Visit http://www.vcoteam.info & http://blogs.vmware.com/orchestrator for vRealize Orchestrator tips and tutorials - @TechnicalValues on Twitter

View solution in original post

0 Kudos
Highlighted
Contributor
Contributor

Good show.  That solved the problem.  Thanks.

0 Kudos