VMware Cloud Community
mweigand
Contributor
Contributor
Jump to solution

vCO: Write a file to a network share

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
Burke-
VMware Employee
VMware Employee
Jump to solution

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
Burke-
VMware Employee
VMware Employee
Jump to solution

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
0 Kudos
mweigand
Contributor
Contributor
Jump to solution

Good show.  That solved the problem.  Thanks.

0 Kudos