So what i did was run a PowerShell script to get all my users from AD and then have a template and replace values with the AD values and output them as us...@domain.com.html it works great but for some reason i cannot get the #user# variable to work in my GAM command
gam print users | gam user ~primaryEmail signature file "C:\GAM\Signatures\Templated Signatures\~primaryEmail"
Here is the script i wrote myself and I hope other Admins enjoy it!!https://groups.google.com/forum/#!topic/google-apps-manager/sVDyygYEg7Y
--
You received this message because you are subscribed to the Google Groups "Google Apps Manager" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/4d72b2cc-907a-41b4-a918-192846238805%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
This is awesome and a great addition to GAM. My script that I built is a little more intense and allows for some customization but this is perfect for simple signatures which most peoples will be simple.
This is awesome and a great addition to GAM. My script that I built is a little more intense and allows for some customization but this is perfect for simple signatures which most peoples will be simple.Thanks for this addition Ross!!
--
You received this message because you are subscribed to the Google Groups "Google Apps Manager" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/fa732c7b-2f94-4c2a-8f3e-c6c7caa94335%40googlegroups.com.
Yes that is correct but I have added the ability to use {RT} {/RT} tags so that if the field is blank remove everything in between the these tags. so for instance if a template has html Cell: #Cell#<BR> If that field is blank then this users signature will have "Cell: <BR>"with no value beside it and then that wrap a line. Using the {RT} tags if #tag# was bank you could remove the whole line IE {RT}Cell: #Cell#<BR>{/RT} this allows for some more conditional scripting in your template file. If you can add that to GAM.exe that woudl rock as almost all email signature templating programs have this feature that I have used, Acronis, CodeTwo etc..
Yes that is correct but I have added the ability to use {RT} {/RT} tags so that if the field is blank remove everything in between the these tags. so for instance if a template has html Cell: #Cell#<BR> If that field is blank then this users signature will have "Cell: <BR>"with no value beside it and then that wrap a line. Using the {RT} tags if #tag# was bank you could remove the whole line IE {RT}Cell: #Cell#<BR>{/RT} this allows for some more conditional scripting in your template file. If you can add that to GAM.exe that woudl rock as almost all email signature templating programs have this feature that I have used, Acronis, CodeTwo etc..I will also be adding in the future the ability for it to look for a signature template with the users email address on it son instead of using the default signature template it will read in this one for the user. This would allow for those one off users that need a special template for them. As well the ability to have rotating images and multi templates to rotate through. I'm just at version 1 right now :) I want this script to be the best signature template system out there :) using GAM of course!!
--
You received this message because you are subscribed to the Google Groups "Google Apps Manager" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/9647e7da-f7ed-4e0b-ad13-bb286d694040%40googlegroups.com.
Yes that is correct but I have added the ability to use {RT} {/RT} tags so that if the field is blank remove everything in between the these tags. so for instance if a template has html Cell: #Cell#<BR> If that field is blank then this users signature will have "Cell: <BR>"with no value beside it and then that wrap a line. Using the {RT} tags if #tag# was bank you could remove the whole line IE {RT}Cell: #Cell#<BR>{/RT} this allows for some more conditional scripting in your template file. If you can add that to GAM.exe that woudl rock as almost all email signature templating programs have this feature that I have used, Acronis, CodeTwo etc..I will also be adding in the future the ability for it to look for a signature template with the users email address on it son instead of using the default signature template it will read in this one for the user. This would allow for those one off users that need a special template for them. As well the ability to have rotating images and multi templates to rotate through. I'm just at version 1 right now :) I want this script to be the best signature template system out there :) using GAM of course!!
--
You received this message because you are subscribed to the Google Groups "Google Apps Manager" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/9647e7da-f7ed-4e0b-ad13-bb286d694040%40googlegroups.com.
Wow this is amazing!!!
I can’t believe you did it this quick. I spent 2 days scripting my PowerShell script J. You Rock Ross way to be on top of stuff!
If I can suggest one thing though. If you pull all users down from Google not all users have gmail enabled and you will get an error if you try to set a signature for someone that does not have a gmail account. So if you are doing a batch of users it will error out and stop on that one user that’s an admin user that does not have email enabled. Is there a way to get GAM to only pull down users when using the signature switch that have gmail enabled on their account? Or is there already something up there?
I’m going to rewrite my script now to include your new templating system and pulling values from AD J this will be much faster running one GAM command then a single command for every user
--
You received this message because you are subscribed to a topic in the Google Groups "Google Apps Manager" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/google-apps-manager/8mJEokp6E2E/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
google-apps-man...@googlegroups.com.
To post to this group, send email to
google-ap...@googlegroups.com.
Visit this group at
https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/723310F1-3D45-4572-A1F6-F98A771D1775%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
Steve Main |
|||||||||
PC Support Specialist |
|||||||||
519.664.2777 ext. 2263 OFFICE | 877.723.2999 TOLL FREE | 519.241.8951 MOBILE |
|||||||||
WATERLOO | RALEIGH-DURHAM | SAN JOSE |
|||||||||
BRANDING INTO BUYING | QUARRY.COM |
|||||||||
|
|||||||||
This e-mail message (including any attachments) is intended only for the use of the individual to whom it is addressed and may contain information that is privileged, proprietary, confidential or subject to copyright. If you are not the intended recipient, you are notified that any use, dissemination, distribution or reproduction of this communication is strictly prohibited. If you have received this communication in error, please notify the sender and delete this e-mail message immediately. |
gam user user@domain.com signature "#Name# - #Jobtitle#" replace "#Name#" "Users Name" replace "#Jobtitle#" "Users jobtitle"
gam user user@domain.com signature "{#Name#} - {#Jobtitle#}" replace "#Name#" "Users Name" replace "#Jobtitle#" "Users jobtitle"
--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/1125f9da-7370-4882-8ed9-0efcca177312%40googlegroups.com.
Andrus,
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.
Andrus,
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.
The Stephen Perse Pre-Prep, Stephen Perse Foundation Junior School, Stephen Perse Foundation Senior School, The Stephen Perse Sixth Form College and Dame Bradbury's School are the schools of the Stephen Perse Foundation. The Stephen Perse Foundation is a Registered Charity (No:1120608) and a Company limited by guarantee, registered in England and Wales (No:6113565). Its registered office is 19 Union Road, Cambridge, Cambridgeshire CB2 1HF.
This e-mail and any attached file is intended only for the use of the addressee(s) named above and is confidential and may be legally privileged. If you have received this email and are not a named addressee please delete it; you must not disclose, copy, distribute or use the contents in any way that may be unlawful. Although the Stephen Perse Foundation operates anti-virus programmes, it does not accept responsibility for any loss or damage whatsoever that arises from the use of the email or attachments. In addition the Stephen Perse Foundation cannot be held liable for incomplete or corrupted transmissions, delay in receipt or any errors or omissions in the content of the email, as a result of transmission. Any views or opinions presented are solely those of the author and do not necessarily represent those of the Foundation.
--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/fc6d0fca-6eb2-4648-9a4d-ea5096b8d4dd%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/de56c9b7-bd4e-4ff3-9bf7-5593a141bdd6%40googlegroups.com.