Tuesday, July 7, 2020

MS Office: Fixing Double Slash Auto-correction in links

I had a problem where I wanted to email a link with double slashes in it

Example: doclink://SmartClient/&URL=http://server/DLRemote

In this case, it was for the application DocLink.

Outlook was correcting it to doclink://SmartClient/&URL=http:/server/DLRemote with one slash.

To fix this, I needed to push out a registry entry. I chose to do it with SCCM since only a few people needed it.

I created a PoweShell script with this command:

Set-ItemProperty -Path Registry::'HKEY_CURRENT_USER\Software\Microsoft\Office\Common' -Name AllowConsecutiveSlashesInUrlPathComponent -Type "DWord" -Value "1"


Then I saved it, and packaged the installation as:

powershell.exe -ExecutionPolicy Bypass -File ".\O2019AllowDoubleSlash.ps1"

After restarting Outlook, these people were allowed to correctly format links with double slashes.



Sources


No comments:

Post a Comment

Note: Only a member of this blog may post a comment.