Skip to main content
Question

Copy single file?

  • December 1, 2016
  • 1 reply
  • 0 views

Forum|alt.badge.img+7
  • Contributor
  • 94 replies

I'd like to setup a policy to copy a single file to the wallpaper directory on labs at multiple locations. I don't want to have to create a full package or mount an external drive across our network to do it via a script.

Any suggestions?

1 reply

mm2270
Forum|alt.badge.img+16
  • Legendary Contributor
  • 7880 replies
  • December 1, 2016

If you don't want a sharepoint mounted, and you don't want a package to deploy it, your options are kind of limited. There aren't that many good ways to do this.

Yet, there are a few options.
There are things like scp, but you would need to embed a username and password into a script to connect to a remote system or share to pull down the file, so that's not a great idea.
You can host the wallpaper on a webpage if you have something internal or can host it on a permanent external site, and use curl to pull it down.
Lastly, there are ways of embedding zip files into a script that can be used to deploy a file or package, so its really all just text, and then it can be unzipped into place. That's somewhat more complicated to do, but its an option.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings