How to change all my saved passwords in the Microsoft Remote Desktop app


like many, have change password on regular basis , since microsoft remote desktop app os x stores every saved connection credentials separate item in keychain, can tedious update passwords. ideally 1 set of credentials saved once in keychain, until wrote applescript update passwords. require saved connections organized credentials , have enable mac os x's accessibility frameworks in system preferences.

-- applescript edit saved passwords of set number of remote desktop connections servers. tested on version 8.0.10 of microsoft remote desktop connection application osx. saved sessions must organized sessions same passwords stored together. put sessions unique passowrds first , enter number of them in first variable. count number of servers edit , set second varible number. set 3rd varible new password , hit play button in script editor. make sure quite microsoft remote desktop app before running ui based applescripts unpredictible.    -- edit these 3 varibles  set skipservers 7 -- number of saved servers skip  set editservers 157 -- number of servers edit  set newpassword "pa$$w0rd" -- new password    -- no need edit below line.  set skipservers skipservers + 2  tell application "microsoft remote desktop"  	activate  	tell application "system events"  		set frontmost of process "microsoft remote desktop" true  		tell process "microsoft remote desktop"  			keystroke "f" using {command down}  			keystroke tab  			repeat skipservers times -- skip numbers of servers don't use same account  				key code 125  			end repeat  			repeat editservers times -- repeat each server uses same acount  				keystroke "e" using command down  				repeat 4 times  					keystroke tab  				end repeat  				keystroke newpassword  				keystroke "w" using command down  				key code 125  			end repeat  		end tell  	end tell  end tell

hi ben,

posting valuable opinion here, useful other members of forum.

description sharing information, need other assistance?

thanks.

dharmesh solanki

technet community support



Windows Server  >  Remote Desktop clients



Comments

Popular posts from this blog

2008 Windows Deployment Server Properties Error

Can no longer user MS Update - Files required to use Microsoft Update are no longer registered

How do a find data in one file, search for it in another file and if not found, write a custom message to another file