rich_tech Posted May 13, 2014 Posted May 13, 2014 Is there anyone out there able to help with this, we basically are looking at going to Outlook Client for majority of our staff with Mandatory Profiles and are looking at Signatures and their redirection I want to script the following command :- mklink /d C:\users\{username}\appdata\roaming\microsoft\signatures U:\My Settings\Signatures Can it be done ? I am not sure of the Username variable, also whats best i.e. VBS/Powershell or a straight .cmd file ? Any help is appreciated here, thanks, Rich
TheScarfedOne Posted May 13, 2014 Posted May 13, 2014 Timing, as looking at doing this too. Just put all our students on mandatory - the hold up on staff is things like this, and other "finiky" software which I need to bundle the settings for (PSF - pointing the finger at you here!)
amckinley Posted May 13, 2014 Posted May 13, 2014 mklink /d C:\users\{username}\appdata\roaming\microsoft\signatures U:\My Settings\Signatures I would try straight CMD. Make sure the /d is going to do what you want it to as well! The username variable will probably be %userprofile% So it would look something like this mklink /d %userprofile%\appdata\roaming\microsoft\signatures U:\My Settings\Signatures
TheScarfedOne Posted May 15, 2014 Posted May 15, 2014 Ok, so after some testing...here is what Im doing... Script... ===================== if exist "U:\My Settings\Signatures\logo.jpg" goto Done rmdir /s /q %userprofile%\appdata\roaming\microsoft\signatures pause mklink /D %userprofile%\appdata\roaming\microsoft\signatures "U:\My Settings\Signatures" :Done =============== This will delete the folder from the local appdata folder, and replace it with a symbolic link to the U:\ folder location. It will require a GPO to create the folders. The "if exist" is used to see if the signature has already been set in the new location, if not, assume that this hasnt run yet - as the signature setting is called straight away after this script...
Squuiid Posted July 25, 2019 Posted July 25, 2019 (edited) Here's our Windows 10 logon user script which we push out through group policy. Hope this is helpful to others... rem ###Script to migrate and symlink Outlook Signature to OneDrive### if not exist "%userprofile%\OneDrive" goto done if exist "%appdata%\Microsoft\Signatures\DoNotRemove" goto done echo n|xcopy "%appdata%\Microsoft\Signatures" "%userprofile%\OneDrive\Documents\Outlook\Signatures" /E md "%userprofile%\OneDrive\Documents\Outlook\Signatures\DoNotRemove" cd %appdata%\Microsoft\ ren Signatures Signatures-OLD mklink /d "%appdata%\Microsoft\Signatures" "%userprofile%\OneDrive\Documents\Outlook\Signatures" :done Edited July 25, 2019 by Squuiid
QwertyMash Posted September 12, 2019 Posted September 12, 2019 http://www.edugeek.net/forums/scripts/205976-outlook-email-signature-automation-ad-attributes.html This might help you a bit a script I wrote. Is there a reason you are not just using the Temp folder and want to redirect their signature location? You can use the registry to repoint the signature folder location and if you use a UNC path I think it should work.
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