Werbung

Herkunft

Kurzinformation

Attempts to select the current text as a type

Syntax

<# .Synopsis Attempts to select the current text as a type .Description Attempts to select the current text as a type. Will not display errors for selections that could not be coerced into a type. .Example Select-CurrentTextAsType #> param() Select-CurrentText | ForEach-Object { if (-not $_) { return } $text = $_ if ($text -like '$*') { $text.Trim('$ ') | Get-Variable -ErrorAction SilentlyContinue } else { $text | Get-Variable -ErrorAction SilentlyContinue } }

Beschreibung

Attempts to select the current text as a type.Will not display errors for selections that could not be coerced into a type.

Links

Liste aller Commandlets Mehr über die Windows PowerShell

Bücher zur PowerShell

Buchcover Windows PowerShell 5.0 - Das Praxishandbuch (1. Auflage 2016/5. Auflage Gesamtreihe) Windows PowerShell 5.0 - Das Praxishandbuch (1. Auflage 2016/5. Auflage Gesamtreihe)
Autoren: Dr. Holger Schwichtenberg
erschienen 2016, 996 Seiten, 49,99 €
ISBN: 3446446435
Bestellung: Amazon.de oder im Buchhandel über ISBN 3446446435

Schulungen/Seminare

Offene Seminare zur PowerShell
In-House-Seminare zur PowerShell