February 2019
Intermediate to advanced
626 pages
15h 51m
English
The Convert-String command may be used to simplify some string conversion operations. The conversion is performed based on an example that must be supplied. For example, Convert-String can generate account names from a list of users:
'Michael Caine', 'Benny Hill', 'Raf Vallone' | Convert-String -Example 'Michael Caine=MCaine'
The Example parameter uses the generalized syntax as follows:
<Before>=<After>
This example text does not have to be one of the set being converted. For example, the following will work:
'Michael Caine', 'Benny Hill', 'Raf Vallone' | Convert-String ...
Read now
Unlock full access