My task is to find share drive paths existence present in other servers and adding user to same path if exists.
To achieve this am using Directory.Exists(path)
method and yes it is working only for paths which i have access.
But there are many restricted paths, so i have to use credentials (We have one service account and i want use that credentials through that we can access everything: ) in order check for path existence.
Please provide me syntax or How to achieve the same, Please help me!!!
Thanks!