Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic


Windows Server 2012 R2 and Windows 8.1

Updated: July 8, 2013

Applies To: Windows Server 2012 R2 Preview


Enables logging of notifications for Storage Spaces.


New-StorageSpacesEventLog [ <CommonParameters>]

Detailed 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.



This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters.


The input type is the type of the objects that you can pipe to the cmdlet.

  • None


The output type is the type of the objects that the cmdlet emits.

  • Microsoft.PowerShell.ScheduledJob.ScheduledJobDefinition

    This cmdlet outputs an object that represents the scheduled job created to monitor for Storage Spaces events.


Example 1 – Enable logging for Storage Spaces

PS C:\> New-StorageSpacesEventLog

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.