Jump to content

Recommended Posts

Posted (edited)

Styling Help !!!!

 

I have bee tasked to change our company Outlook signature for all employees.

 

This is Absolutely Brilliant, The Active Directory part works great, but I'm stuck on the styling. (Complete noob.)

 

Please see attached example .png with of my desired and currant output, and the code.

 

Many Thanks.

Signature.png

New Signature.txt

New Signature.ps1

Edited by Remade88
Posted
Styling Help !!!!

 

I have bee tasked to change our company Outlook signature for all employees.

 

This is Absolutely Brilliant, The Active Directory part works great, but I'm stuck on the styling. (Complete noob.)

 

Please see attached example .png with of my desired and currant output, and the code.

 

Many Thanks.

 

 

Hello,

 

I might be able to do this tonight for you but more likely tomorrow night - is that ok?

 

Thank you.

Posted
Many Many Thanks for the quick reply, I would greatly appreciate any help. That would be awesome, Thanks

 

I will contact you via DM tonight or tomorrow night with hopefully the solution for you.

 

Thank you.

Posted
Many Many Thanks for the quick reply, I would greatly appreciate any help. That would be awesome, Thanks

DM'd you a possible solution.

 

- - - Updated - - -

 

Many Many Thanks for the quick reply, I would greatly appreciate any help. That would be awesome, Thanks

DM'd you a possible solution.

 

- - - Updated - - -

 

Many Many Thanks for the quick reply, I would greatly appreciate any help. That would be awesome, Thanks

DM'd you a possible solution.

  • 5 months later...
Posted

Hiya, I have been using the script to make and upload our signatures but im having a problem with them actually appearing in the email.

 

The script runs with no errors and when i go and check the signature setting in M365 outlook and the new one isnt there, however if i give myself permissions to someone elses mailbox and have a look at the setting myself then the new signature is there.

 

any advice or help would be greatly appreciated.

  • 5 months later...
Posted

I am so sorry I never replied to this, I didn't get an alert about this post.

 

I hope you got it sorted - if not and are still interested please DM me.

 

I have updated the script and gave it a new name to Set-OutlookSignature.ps1 - This version has been updated to include a few more active directory attributes, some better practices and more error handling.

 

Thank you.

Posted

Just looking at this, giving permissions to run the script at logon is my issue i'm working on currently. but also noticed an issue with indexing null @ line 57

if($user.company.count -gt 0){$comapnyName = $user.companyName[0]} # Company name

 

looks like should be

if($user.company.count -gt 0){$comapnyName = $user.company[0]} # Company name

 

?

Posted

Hello there,

 

Yes apologies I have failed to commit a change at home as I noticed that issue and had fixed it. I shall push that commit when I get home.

 

Side note - if you are running it via group policy you don't need to give the users any extra permissions? It should just work?

Posted
Even with script processing disabled? Maybe I am barking up wrong tree then :) I just get an error 1130 in system event log, Log on script failed. I had assumed it was because I've locked down power shell scripts for the little dharlings
Posted

Argh if you have disabled script processing then it will likely stop this working.

 

If you do get this working and have to do some fiddling due to disabled script processing I would love some information on what you end up doing and I shall add it to the ReadMe.

Posted
I cheated totally and avoided the script processing issue by using ps2exe powershell module to make it an exe to run at logon for users. I did put a few | Out-Null entries in there to supress some of the messages (Mostly the folder creation / Registry entries) so that it doesn't pop up the box unless it actually needs to say something but so far all good in my test lab!
  • Thanks 1
Posted
I cheated totally and avoided the script processing issue by using ps2exe powershell module to make it an exe to run at logon for users. I did put a few | Out-Null entries in there to supress some of the messages (Mostly the folder creation / Registry entries) so that it doesn't pop up the box unless it actually needs to say something but so far all good in my test lab!

Haha fantastic - glad you got it working, yeah if its done the usual way there arn't any pop ups that must just be a side effect of that method.

 

Well I am glad you found away to get it working for you.

Posted

ps2exe module has a -noconsole output anyway.

 

Now just to style it according to the marketing dept's rules and fight with 365's signature sync, but thanks for the scripty !

  • Thanks 1
  • 2 weeks later...
Posted

