Save XML file remotely on server using Powershell

I have a script that runs and saves text in an XML file. And I want to save this XML file on a remote server on the network. What would be the command / code for this?

+3
source share
1 answer

UNC path (\\ server \ share \ file.xml or \\ server \ c $ \ temp \ file.xml). It requires that the user who runs the script must have permissions on the target location on the remote server.

+3
source

All Articles