Announcement

Collapse
No announcement yet.

Script to check drive mapping to specific share name, regardless of server name

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Script to check drive mapping to specific share name, regardless of server name

    I appologize if this has been answered before, but I have searched and haven't found the answer specifically.

    I need help with writing a script that check's if a drive exists and it is mapped to a share name - irregardless of what the server name.

    We have mulitple servers with the same share name. ie. \\server1\common, \\server2\common, \\server3\common

    All I care is that the M drive is mapped to \\*anyserver*\common

    Every script I have come acrosse specifies the server name in the code. And I really do not have a good way to call a variable that would input that server name - as it isn't tied to the AD account or group memberships.

    I would greatly appreciate any assistance you folks can provide.

    Thank you,
Working...
X