I used a commandLet "Get-CMComponentStatusMessage" but don't understand how using it.
This is OK (Get-Date -year 2015 -month 06 -day 01)
Get-CMComponentStatusMessage -ViewingPeriod (Get-Date -year 2015 -month 06 -day 01) -ComponentName "Task Sequence Action"
This is Not OK Error on the gate-date format (Get-Date -year 2015 -month 06 -day 23)
Get-CMComponentStatusMessage -ViewingPeriod (Get-Date -year 2015 -month 06 -day 23) -ComponentName "Task Sequence Action"
Other
I want specified a computer name with -ComputerName but it return nothing. I need to create a filter with: Where-Object {$_.MachineName -eq "ComputerName"}
Get-CMComponentStatusMessage -ViewingPeriod (Get-Date -year 2015 -month 06 -day 01) -ComponentName "Task Sequence Action" | Where-Object {$_.MachineName -eq "ComputerName"}
Is it the solution or do you have a n other solution to do my function?
- Edited by Whitehot Thursday, June 25, 2015 9:54 PM
- Moved by Teodora SharkovaMicrosoft contingent staff Friday, June 26, 2015 6:24 PM moved from French forum