Category: PowerShell Variables
-
PowerShell Hast table
The PowerShell Hashtable is a data structure that stores one or more key/value pairs. It is also known as the dictionary or an associative array. In the PowerShell, there exists a Hashtable (System.Collections.Hashtable) object for each hash table. We can use the properties and methods of the Hashtable object in the PowerShell. The key and the values in the…
-
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…