Quantcast
Channel: TrueNAS Community
Viewing all articles
Browse latest Browse all 185907

Help writing script to check for NAS availability

$
0
0
Hey everyone, I need some guidance on how to accomplish something.



I want to write a script that will check to see if my laptop can see the NAS (my NAS on my local/home network), and if so, map the drives. Otherwise (ie: I’m not at home), I don’t want Windows to bother trying to map the drives.



My idea was to run a test-connection script that would go out and try to find the NAS. The following powershell command:



Test-connection –Computername NAS01 –Buffersize 16 –Count 1 –Quiet...

Help writing script to check for NAS availability

Viewing all articles
Browse latest Browse all 185907

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>