CodeSteps

Python, C, C++, C#, PowerShell, Android, Visual C++, Java ...

Author : David

PowerShell – How to create Variables?

PowerShell allows us to create the variables. We use the “$” Symbol to create the variables. Through this Article, we will discuss defining the variables and PowerShell command(s) to support defining them. Create Variables in PowerShell Let’s take a simple example; PS C:\> $message = “Hello!” Here we have defined the variable $message and assigned […]

PowerShell – How to view command history?

Whenever you enter commands at PowerShell command prompt, internally PowerShell maintains session history; the commands we entered during the current session. We can retrieve these commands through PowerShell cmdlets. We are going to discuss these commands through this Article. The Get-History command This command is used to display the command history information which is stored […]

PowerShell – Automatic Variables – $HOST, $HOME, $PWD and $ERROR

PowerShell provides another set of Automatic variables to allow us to get the information about the home directory, present working directory, host details, and error details. In this article, we will discuss these variables. The $HOST Automatic Variable This variable contains the current host application object for PowerShell. Below displays the details of the host […]

PowerShell – Functions

Functions are code blocks holds the sequence of statements and can be called using their names whenever / wherever required. The list of statements inside the function are grouped with in the curly braces (“{ }”). Defining and using the Functions in PowerShell are easy and will discuss how to do this in this Article. […]

Scroll to top