Powershell Flashcards
1
Q
What are the four categories of commands in PS?
A
cmdlets, functions, scripts and native Win32 executables.
2
Q
What is a function?
A
Is a named piece of PS script code that lives in memory while the interpreter is running and discarded on exit.
3
Q
What is a script?
A
Script command is a piece of PS code that lives in a text file with a .ps1 extension. These script files are loaded and parsed every time they’re run.
4
Q
What is a cmdlet?
A
Is a term specific to the PS environment.
5
Q
What is a native command?
A
These are external programs that can be executed by the operating system.