PowerShell

MVP Community Day: November 9th, 2013, Saturday at Microsoft (Gurgaon)

Hi, This Saturday is MVP Community day. We are doing 2 PowerShell events on that day. One event is on “Start Using PowerShell for Managing MS SQL Server” by MVP Sarabpreet Singh Anand. Second one is on “Managing Windows Event Logs Using PowerShell” by me. Please use the below link to register for the event.… Continue reading MVP Community Day: November 9th, 2013, Saturday at Microsoft (Gurgaon)

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 Script : Find the name of Installed Antivirus on local or remote laptop.

Do you ever want to know what antivirus installed on remote laptop, or does remote system has a antivirus or not, knowing this is  always a pain, normally you have to call user and ask them,. Today i have found a cool namespace named ““root\SecurityCenter2” ”  and this name space has a class “AntiVirusProduct ”,… Continue reading PowerShell Script : Find the name of Installed Antivirus on local or remote laptop.

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.

PowerShell

Getting Last Installation Success Date and Last Search Success date of Windows Updates using Powershell.

  Everyday is a new day , with new problems and new issues, sometime at users side and sometime at Server side. The life in IT is quite happening. These new issues and problems leads to new solutions and new scripts. In my environment I asked few users to run their windows updates, but as… Continue reading Getting Last Installation Success Date and Last Search Success date of Windows Updates using Powershell.