Mindblown: a blog about philosophy.
-
PowerShell Array
Like other scripting languages, Windows PowerShell also supports a data structure named as an array. An array in a PowerShell is a data structure that is used to store the collection of values in a single variable. The values in an array can be the same type or the different types. A value can be a string, an…
-
Preference Variables
The preference variables are those variables which customize the behavior of the Windows PowerShell. Any user can change the value of these variables. These variables affect the PowerShell operating environment and also all the commands which run in the environment. The Following table lists the preference variables and their default values: Variable Default Value $ConfirmPreference…
-
Automatic Variables
The automatic variables are those variables that store the state of the Windows PowerShell. These variables will contain the information of a user and the system, default variables, runtime variables, and PowerShell settings. These variables can be created and maintained by Windows PowerShell. Following is the list of automatic variables in PowerShell: Variable name Description…
-
PowerShell Variables
Variables are the fundamental part of the Windows PowerShell. We can store all the types of values in the PowerShell variables. For example, we can store the result of commands, and the elements which are used in expressions and commands, such as paths, names, settings, and values. In fact, they store the objects specifically, Microsoft…
-
PowerShell Where-Object
The Where-Object in PowerShell selects the objects from a collection based on their property values. With the Starting of PowerShell version 3.0, you can construct the Where-Object cmdlet in the following two different ways: Syntax Parameters Following are the parameters used in this cmdlet: -Property This parameter is used to specify the name of an object property. It is optional and…
-
PowerShell Sort-object
The sort-object is the cmdlet of a PowerShell, which sorts the objects in an order based on the property values. We can sort the objects by single or multiple properties. The various properties use the hash tables to sort the objects in ascending or descending order. Syntax Parameters -Stable This parameter was introduced in PowerShell version 6.2.0. The…
-
PowerShell ForEach-Object
The ForEach-Object in PowerShell executes a block of statements against each item in a collection of input objects. These objects are passed through the pipeline or specified by using the -InputObject parameter. With the Starting of PowerShell version 3.0, following are the two different ways for constructing the ForEach-Object command: Syntax Parameters Following are the different parameters used in the ForEach-Object cmdlet: -MemberName…
-
PowerShell Test-Path
The Test-Path cmdlet in PowerShell returns $true if all the elements of a file or directory path exist, otherwise $false. It can also tell whether the file was updated after or before the particular date. It determines whether the syntax of a path is valid or not. Syntax Parameters Following are the parameters used in the Test-Path…
-
PowerShell Start-Process
The Start-Process cmdlet in PowerShell starts one or more processes on the local computer. The saps and start are the two aliases for this cmdlet. Syntax Parameters We can use the following parameters of Start-Process cmdlet to specify the options, such as starting a process in new window, loading a user profile, or using the alternate credentials. -FilePath The…
-
PowerShell Get-Help
The PowerShell Get-Help cmdlet is used to display information about the PowerShell commands and concepts. It displays the information, including functions, providers, workflows, scripts, and aliases of cmdlets. To get help for a PowerShell cmdlet, type the Get-Help followed by the name of a cmdlet, such as: Get-Help Set-Item. We can also get help for a PowerShell provider,…
Got any book recommendations?