|
|
@ -43,7 +43,7 @@ def SessionLoginPasswordSet(inHost, inLogin, inPassword):
|
|
|
|
#Clear old login/password if it exists
|
|
|
|
#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
|
|
|
|
#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
|
|
|
|
#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
|
|
|
|
return None
|
|
|
|
#Create current .rdp file with settings
|
|
|
|
#Create current .rdp file with settings
|
|
|
|
#Return (full path to file, session hex)
|
|
|
|
#Return (full path to file, session hex)
|
|
|
|