New-StorageSpacesEventLog

Windows Server 2012 R2 and Windows 8.1

New-StorageSpacesEventLog

Enables logging of notifications for Storage Spaces.

Sintaxis


New-StorageSpacesEventLog [ <CommonParameters>]




Descripción detallada

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.

Parámetros

<CommonParameters>

Este cmdlet admite los siguientes parámetros comunes: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer y -OutVariable. Para obtener más información, consulte about_CommonParameters (http://go.microsoft.com/fwlink/p/?LinkID=113216).

Entradas

El tipo de entrada es el tipo de los objetos que se pueden canalizar al cmdlet.

  • None

Salidas

El tipo de resultado es el tipo de objetos que emite el cmdlet.

  • Microsoft.PowerShell.ScheduledJob.ScheduledJobDefinition

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


Ejemplos

Example 1 – Enable logging for Storage Spaces

PS C:\> New-StorageSpacesEventLog

Adiciones de comunidad

AGREGAR
Mostrar: