PowerShell Variables

Variables are the smallest unit of any program or script it saved data in memory. All the programming languages used variables to load some data. A variable in PowerShell begins with “$” (dollar symbol) and its name can contain any letters, numbers, and underscores. To assign a value to a variable, the “=” operator isVariables are the smallest unit of any program or script it saved data in memory. All the programming languages used variables to load some data. A variable in PowerShell begins with “$” (dollar symbol) and its name can contain any letters, numbers, and underscores. To assign a value to a variable, the “=” operator is […]

Read More…

Write Host in PowerShell

Write host PowerShell cmdlet used to write something on the console. It is helpful when you need to check any value in the script or need to display a message on the console. Although there are a number of different ways to output messages Write-host is the most commonly used cmdlet in Windows PowerShell. SyntaxWrite host PowerShell cmdlet used to write something on the console. It is helpful when you need to check any value in the script or need to display a message on the console. Although there are a number of different ways to output messages Write-host is the most commonly used cmdlet in Windows PowerShell. Syntax […]

Read More…

PowerShell Cmdlet

Windows PowerShell provides a set of commands and these are called “cmdlets” or “Command lets“. These are lightweight and run by PowerShell runtime from the command line or from windows PowerShell API. Cmdlets are based on .NET classes and use .NET objects. Thus, cmdlets can receive objects as input and deliver objects as output, whichWindows PowerShell provides a set of commands and these are called “cmdlets” or “Command lets“. These are lightweight and run by PowerShell runtime from the command line or from windows PowerShell API. Cmdlets are based on .NET classes and use .NET objects. Thus, cmdlets can receive objects as input and deliver objects as output, which […]

Read More…