Hi, Outlook desktop version working absolutely perfectly. However 90% of our collegues use Office online.

 

I have got it working to a point, where I can run the script and the box comes up to tell me to connect to Exchange online. Here do I log into the user in question who needs updating or the admin email account so I have access Exchange online?

 

Either way no matter which account I log into there (Even with the global admin) it looks like it is going to do it but then goes "Oh dear something went wrong and disconnects from Exchange online".

 

I see in the script it has a catch to tell it do that, but what would be the cause of this error? Any advice would be amazing! thank you

Posted

The Exchange online version is still a work in progress as its no where near as clean to do.

 

I've got a few different prototypes in a private repo I've been playing with. I hope to have a working release of this very soon. Please keep your eyes on this thread / the github repo.

 

Thank you.

 

Hi, Outlook desktop version working absolutely perfectly. However 90% of our collegues use Office online.

 

I have got it working to a point, where I can run the script and the box comes up to tell me to connect to Exchange online. Here do I log into the user in question who needs updating or the admin email account so I have access Exchange online?

 

Either way no matter which account I log into there (Even with the global admin) it looks like it is going to do it but then goes "Oh dear something went wrong and disconnects from Exchange online".

 

I see in the script it has a catch to tell it do that, but what would be the cause of this error? Any advice would be amazing! thank you

Posted
The Exchange online version is still a work in progress as its no where near as clean to do.

 

I've got a few different prototypes in a private repo I've been playing with. I hope to have a working release of this very soon. Please keep your eyes on this thread / the github repo.

 

Thank you.

 

Have you found a way around signatureHTML not working from powershell with roaming signatures on (and having to have a support call to disable roaming signatures tenant wide) ?

Posted
Have you found a way around signatureHTML not working from powershell with roaming signatures on (and having to have a support call to disable roaming signatures tenant wide) ?

 

Sorry you have confused me - Do you want to use roaming signatures or are you wanting to disable that feature?

Posted
I was trying to set peoples signatures (for those using web-mail) via powershell with the set-mailboxmessageconfiguration -signatureHTML - and it wasn't working. In the MS Help documentation it says you cannot use that command when you have roaming signatures enabled (I was wondering why nothing was appearing when I was trying to use it) I wondered if you had scripts working if you found a way around it :)
Posted

Righttt, I have not looked at roaming signatures or what part they play in this sorry. I will have to complete some research on this topic.

 

So are you actively using Roaming Signatures in your estate?

 

Thanks.

 

I was trying to set peoples signatures (for those using web-mail) via powershell with the set-mailboxmessageconfiguration -signatureHTML - and it wasn't working. In the MS Help documentation it says you cannot use that command when you have roaming signatures enabled (I was wondering why nothing was appearing when I was trying to use it) I wondered if you had scripts working if you found a way around it :)
  • 2 weeks later...
Posted (edited)

Hi, just chance upon this wonderful scripts, was playing with it for a while.

 

quick question, does it support Microsoft 365 office Suites, because when i tried to run the scripts. it prompts me the below error.

 

 

"Get-Item : A positional parameter cannot be found that accepts argument 'MailSettings'."

"Get-Item : A positional parameter cannot be found that accepts argument 'General'."

Edited by vampielgod
Posted

Hello,

 

Do you mean using the online Outlook? If so - currently not I am working on that.

 

If you mean an installed version of office on users machines, they should all be supported, not seen a version yet it does not work for.

 

Thank you :)

 

 

Hi, just chance upon this wonderful scripts, was playing with it for a while.

 

quick question, does it support Microsoft 365 office Suites, because when i tried to run the scripts. it prompts me the below error.

 

 

"Get-Item : A positional parameter cannot be found that accepts argument 'MailSettings'."

"Get-Item : A positional parameter cannot be found that accepts argument 'General'."

Posted

Fire me a DM and we can discuss the setup :) My replies might be a little delayed as I am currently at work.

 

nope no online, is for Microsoft Apps for Business Microsoft Suite application.

Not sure why tho, it prompts error.

Posted

Hi thanks for your prompt reply, i have figure out the issue, your scripts works wonderfully well.

 

but as i am now using the "new outlook app for windows" as is stll in preview mode, but when it toggle it back to the old outlook interface, it works well even with the error message.

 

Thanks.

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