Advertisement
Guest User

Untitled

a guest
Sep 17th, 2017
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. import os
  2.  
  3. def first_connection():
  4. os.system('cmdkey /generic:192.168.1.101 /user:Username /pass:Password')
  5. os.system('mstsc /v:192.168.1.101)'
  6.  
  7. def second_connection():
  8. os.system('cmdkey /generic:192.168.1.102 /user:Username /pass:Password')
  9. os.system('mstsc /v:192.168.1.101)'
  10.  
  11. first connection()
  12. second_connection()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement