Check if both servers have drive mounted
Posted: Mon Nov 07, 2016 2:25 pm
Hi,
We are having a MS cluster issue where both nodes end up have one of the drives mounted. I have a PS script which checks both servers for the existence of the drive (can be done with WMI or Powershell). It checks the server the script is running from, then it remotely checks the other one.If they both have drive F: mounted, I will send an alert. But of course, I get access denied when trying to run the wmi call on the remote server.
Can anyone think of how I might be able to monitor this situation?
If drive F: is mounted on server1, plus server2, send an alert.
The above is what I am trying to do.
Thanks in advance for any assistance!
We are having a MS cluster issue where both nodes end up have one of the drives mounted. I have a PS script which checks both servers for the existence of the drive (can be done with WMI or Powershell). It checks the server the script is running from, then it remotely checks the other one.If they both have drive F: mounted, I will send an alert. But of course, I get access denied when trying to run the wmi call on the remote server.
Can anyone think of how I might be able to monitor this situation?
If drive F: is mounted on server1, plus server2, send an alert.
The above is what I am trying to do.
Thanks in advance for any assistance!