Hello again,

I was configuring Usage a Data Logging settings using powershell. These settings we can configure from either Central Admin (Central Admin >> Monitoring >>Configure usage and health data collection) or from PowerShell.

So I choose my all time favorite Powershell. I have executed the following command.

Following are the options:

But, I am getting following exception:

When, I tried the same options from Central Admin, I could successfully set those settings. After doing some research I found that when we configure these settings through PowerShell it doesn’t take the space in logs location path. So I tried again without space in path, it executed successfully.

Or if I specify the path in either quotation mark (‘’) or in double quotes (“”) then it works successfully as follows:

Or

Here, I just want to share the error which occurs since this error message is different than what should be it.
Thanks!

Happy Reading.