Search found 198 matches

by ITEngineer
Fri May 25, 2018 8:30 am
Forum: PowerShell
Topic: Need some help in debugging the PowerShell code to set email signature ?
Replies: 8
Views: 1827

Re: Need some help in debugging the PowerShell code to set email signature ?

When posting large bits of code please post as an attached file. I have given you the correct answer for this task twice now. Why do you keep going back to the old Office method that was never correct to begin with? the attached method is working except that little annoying bit which display the em...
by ITEngineer
Fri May 25, 2018 8:04 am
Forum: PowerShell
Topic: Need some help in debugging the PowerShell code to set email signature ?
Replies: 8
Views: 1827

Need some help in debugging the PowerShell code to set email signature ?

Hi People, I have the below PowerShell code to set the email signature in Outlook, but somehow there is one issue/bug that is still persisting. $templateFile = '\\domain.com\SYSVOL\domain.com\scripts\My Custom Signature.docx' $templateFileNoMobile = '\\domain.com\SYSVOL\domain.com\scripts\My Custom ...
by ITEngineer
Thu May 17, 2018 12:44 am
Forum: PowerShell
Topic: Modifying PowerShell script to change the Font type and size ?
Replies: 10
Views: 4638

Re: Modifying PowerShell script to change the Font type and size ?

This is how it looks like on the MS Word .DOTX when opened with Word2016 as well as on the Outlook 2016:

Image
by ITEngineer
Thu May 17, 2018 12:20 am
Forum: PowerShell
Topic: Modifying PowerShell script to change the Font type and size ?
Replies: 10
Views: 4638

Re: Modifying PowerShell script to change the Font type and size ?

Wow, that's cool. So how do you layout and place the Bookmark? This is my updated code for the bookmark: # create word document $WordDoc = New-Object -ComObject Word.Application $doc = $WordDoc.Documents.Add('\\PRDFS01-VM\EmailSignature\Default Outlook Signature.dotx') $props=@( 'company', 'l', 'dis...
by ITEngineer
Tue May 15, 2018 8:50 pm
Forum: PowerShell
Topic: Modifying PowerShell script to change the Font type and size ?
Replies: 10
Views: 4638

Re: Modifying PowerShell script to change the Font type and size ?

It is the same script I posted on the MS forum. You just have to define the correct bookmarks that you want and alter the script to set those bookmarks by name. Be sure the book marks covers the whole range of the text to be replaced. This is done in the template by highlighting the text and defini...
by ITEngineer
Tue May 15, 2018 7:49 pm
Forum: PowerShell
Topic: Modifying PowerShell script to change the Font type and size ?
Replies: 10
Views: 4638

Re: Modifying PowerShell script to change the Font type and size ?

Hi Mr. Vierra,

Would you be able to share the script here please ?
by ITEngineer
Tue May 15, 2018 6:27 pm
Forum: PowerShell
Topic: Modifying PowerShell script to change the Font type and size ?
Replies: 10
Views: 4638

Modifying PowerShell script to change the Font type and size ?

People, I need some help in modifying the below Set-Outlook-Signature.ps1 that is from https://github.com/a118n/poweradmin/blob/master/Set-Outlook-Signature/Set-Outlook-Signature.ps1 So I can adjust the email font template to below: Font Type: Consolas Font Size: 12 Font Colour: Blue I manually crea...
by ITEngineer
Mon Mar 07, 2016 4:49 am
Forum: PowerShell
Topic: Unable to display Mailbox size in Exchange server script ?
Replies: 5
Views: 1992

Re: Unable to display Mailbox size in Exchange server script ?

You cannot convert a de-serialized ByteQuantifiedSize because it gets converted to a string. $si.TotalItemSize.value -match '\((.*)bytes\)' [int64]($matches[1]) :?: Yes, the code still nor working: $xDays = 180 Get-Mailbox -ResultSize Unlimited -RecipientTypeDetails UserMailbox | Foreach-Object { $...
by ITEngineer
Mon Mar 07, 2016 4:19 am
Forum: PowerShell
Topic: Unable to display Mailbox size in Exchange server script ?
Replies: 5
Views: 1992

Re: Unable to display Mailbox size in Exchange server script ?

You cannot pipeline these commands. It must be done in separate steps. Ah I see, I've tried to modify it as below, it works with no error but it is still no result on the size column: $xDays = 90 Get-Mailbox -ResultSize Unlimited -RecipientTypeDetails UserMailbox | Foreach-Object { $si = Get-Mailbo...
by ITEngineer
Mon Mar 07, 2016 4:08 am
Forum: PowerShell
Topic: Unable to display Mailbox size in Exchange server script ?
Replies: 5
Views: 1992

Unable to display Mailbox size in Exchange server script ?

Hi All, Can anyone here please assist me in how to add one more which can display the size of the mailbox size in MB? Here's the script that I was able to execute it successfully to display all mailboxes with the last sent items older than 90 days (customizable): $xDays = 90 Get-Mailbox -ResultSize ...