0

How would I use powerShell to find the name of a remote computer/NAS location? I don't have the name, just a path to get there in Windows Explorer. I'm trying to use the following command in a script, but don't have computername for the NAS at network location \usa0xxxnas1.na.xxx.net\directory1:

invoke-command -computername <UnknownNameGoesHere> -credential $globalcred -scriptblock{test-path...}

I've been looking at this link but it's not answering my question, since they need the computerName (london) to run the command they are discussing, unless I'm mis-understanding something:
name of remote computer

Michele
  • 3,617
  • 12
  • 47
  • 81

0 Answers0