paput Posted November 8, 2024 Posted November 8, 2024 Hi, how can i get a user's photo in a signature? I have a directory with photos - username.jpg
QwertyMash Posted November 10, 2024 Author Posted November 10, 2024 Without them being publically accessible you can't without us doing some converting and adding them with code. I will add another script to the repo tomorrow that does this. Conversion and you could adapt it. Thanks
paput Posted November 11, 2024 Posted November 11, 2024 These photos are available for every user and script.
Napoleon Posted November 15, 2024 Posted November 15, 2024 Hi, how can i get a user's photo in a signature? I have a directory with photos - username.jpg if you convert the image into base64 you can add something like this to the script to insert a picture [b]BASE64 TEXT HERE[/b] you can find a base64 converter online with a quick google
QwertyMash Posted November 15, 2024 Author Posted November 15, 2024 Yeah that's what I meant when i said convert them. I've already built a script to help with it in a test I was doing for user profile photos
Napoleon Posted November 15, 2024 Posted November 15, 2024 shouldve known youd be way ahead of me!! 1
harold_dawg Posted November 15, 2024 Posted November 15, 2024 Is this to only add signatures when sending from outlook? What about mobile devices and online Outlook? We are currently using Code2 which adds the signature on the backend of emails when they leave O365 regardless of device. Thanks
it_rad08 Posted April 15, 2025 Posted April 15, 2025 Hi, i really am fond of this script. one question though, where do i edit the signature for reply emails? I would prefer to have a little less signature for replies. Is this an option?
QwertyMash Posted April 24, 2025 Author Posted April 24, 2025 On 15/04/2025 at 15:26, it_rad08 said: Hi, i really am fond of this script. one question though, where do i edit the signature for reply emails? I would prefer to have a little less signature for replies. Is this an option? You would need to create another HTML file and change the registry keys for reply messages to point at that file in the Set-RegistryEnteries function
SimonTra Posted November 18, 2025 Posted November 18, 2025 @QwertyMash Really appreciate the script. We are attempting to use it in an on-prem Active Directory environment wherein we use AppLocker. The script will error during execuction at logon via GPO because when AppLocker is deployed and using enforced rules (at least in Powershell 5.1), Powershell runs in ConstrainedLanguage mode which prohibits your script from using the "class" function. Are you aware of a way around this in deployment, or possibly something we can use instead of class?
Remade88 Posted March 17 Posted March 17 Hi QwertyMash I am brand new to this. Your example "google" signature is almost exactly in the right format, I was hoping you wouldn't mind sharing the Code with me, this will give me something to start with. Hope you can help. Many Thanks Hugo
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