#PSTip A quick list of strings
When you need to create a collection of strings and operate on each of them you’d go with something like:
Read MoreWhen you need to create a collection of strings and operate on each of them you’d go with something like:
Read MoreIt’s pretty easy to find path to your Documents folder with a little help from .NET Framework’s Environment class: PS> [Environment]::GetFolderPath('MyDocuments') C:\Users\Administrator\Documents You can accomplish the same using the identifier …
Read MoreIn PowerShell version 2.0, when we had to check if a given file or folder is older or newer, we would do that using:
Read MoreThe Windows Explorer Preview Pane can display the contents of text files, graphics, and other file types without having to use external software.
Read MoreLet’s presume you have a text file that contains the following two lines: My current user profile is $env:USERPROFILE. The system folder is $env:windir\System32.
Read MoreNot all WMI class properties can be modified. Many of these properties are read-only. Take a look at the properties and Win32_ComputerSystem, for example.
Read More