VMware Cloud Community
AureusStone
Expert
Expert
Jump to solution

Copying files from a web server to VMFS datastore

Hi everyone I am having a little bit of trouble working this one out.

I have a file on a webserver say http://webserver/important.txt and I want to copy that file to a local datastore.  I am able to copy the file from the webserver to server that I am running PowerCLI from and then to the datastore, but I can't work out how to copy directly.

Any ideas?

0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

Afaik, the Copy-DatastoreItem can't handle this. The cmdlet requires a filepath on the Item parameter.

So you'll have to create a local file first, and then copy that to the datastore.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

View solution in original post

0 Kudos
2 Replies
LucD
Leadership
Leadership
Jump to solution

Afaik, the Copy-DatastoreItem can't handle this. The cmdlet requires a filepath on the Item parameter.

So you'll have to create a local file first, and then copy that to the datastore.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
AureusStone
Expert
Expert
Jump to solution

Thanks Luc.

That is what I expected. Smiley Sad

0 Kudos