New-StorageSpacesEventLog

New-StorageSpacesEventLog

Enables logging of notifications for Storage Spaces.

구문

New-StorageSpacesEventLog [ <CommonParameters>]

자세한 설명

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.

매개 변수

<CommonParameters>

이 cmdlet은 일반 매개 변수 -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer 및 -OutVariable을 지원합니다. 자세한 내용은 다음을 참조하세요. about_CommonParameters(https://go.microsoft.com/fwlink/p/?LinkID=113216).

입력

입력 유형은 cmdlet에 파이프할 수 있는 개체의 유형입니다.

  • None

출력

출력 유형은 cmdlet이 내보내는 개체의 유형입니다.

  • 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