New-StorageSpacesEventLog
Enables logging of notifications for Storage Spaces.
Syntax
New-StorageSpacesEventLog
Description
The New-StorageSpacesEventLog cmdlet creates an event log under Applications and Services logs in Event Viewer named StorageSpaces Events, and creates a scheduled job in Windows PowerShell to monitor for events and log them to this event log.
This cmdlet requires administrative privileges and you must restart the computer before logging begins.
Examples
Example 1 - Enable logging for Storage Spaces
PS C:\>New-StorageSpacesEventLog
Inputs
None
Outputs
Microsoft.PowerShell.ScheduledJob.ScheduledJobDefinition
This cmdlet outputs an object that represents the scheduled job created to monitor for Storage Spaces events.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for