I have a Windows service developed in .NET C # using VS 2010, I call DriveInfo.GetDrives(), but not get the drive Z:(mapped network drive),
I did some searches and found some results indicating privileges for the Windows account, so I tried all types of installation service accounts like LocalSystem, User, LocalService, NetworkService, but no one worked and I still can’t get the drive Z:.
I did another test debugging a Windows service (like a console application) and I can get the drive Z:this way.
Is there a solution to my problem?
source
share