API Reference
Command
Watch-ADXNetLogonLog
Watches a NetLogon debug log and emits entries as they appear.
Examples
Example 1: Watch a local NetLogon debug log synchronously
Watch-ADXNetLogonLog -Path 'C:\Windows\debug\netlogon.log' -NoAsync
Example 2: Watch a remote NetLogon log using FileSystemWatcher and skip duplicates
Watch-ADXNetLogonLog -ComputerName 'dc-01.contoso.com' -Path 'C:\Windows\debug\netlogon.log' -UseFileSystemWatcher -SkipDuplicates
Common Parameters
This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters.
Syntax
Watch-ADXNetLogonLog -Path <string> [-ComputerName <string>] [-NoAsync] [-SkipDuplicates] [-UseFileSystemWatcher] [<CommonParameters>]#Parameters
- Path string
- The path to the NetLogon log file.
- ComputerName string
- Domain controller name.
- NoAsync SwitchParameter
- Runs the operation synchronously.
- SkipDuplicates SwitchParameter
- Skips duplicate entries if set.
- UseFileSystemWatcher SwitchParameter
- Uses FileSystemWatcher for real-time updates.