API Reference
Class
Persistence
Queries startup persistence points (run keys, startup folders, autostart services, scheduled tasks).
Inheritance
- Object
- Persistence
Methods
public static PersistencePostureInfo Get(String computerName = null) #Returns:
PersistencePostureInfoGets startup persistence posture for a local or remote computer.
Parameters
- computerName System.String = null
- Target computer; null/empty uses local machine.
Returns
Startup persistence posture snapshot.
public static Task<PersistencePostureInfo> GetAsync(String computerName = null, CancellationToken cancellationToken = null) #Returns:
Task<PersistencePostureInfo>Asynchronously gets startup persistence posture for a local or remote computer.
Parameters
- computerName System.String = null
- Target computer; null/empty uses local machine.
- cancellationToken System.Threading.CancellationToken = null
- Cancellation token.
Returns
Startup persistence posture snapshot.
public static IAsyncEnumerable<PersistencePostureInfo> GetManyAsync(IEnumerable<String> computerNames, Int32 degreeOfParallelism = 4, CancellationToken cancellationToken = null) #Returns:
IAsyncEnumerable<PersistencePostureInfo>Gets startup persistence posture for multiple computers with bounded concurrency.
Parameters
- computerNames System.Collections.Generic.IEnumerable{System.String}
- Target computers.
- degreeOfParallelism System.Int32 = 4
- Maximum concurrency.
- cancellationToken System.Threading.CancellationToken = null
- Cancellation token.
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object