API Reference
Class
RemoteLogFileHelper
Helper methods for copying log files from remote computers.
Inheritance
- Object
- RemoteLogFileHelper
Methods
public static String BuildUncPath(String computerName, String path) #Returns:
StringBuilds a UNC path from the given computer name and file path.
Parameters
- computerName System.String
- Target computer name.
- path System.String
- Local path on the target computer.
Returns
UNC path to the remote file.
CopyFileToTemp 2 overloads
public static String CopyFileToTemp(String sourcePath, String localDirectory, IProgress<DnsLogBatchProgress> progress) #Returns:
StringCopies any file (including UNC) to a local temporary directory while reporting copy progress.
Parameters
- sourcePath System.String
- localDirectory System.String
- progress System.IProgress{ADPlayground.DnsLogBatchProgress}
public static String CopyFileToTemp(String sourcePath, String localDirectory = null) #Returns:
StringCopies any file (including UNC paths) to a local temporary directory using read-sharing, for snapshot analysis.
Parameters
- sourcePath System.String
- Local or UNC file path.
- localDirectory System.String = null
- Optional destination directory.
Returns
Full path to the copied file.
public static String CopyRemoteFile(String computerName, String remotePath, String localDirectory = null) #Returns:
StringCopies a remote file using the ADMIN$ or drive share.
Parameters
- computerName System.String
- Target computer name.
- remotePath System.String
- Path of the remote file.
- localDirectory System.String = null
- Optional destination directory.
Returns
Full path to the copied file.
public static Boolean IsUncPath(String path) #Returns:
BooleanReturns true if the specified path is a UNC path.
Parameters
- path System.String