Search found 145 matches

by ITEngineer
Fri Jul 20, 2018 12:12 am
Forum: Windows PowerShell
Topic: Bulk enable the AD mail user using PowerShell ?
Replies: 1
Views: 515

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: Windows PowerShell
Topic: PowerShell script to compare files on multiple UNC shared folder and show the difference only as .CSV table ?
Replies: 6
Views: 702

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: Windows PowerShell
Topic: PowerShell script to compare files on multiple UNC shared folder and show the difference only as .CSV table ?
Replies: 6
Views: 702

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: Windows PowerShell
Topic: PowerShell script to compare files on multiple UNC shared folder and show the difference only as .CSV table ?
Replies: 6
Views: 702

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: Windows PowerShell
Topic: PowerShell to calclualte the size of files and total file size in a directory not working ?
Replies: 4
Views: 637

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: Windows PowerShell
Topic: PowerShell to calclualte the size of files and total file size in a directory not working ?
Replies: 4
Views: 637

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: Windows PowerShell
Topic: PowerShell to calclualte the size of files and total file size in a directory not working ?
Replies: 4
Views: 637

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}}, @...
by ITEngineer
Tue Jun 26, 2018 11:16 pm
Forum: Windows PowerShell
Topic: PowerShell to parse Exchange message tracking not working ?
Replies: 13
Views: 1586

Re: PowerShell to parse Exchange message tracking not working ?

jvierra wrote:
Tue Jun 26, 2018 11:08 pm
What exact command caused that error? It appears you have an issue with our Exchange server.
It's this command: Get-MessageTrackingLog, hence I need some help in fixing that issue ?
by ITEngineer
Tue Jun 26, 2018 11:04 pm
Forum: Windows PowerShell
Topic: PowerShell to parse Exchange message tracking not working ?
Replies: 13
Views: 1586

Re: PowerShell to parse Exchange message tracking not working ?

Mr Vierra, It is the below error not the date: Cannot process argument transformation on parameter 'End'. Cannot convert value "27/06/2018 11:00:00 AM" to type "System.DateTime". Error: "String was not recognized as a valid DateTime." The input object cannot be bound to any parameters for the comman...
by ITEngineer
Tue Jun 26, 2018 10:31 pm
Forum: Windows PowerShell
Topic: PowerShell to parse Exchange message tracking not working ?
Replies: 13
Views: 1586

Re: PowerShell to parse Exchange message tracking not working ?

jvierra wrote:
Tue Jun 26, 2018 10:24 pm
Copy and paste this:

[datetime]'1/3/2018 1:00:00 AM'
The result is:
Wednesday, 3 January 2018 1:00:00 AM