Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import os
- def first_connection():
- os.system('cmdkey /generic:192.168.1.101 /user:Username /pass:Password')
- os.system('mstsc /v:192.168.1.101)'
- def second_connection():
- os.system('cmdkey /generic:192.168.1.102 /user:Username /pass:Password')
- os.system('mstsc /v:192.168.1.101)'
- first connection()
- second_connection()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement