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>

このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。

入力

入力型は、コマンドレットにパイプできるオブジェクトの型です。

  • None

出力

出力型は、コマンドレットによって生成されるオブジェクトの型です。

  • 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