Day 5 of learning PowerShell
On day 5 of my PowerShell learning journey, I learned about how PSProviders are used. Below are some of my takeaway notes. Feel free to use them at your leisure.
My notes
In the Registry, go to HKEY_CURRENT_USER\software\microsoft\windows\currentversion\explorer. Locate the Advanced key, and set its DontPrettyPath property to 1.
Create a new directory called C:\Labs.
Create a zero-lenth file named C:\Labs\Test.txt (use New-Item).
Is it possible to use Set-Item to change the contents of C:\Labs\Test.txt to -TESTING? Or do you get an error? If you get an error, why?
Using the Environment provider, display the value of the system environment variable %TEMP%.
What are the differences between the -Filter, -Include, and -Exclude parameter of Get-ChildItem