Question: 1 . What is a PS Provider? 2 . What are the names of the providers available from the Get - PSProvider cmdlet? 3 .

1. What is a PS Provider?
2. What are the names of the providers available from the Get-PSProvider cmdlet?
3. What does the sl alias stand for and do?
4. What does the below command show?
sl alias:\ ; gci
5. What does the Where-Object cmdlet do and what is its shortest form?
6. What is the output of the below command?
Get-Process | Where-Object {$_.PriorityClass -eq "High"}
7. What is the short form for Where-Object cmdlet?
8. What are the meanings of the below PS punctuations, operators, and cmdlets?
a) $_
b)!
c) AND
d)|
e).
f)?
g) LT
h) FT
i){some code}
j) ;
9. Explain each part of the below script.
dir Cert:\CurrentUser -Recurse |
where {!$_.psiscontainer -AND $_.notafter -lt (Get-Date)}|
ft notafter, thumbprint, subject -AutoSize Wrap
10. What's the cmdlet to get the drives?
11. What does the below command do?
sl Env:\ ; gci *
12. Describe the gi [Get-Item] cmdlet. Is it the same as the gci [Get-Child-Item] cmdlet?
13. What does this command do?
gci | where {!($psitem.psiscontainer)}
14. What is the :: punctuation sign used for?
15. What do the below commands do?
New-Item -Name mytempfile2-ItemType File Value "My file"
Add-Content mytempfile2-Value "HELLO WORLD"
16. Explain what each of the below commands does:
PS C:\> Push-Location
PS C:\> Set-Location HKCU:\Software\test
PS HKCU:\Software\test> Set-ItemProperty . newproperty "mynewvalue"
PS HKCU:\Software\test> Pop-Location
PS C:\>

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!