Arm_And_Hammer Posted November 20, 2018 Posted November 20, 2018 All users company-wide use the same formatted fonts in the Outlook app, and the font has always been changed manually. I'm attempting to write a script that can change the font automatically, via the registry. The registry location is: ( HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Common\MailSettings ). On a computer that already has the desired font set, I read the value of the font variable "ComposeFontComplex" using this command: Global $ComposeFontComplex = RegRead("HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Common\MailSettings", "ComposeFontComplex") I took the value of $ComposeFontComplex and copied the long string of values into notepad. I then went on a computer without the right font and ran tried to change the font by changing its "ComposeFontComplex" value with this command: Global $ComposeFontComplex = "3C68746D6C3E0D0A0D0A3C686561643E0D0A3C7374796C653E0D0A0D0A202F2A205374796C6520446566696E6974696F6E73202A2F0D0A207370616E2E506572736F6E616C436F6D706F73655374796C650D0A097B6D736F2D7374796C652D6E616D653A22506572736F6E616C20436F6D706F7365205374796C65223B0D0A096D736F2D7374796C652D747970653A706572736F6E616C2D636F6D706F73653B0D0A096D736F2D7374796C652D6E6F73686F773A7965733B0D0A096D736F2D7374796C652D756E686964653A6E6F3B0D0A096D736F2D616E73692D666F6E742D73697A653A31302E3070743B0D0A096D736F2D626964692D666F6E742D73697A653A31302E3070743B0D0A09666F6E742D66616D696C793A22417269616C222C2273616E732D7365726966223B0D0A096D736F2D61736369692D666F6E742D66616D696C793A417269616C3B0D0A096D736F2D68616E73692D666F6E742D66616D696C793A417269616C3B0D0A096D736F2D626964692D666F6E742D66616D696C793A417269616C3B0D0A09636F6C6F723A77696E646F77746578743B0D0A09666F6E742D7765696768743A6E6F726D616C3B0D0A09666F6E742D7374796C653A6E6F726D616C3B7D0D0A2D2D3E0D0A3C2F7374796C653E0D0A3C2F686561643E0D0A0D0A3C2F68746D6C3E0D0A" RegWrite ("HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Common\MailSettings", "ComposeFontComplex", "REG_BINARY", $ComposeFontComplex) I'm not getting any errors, but it is not correctly changing the font value. After running the RegWrite command, my Outlook font goes back to the default font.
faustf Posted November 20, 2018 Posted November 20, 2018 (edited) i suggest , dump backup registry before change font , after manual change font , and rebackup a registry before compare 2 backup and find a difference exist also many software can do this duckduckgo is your firends good luck Edited November 20, 2018 by faustf
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now