Mount Network Drive with WMI

后端 未结 1 736
猫巷女王i
猫巷女王i 2021-01-26 14:32

Trying to write a WMI class function to mount a network drive on any computer (remote or local) using the credentials of the logged in computer.

This is a class for a l

1条回答
  •  广开言路
    2021-01-26 15:08

    This is not using WMI but will accomplish what you want and is very simple

    System.Diagnostics.Process.Start("cmd", "/c net use x: \\fileserver.example.com /user:Username Password");
    

    0 讨论(0)
提交回复
热议问题