Network Authentication when running exe from WMI

前端 未结 4 1881
一整个雨季
一整个雨季 2021-02-04 12:01

I have a C# exe that needs to be run using WMI and access a network share. However, when I access the share I get an UnauthorizedAccessException. If I run the exe directly the s

4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-04 12:11

    You can write all you commands to batch file to the remote machine which includes net use (no need to use a drive letter) to do an authentication. Works fine that way. I am still working on an alternative.

提交回复
热议问题