Jump to content

Recommended Posts

Posted

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

Posted
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!)
Posted
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

Capture.PNG

Posted

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...

  • 5 years later...
Posted (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 by Squuiid
  • 1 month later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...