Hello,
I am new to powershell and I am trying to run a basic command:
Limit-eventlog -logname Security -computername server1, server2 -maximumsize 6400KB
My computer and the two servers are both running powershell 4.
If I remove one of the computernames the command works fine...it doesn't matter which one, each one will work, they just won't work together.
The error message has nothing to do with the servers though:
"Limit-eventlog: the value supplied for MaximumSize parameter has to be in the range of 64 KB to 4GB with an increment of 64KB. Please enter a proper value and then retry".
It doesn't matter what value I try (64 KB, etc )it is always the same error with both servers. Remove one server and the command runs fine.
What is the proper syntax to use for multiple servers?
thanks