February 2019
Intermediate to advanced
626 pages
15h 51m
English
So far, all of the parameters that have been used were given were names. It is possible, although rare, to splat positional parameters. This will be demonstrated using the Rename-Item command, which has two positional parameters: path and new name. It is possible to run Rename-Item as follows:
Rename-Item oldname.txt newname.txt
An array may be used to splat these positional parameters:
$renameItem = 'oldname.txt', 'newname.txt'Rename-Item @renameItem
Read now
Unlock full access