Forum Discussion
janten
Nov 15, 2019Copper Contributor
Export-IISConfiguration and Invoke-command
My goal is to export the IIS configuration from a remote server to a share. When I run the following command locally, the configuration is exported if(!(Test-path -path "\\path\to\share\*")){exp...
T_rey_S
May 30, 2023Copper Contributor
You may be suffering from "second hop syndrome". When you remote to ServerA, from Workstation1, you lose the ability to access other computers, depending on domain security settings. The general topic is "delegation" and whether it is allowed, and then properly configured.
What I have done, in an environment not allowing delegation, is to "stage" the information, on ServerA with a remote script, or invoke-command, then retrieve file, from ServerA, with code running on Workstation1. Then Workstation1 can copy it to your final destination.
What I have done, in an environment not allowing delegation, is to "stage" the information, on ServerA with a remote script, or invoke-command, then retrieve file, from ServerA, with code running on Workstation1. Then Workstation1 can copy it to your final destination.