Skip to content

Latest commit

 

History

History
47 lines (31 loc) · 1.13 KB

New-StorageSpacesEventLog.md

File metadata and controls

47 lines (31 loc) · 1.13 KB
external help file Module Name ms.date online version schema title
StorSpaces2_Cmdlets.xml
StorageSpaces
10/30/2017
2.0.0
New-StorageSpacesEventLog

New-StorageSpacesEventLog

SYNOPSIS

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

PARAMETERS

INPUTS

None

OUTPUTS

Microsoft.PowerShell.ScheduledJob.ScheduledJobDefinition

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

NOTES

RELATED LINKS