Search found 208 matches

by ITEngineer
Wed Jul 25, 2018 5:20 pm
Forum: PowerShell
Topic: SMTP-Addresses Exchange
Replies: 9
Views: 1868

Re: SMTP-Addresses Exchange

Thanks for posting such great script :)
So is it possible to put comma "," in the EmailAddresses column result?

EmailAddresses
Email1@domain.com, Email2@domain.com, Email3@domain.com, ...
by ITEngineer
Wed Jul 25, 2018 12:39 am
Forum: PowerShell
Topic: Executing Exchange PowerShell command in multiple servers and send the result to email?
Replies: 1
Views: 653

Executing Exchange PowerShell command in multiple servers and send the result to email?

How can this code below modified so it can be run or executed for all Exchange servers rather than the current run session only? $session = New-PSSession -Configurationname Microsoft.Exchange -ConnectionURI http://PRDMAIL01-VM/PowerShell/ -Authentication Kerberos [void] (Import-PSSession $session -A...
by ITEngineer
Tue Jul 24, 2018 11:55 pm
Forum: PowerShell
Topic: Combining the two Exchange server PowerShell to grab Meeting room permission ?
Replies: 1
Views: 626

Combining the two Exchange server PowerShell to grab Meeting room permission ?

Hi People, How can I combine the below PowerShell script to get the list of permissions that are already configured to the Remote Office365 Meeting room? Script: $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $LiveCred -Au...
by ITEngineer
Fri Jul 20, 2018 12:12 am
Forum: PowerShell
Topic: Bulk enable the AD mail user using PowerShell ?
Replies: 1
Views: 902

Bulk enable the AD mail user using PowerShell ?

Hi All, I need some assistance in the bulk PowerShell script to enable some of the users that have been provisioned in the Office 365 Exchange Online, but does not have the OnPremise Exchange mailbox: This is the one-liners that I must execute manually one by one for every new user provisioned in th...
by ITEngineer
Fri Jul 20, 2018 12:05 am
Forum: PowerShell
Topic: PowerShell script to compare files on multiple UNC shared folder and show the difference only as .CSV table ?
Replies: 6
Views: 1309

Re: PowerShell script to compare files on multiple UNC shared folder and show the difference only as .CSV table ?

This is the updated script as per your suggestion: The output on the console is correct: Processing PRODDC01-VM... Processing PRODDC02-VM... Processing PRODDC03-VM... ... Processing PRODDC29-VM... $folderReference = "\\PRODDC01-VM\sysvol\domain.com\LogonScripts" Get-ADComputer -LDAPFilter "(&(object...
by ITEngineer
Thu Jul 19, 2018 11:46 pm
Forum: PowerShell
Topic: PowerShell script to compare files on multiple UNC shared folder and show the difference only as .CSV table ?
Replies: 6
Views: 1309

Re: PowerShell script to compare files on multiple UNC shared folder and show the difference only as .CSV table ?

You cannot do this: $folderDifference = "\\$_.DNSHostName\sysvol\domain.com\LogonScripts" It must be this: $folderDifference = "\\$($_.DNSHostName)\sysvol\domain.com\LogonScripts" Subexpression evaluation must be used for an object's properties. yes, you are right. however, there is no result at th...
by ITEngineer
Thu Jul 19, 2018 5:30 am
Forum: PowerShell
Topic: PowerShell script to compare files on multiple UNC shared folder and show the difference only as .CSV table ?
Replies: 6
Views: 1309

PowerShell script to compare files on multiple UNC shared folder and show the difference only as .CSV table ?

Hi Folks, I need some help in modifying the PowerShell script to compare the date time created and file size for the multiple AD Domain Controllers servers shared folder Example of the UNC path to compare: Source will be first copied to this reference folders\\PRODDC01-VM\sysvol\domain.com\LogonScri...
by ITEngineer
Wed Jun 27, 2018 6:21 am
Forum: PowerShell
Topic: PowerShell to calclualte the size of files and total file size in a directory not working ?
Replies: 4
Views: 1234

Re: PowerShell to calclualte the size of files and total file size in a directory not working ?

The code I posted is a suggestion as to how to make this work so that it can be debugged. I cannot access an Exchange server right now so I cannot test it. You will have to look at the whole error message and identify the offending object. When using remote Exchange the returned objects will not be...
by ITEngineer
Wed Jun 27, 2018 5:22 am
Forum: PowerShell
Topic: PowerShell to calclualte the size of files and total file size in a directory not working ?
Replies: 4
Views: 1234

Re: PowerShell to calclualte the size of files and total file size in a directory not working ?

I got this error on the column for the DB & log size: ERROR: You cannot call a method on a null-valued expression. is it because I'm executing it from my laptop PowerShell ISE as Administrator: $s = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri http://PRDEXC01-VM/PowerShell/ -Au...
by ITEngineer
Wed Jun 27, 2018 4:24 am
Forum: PowerShell
Topic: PowerShell to calclualte the size of files and total file size in a directory not working ?
Replies: 4
Views: 1234

PowerShell to calclualte the size of files and total file size in a directory not working ?

Hi People, I need someone to fix the below script which calculates the Mailbox.EDB file size in GB as well as Log files size which doesn't seem to be working? Get-MailboxDatabase | Select Server, Name, @{Name="Number of Mbx";expression={(Get-Mailbox -Database $_.Identity | Measure-Object).Count}}, @...