|
|
|
@ -43,7 +43,7 @@ def SessionLoginPasswordSet(inHost, inLogin, inPassword):
|
|
|
|
|
#Clear old login/password if it exists
|
|
|
|
|
#os.system(f"cmdkey /delete:TERMSRV/{inHost}") #Dont need to delete because new user password will clear the previous creds
|
|
|
|
|
#Set login password for host
|
|
|
|
|
os.system(f"cmdkey /generic:TERMSRV/{inHost} /user:{inLogin} /pass:{inPassword}")
|
|
|
|
|
os.system(f'cmdkey /generic:TERMSRV/{inHost} /user:{inLogin} /pass:"{inPassword}"')
|
|
|
|
|
return None
|
|
|
|
|
#Create current .rdp file with settings
|
|
|
|
|
#Return (full path to file, session hex)
|
|
|
|
|