external help file | Module Name | online version | schema |
---|---|---|---|
ComputerManagement-help.xml |
ComputerManagement |
2.0.0 |
Backup Eventlogs from remote computer
Backup-EventLog [[-ComputerName] <String>] [[-LogPath] <String>] [[-BackupPath] <String>] [<CommonParameters>]
This function copies event log files from a remote computer to a backup location.
Backup-EventLogs -ComputerName dc1
The location to copy the logs to.
Type: System.String
Parameter Sets: (All)
Aliases:
Required: False
Position: 3
Default value: C:\Logs
Accept pipeline input: False
Accept wildcard characters: False
The NetBIOS name of the computer to connect to.
Type: System.String
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The path to the logs you wish to backup. The default logpath "C:\Windows\system32\winevt\Logs" is used if left blank.
Type: System.String
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: C:\Windows\system32\winevt\Logs
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
May need to be a user with rights to access various logs, such as security on remote computer.