如果要进行身份验证,我正在尝试连接到工作站。函数基本上会启动资源管理器c:\ notbackedup,但是我仍然会“访问被拒绝” 。这是我的示例代码。请帮助
ws = Trim(ws)
Dim DestinationPath As String = "\\" & ws & "\c$\"
Dim Impersonator As New clsAuthenticator
Dim sDomain As String = "Global"
Dim sUser As String = "GRFSDMAutomation"
Dim password As New System.Security.SecureString()
Dim sPass As String = "Automation123"
Dim passwordChars As Char
For Each passwordChars In sPass
password.AppendChar(passwordChars)
Next
'Char passwordChars = sPass.ToArray
Process.Start(DestinationPath, userName:="GRFSDMAutomation", password:=password, domain:="Global")