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

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

  In my previous blog post,, i had tried to cover the basics of “Event Logs”, and in https://amandhally.com/2013/11/12/part-1-working-with-event-logs-using-powershell/previous post we had also saw the use of “Show-EventLog” cmdlet. There is no benefit of PowerShell if we are exploring “Event Logs” using GUI tools. So let’s start working on PowerShell console. There are two main… Continue reading Part–2 : 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 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.