Multiline Commenting in PowerShell ISE
In Powershell Ver 3.0 and above you can comment and un-comment multiple lines in one go, using the below trick. Suppose you have a code and you want to comment all the lines of code starting from Line1 – Line12 like in the below example, obviously…
Powershell : Providers
As the name suggests the ‘Providers‘ provide access to data and components that would not otherwise be easily accessible at the command line. The data is presented in a consistent format that resembles a file system drive. The data exposed by Providers appears in a drive like a…
Powershell : How to get a List of the File Names in a Folder using Powershell
When there is a situation in Windows, there has to be some solution using PowerShell. So Once again I’ve something useful for you. SITUATION: A folder in my Hard disk has about 300 movies and I want to share this list of movie names with my friend,…
Implicit PowerShell Remoting – Import Exchange Cmdlets from a Server
Tired of logging to role specific servers like, exchange servers every time to execute just a PowerShell query? Now it’s time to upgrade your game 😉 since you can import all exchange, Active directory cmdlets to your machine and can be machine independent, no need to…
Powershell : How To Identify the Parameter that Accepts Pipeline Input
Use the below script for any cmdlet ( ~ Like one highlighted below ) to identify the parameters that accepts pipeline inputs : Get-Help Stop-Service -Parameter * | ?{$_.pipelineinput -ne ‘false’} | ft name, type , pipelineinput -AutoSize Happy Learning 🙂
Powershell : Pipelines Explained, Part -2
HOW PIPELINES WORK : “Piping” the object means, sending the objects as the output of one command to another command, Windows PowerShell tries to associate the piped objects with one of the parameters of the receiving cmdlet. To do so, the Windows PowerShell “parameter binding” component,…
Powershell : Pipelines Explained, Part -1
A pipeline is a series of commands connected by pipeline operators ‘ | ‘. Each pipeline operator sends the results of the preceding command to the next command. That means output by one command can be used as input to another command for processing using pipelines. And…
Powershell vs Command Prompt
Personally, Command prompt is boring and Powershell comes with comparatively lot more features and commands that can make your life easy. 1. Powershell Cmdlets are easier to remember (the Verb-Noun Pair) compared to CMD commands. 2. Powershell looks great in Blue color ( ~ My Favourite…
Categories
Author of Books
Awards
Open Sourced Projects
Author at
Blog Roll
Mike F RobbinsDamien Van Robaeys
Stéphane van Gulick
Kevin Marquette
Adam Bertram
Stephanos Constantinou
Francois-Xavier Cat
Ravikanth Chaganti
Roman Levchenko
Blog Stats
- 1,133,214 People Reached