PowerShell

PowerShell Tips : Changing Monitor brightness using PowerShell.

   Do, you ever tried to change the monitor brightness using PowerShell. If not, than go and try it. It’s too cool. You can use the below “WmiMonitorBrightnessMethods” class to set the brightness of the monitor. You need to use “WmiSetBrightness” method of the class to set brightness. Do this: 1.       Set your monitor brightness… Continue reading PowerShell Tips : Changing Monitor brightness using PowerShell.

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

Get Network Information of local and remote Computers using PowerShell.

Hi, Last Sunday one of my friend come to visit me at my home, he is a SQL Administrator and we were talking about Powershell, and he told me that he is facing a problem, he said that in their environment they have approx. 500 Servers and they want to know the network configuration of… Continue reading Get Network Information of local and remote Computers using PowerShell.

PowerShell

Delete Offline OST files from login users account using PowerShell.

  Hi,   Yesterday I was surfing the TECHNET Script repository and see that one user is requested for a script which can delete offline email file {ost} from login users.   This seems simple to me and I wrote a 3line script which can accomplish this task.   Download the script from : http://gallery.technet.microsoft.com/scriptcenter/Delete-OST-from-User-App-22df1c88 1. … Continue reading Delete Offline OST files from login users account using PowerShell.

PowerShell

Uninstall Software using PowerShell

  Hi, today i was trying to uninstall the the software using PowerShell. i See few blog posts about uninstalling software using PowerShell they re recommending WMI to uninstall software using the .Uninstalled() method. But i think this method is not right because it don’t un-installed the software properly. Sometime uninstalling software using these method… Continue reading Uninstall Software using PowerShell

PowerShell

Creating System Footprints using PowerShell

    WMI can retrieve a lot more object instances than you might think. If you submit a parent class, Get-WmiObject returns all instances of all derived classes. That’s why a simple line like the following can get you all hardware-related instances: PS> Get-WmiObject -Class CIM_PhysicalElement | Group-Object -Property __Class   Count Name                                                       Group… Continue reading Creating System Footprints using PowerShell

PowerShell

“Enable or Disable” Network adapters using Powershell.

  Hi, In our IT environment we don’t give  “admin” rights to the normal users and they can’t enable/disable, install/un-install anything. Today one of our users was having some problem with Wi-FI and to troubleshoot it i need to “enable” and “disable” Wi-Fi network adapter few times, but to enable or disable the network adapter… Continue reading “Enable or Disable” Network adapters using Powershell.