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.

PowerShell

Powershell Techniques : Lock Your Workstation using Powershell.

In my previous post, I created test button on Login Screen changer GUI,  when you clicked on them it lock your workstation. I got few queries that which code I used behind the above Test button.  I used the below code to lock the workstation.  $shell = New-Object -com “Wscript.Shell”  $shell.Run(“%windir%\System32\rundll32.exe user32.dll,LockWorkStation”) Just shoot the… Continue reading Powershell Techniques : Lock Your Workstation using Powershell.

PowerShell

Powershell Tools : Windows Login Screen Changer GUI application.

  Hi, In my previous post, i described about, how to change login screen using Powershell. In weekend I thought about to create a small Powershell GUI application to set a Login screen for us. How to use it. Run the script as Administrator and in a –Sta mode.   Click on Change Login Screen… Continue reading Powershell Tools : Windows Login Screen Changer GUI application.