Search found 145 matches

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

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: Windows PowerShell
Topic: Modifying PowerShell script to change the Font type and size ?
Replies: 10
Views: 2785

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: Windows PowerShell
Topic: Modifying PowerShell script to change the Font type and size ?
Replies: 10
Views: 2785

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: Windows PowerShell
Topic: Modifying PowerShell script to change the Font type and size ?
Replies: 10
Views: 2785

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: Windows PowerShell
Topic: Unable to display Mailbox size in Exchange server script ?
Replies: 5
Views: 1634

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: Windows PowerShell
Topic: Unable to display Mailbox size in Exchange server script ?
Replies: 5
Views: 1634

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: Windows PowerShell
Topic: Unable to display Mailbox size in Exchange server script ?
Replies: 5
Views: 1634

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 ...
by ITEngineer
Mon Dec 22, 2014 8:18 pm
Forum: Windows PowerShell
Topic: How to list all server Locale and Reginal setttings as CSV ?
Replies: 9
Views: 2115

Re: How to list all server Locale and Reginal setttings as C

jvierra wrote:You cannot. You have to write a script to do that.
yes, that's why I ask in this forum how to do that ?
by ITEngineer
Mon Dec 22, 2014 6:58 pm
Forum: Windows PowerShell
Topic: How to list all server Locale and Reginal setttings as CSV ?
Replies: 9
Views: 2115

Re: How to list all server Locale and Reginal setttings as C

Notice this shows the user registry: http://p0w3rsh3ll.wordpress.com/2012/01/22/working-with-system-locale-and-user-locale/ yes, I can execute it from my local machine using one liner: [System.Globalization.CultureInfo]([int]("0x" + (Get-WmiObject Win32_OperatingSystem).locale)) But how to put that...
by ITEngineer
Mon Dec 22, 2014 6:48 pm
Forum: Windows PowerShell
Topic: How to list all server Locale and Reginal setttings as CSV ?
Replies: 9
Views: 2115

Re: How to list all server Locale and Reginal setttings as C

jvierra wrote:I just posted the answer in you other thread,

which one man ? I cannot see it :shock: