Powershell 7 Flashcards
What command will clear specific items for the command history?
In your example clear commands 1, 5 and 9
clear-history -id 1, 5, 9
What parameter would show the output of a command that doesn’t usually doesn’t show its outpout?
-passthru
When looking at Parameter sets what do square brackets inside arguments indicate?
Square brackets indictae that the argument accepts more then one value
When looking at Parameter sets what do Angle brackets indicate and what do they contain?
Angled brackets inficate an argument and they contain the data type
What command would close the mnotepad process on your computer?
(get-process notepad).kill()
commandlet has to be in brackets followed by a full stop, the methon and then open and close brackets.