Author: robert

Rally the orphan processes

Using WMI to find orphan process.

Read More

Custom errors

Custom Management.Automation.ErrorRecord objects are not very common, but if you ever want to provide the user better details about an error, you can create and report your own.

Read More

Enum’s numeric values

Without any loop statements or pipelines, get the numeric values of an Enum (such as IO.FileAttributes) in 1 statement.

Read More

Private variable

Attain the value of a private variable declared in a child scope from that scope’s own child scope.

Read More

Format elements

Given an Array of at least 2 elements, return a new Array of formatted elements without using array indices, pipelines or loop statements.

Read More

Reverse text line

Given an Array of at least 2 elements, return a new Array of formatted elements without using array indices, pipelines or loop statements.

Read More