Viewing 2 posts - 1 through 2 (of 2 total)
The $Hostname is not parsed at runtime. You need to hardcode the hostname, or use an .ini file.
Or, try my approach and use dbatools:
April 8, 2021 at 2:29 pm #3866866
April 8, 2021 at 2:29 pm
#3866866
Can you describe the pathing process?
April 8, 2021 at 2:27 pm
#3866864