TestimoX

API Reference

Class

RemoteLogFileHelper

Namespace ADPlayground
Assembly ADPlayground
Modifiers static

Helper methods for copying log files from remote computers.

Inheritance

  • Object
  • RemoteLogFileHelper

Methods

public static String BuildUncPath(String computerName, String path) #
Returns: String

Builds a UNC path from the given computer name and file path.

Parameters

computerName System.String requiredposition: 0
Target computer name.
path System.String requiredposition: 1
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: String

Copies any file (including UNC) to a local temporary directory while reporting copy progress.

Parameters

sourcePath System.String requiredposition: 0
localDirectory System.String requiredposition: 1
progress System.IProgress{ADPlayground.DnsLogBatchProgress} requiredposition: 2
public static String CopyFileToTemp(String sourcePath, String localDirectory = null) #
Returns: String

Copies any file (including UNC paths) to a local temporary directory using read-sharing, for snapshot analysis.

Parameters

sourcePath System.String requiredposition: 0
Local or UNC file path.
localDirectory System.String = null optionalposition: 1
Optional destination directory.

Returns

Full path to the copied file.

public static String CopyRemoteFile(String computerName, String remotePath, String localDirectory = null) #
Returns: String

Copies a remote file using the ADMIN$ or drive share.

Parameters

computerName System.String requiredposition: 0
Target computer name.
remotePath System.String requiredposition: 1
Path of the remote file.
localDirectory System.String = null optionalposition: 2
Optional destination directory.

Returns

Full path to the copied file.

public static Boolean IsUncPath(String path) #
Returns: Boolean

Returns true if the specified path is a UNC path.

Parameters

path System.String requiredposition: 0