PackageDeployment Module Help

Package Deployment Module

Test-Line Cmdlet

Version 4.0.0.5

Test-Line

Synopsis

Existence of a line

Syntax

Test-Line [-Path] <String> [-Line] <String> [[-Context] <String>] [-ContinueOnError] [<CommonParameters>]

Description

Checks whether a specific line exists in the specified file. Wildcards can be used also.

Parameters

-Context <String>

User: Execution under user account; logging in HKEY_CURRENT_USER, i.e. for the user.
UserPerService: User-related command, execution in Service context.
Computer: Execution under user account; logging in HKEY_CURRENT_MACHINE, i.e. for the computer.
ComputerPerService: Execution in service context; logging in HKEY_LOCAL_MACHINE, i.e. for the computer.

Required

False

Position

2

Accepts pipeline input

False

-ContinueOnError <SwitchParameter>

Continues script execution in spite of errors in the respective command

Required

False

Position

Named

Accepts pipeline input

False

-Line <String>

Content of the line. Wildcards (? *) can be used.

Required

True

Position

1

Accepts pipeline input

False

-Path <String>

File path.

Required

True

Position

0

Accepts pipeline input

False

<CommonParameters>

For more information about common parameters, type "Get-Help about_CommonParameters".