Powershell General Notes Flashcards
What is the powershell that is available cross-platform?
Powershell Core
Cmdlets use a _ naming convention
Cmdlets use a Verb-Noun naming convention
The _ identifies the action for the cmdlet to perform, and the _ identifies the resource on which the cmdlet will perform its action.
verb, noun
What framework was powershell built on?
.NET Framework
What are the two main PowerShell platforms?
Windows PowerShell
PowerShell (originally referred to as PowerShell Core)
What Execution Policy is this :
Limits script execution on all signed scripts. This setting requires that all scripts are signed by a trusted publisher, including scripts that you write on the local computer. It prompts you before running scripts from publishers that you haven’t yet classified as trusted or untrusted. However, verifying the signature of a script doesn’t eliminate the possibility of that script being malicious. It simply provides an extra check that minimizes this possibility.
AllSigned
What Execution Policy is this :
This is the default execution policy for Windows server computers. Scripts can run, but the policy requires a digital signature from a trusted publisher on scripts and configuration files that have been downloaded from the internet. This setting doesn’t require digital signatures on scripts that are written on the local computer.
RemoteSigned
What Execution Policy is this :
This is the default execution policy for Windows client computers. It permits running individual commands, but it doesn’t allow scripts.
Restricted
What Execution Policy is this :
This is the default execution policy for non-Windows computers, which you can’t change. It allows unsigned scripts to run. This policy warns the user before running scripts and configuration files that aren’t from the local intranet zone.
Unrestricted
You want to start PowerShell 7 from the command line. Which command will you run?
pwsh.exe
You want to start PowerShell 5.1 from the command line. Which command will you run?
powershell.exe
_____ are groups of related PowerShell capabilities that are bundled together into a single unit.
Modules.
Modules help with organizing cmdlets into distributable units. Microsoft and other software companies provide modules as part of the management tools for their applications and service
What powershell command that verifies the powershell install?
$PSVersionTable
What powershell command shows the powershell version?
$PSVersionTable.PSVersion