PowerShell

PowerShell Tips : How to find all DSC related cmdlets

  It’s very easy to find the PowerShell “Desired State Configuration” cmdlets. Just run the below command , and it will show you all DSC related Cmdlets. Get-Command -Module PSDesiredStateConfiguration     Regards Aman Dhally If you like, you can follow me on Twitter and Facebook. You can also check my “You Tube” channel for PowerShell video tutorials. You can download all of my scripts from… Continue reading PowerShell Tips : How to find all DSC related cmdlets

PowerShell

PowerShell Tips: Change The Foreground Colour of PowerShell console using .net and PowerShell. and ,Happy Holi

  Quote of the day “Start where you are. Use what you have.  Do what you can. –Arthur Ashe”   So, it’s nearly weekend.   On Monday we have a HOLI festival in India. The festival of colours.   Wishing you a very Happy Holi, , May, Your life, be colourful with the colours of… Continue reading PowerShell Tips: Change The Foreground Colour of PowerShell console using .net and PowerShell. and ,Happy Holi

PowerShell

Part–3 : Working with Event Logs using PowerShell :- Get-EventLog

Part-1: Working with Event Logs using PowerShell Part–2 : Working with Event Logs using PowerShell :- Get-EventLog   Welcome to the part 3 of the “PowerShell and Event Log” post,  In my previous post we shows the usages of “Get-EventLog” cmdlet. Today we are going to use some more advance and cool features of the… Continue reading Part–3 : Working with Event Logs using PowerShell :- Get-EventLog

PowerShell

Working with PowerShell Preference Variables: $OFS (Output field Separator).

  When you open PowerShell console, type $ and start pressing ‘tab’, you will amaze that there are many pre-built variables exists there. One of the variable is $OFS, this is a preference variable and full meaning of $OFS is ‘Output Fields Separator’. What it does? It specified the character to use as separator while… Continue reading Working with PowerShell Preference Variables: $OFS (Output field Separator).

PowerShell

PowerShell Tip : Find Default Printer Installed using Powershell.

The job of System Administrators are very adventurous, sometime you have to find a little-little settings and sometime you have to write a big-big,  hundred’s of line’s scripts. Today, my task was to find a default printer installed on laptops. To solve it , i used the Win32_Printer class. You can run the below query… Continue reading PowerShell Tip : Find Default Printer Installed using Powershell.

PowerShell

Powershell Tips : Use Only Powershell V2 cmdlets , with PowershellV3 Installed.

I use Windows 7 (64 bit) with Powershell V3 installed on it. Most of our users are still on PowerShell v2, Sometime when I am writing scripts for them i use some PowerShell v3 cmdlets accidently. Normally I write the initially version of all scripts on PowerShell console and I do test my all script… Continue reading Powershell Tips : Use Only Powershell V2 cmdlets , with PowershellV3 Installed.