Windows 10 Can't find the SMB Mapping by winrm

  • Thread starter Thread starter 峰CI
  • Start date Start date

峰CI

When I use the following steps to make a SMB mapping, I can't find the SMB mapping when I log in the windows.1. start windows remote manage service on the object windows node. The operation system of object windows node is Win10.2. make a python script like this and run it python script: import winrm s = winrm.Session(http://server_ip/wsman, auth=(administrator, password), transport='ntlm', server_cert_validation='ignore') command = 'net use z: \\\\share_server_ip\share' res = s.run_ps(command) print(res.std_out)[note]: service_ip is the ip of the object windows node in step 13. lo

Continue reading...
 
Back
Top