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

New-StorageSpacesEventLog

Windows Server 2012 R2 and Windows 8.1

Updated: July 8, 2013

Applies To: Windows Server 2012 R2 Preview

New-StorageSpacesEventLog

Enables logging of notifications for Storage Spaces.

Syntax


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.

Parameters

<CommonParameters>

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

Inputs

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

  • None

Outputs

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.


Examples

Example 1 – Enable logging for Storage Spaces

PS C:\> New-StorageSpacesEventLog

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