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

Create Software Inventory of Remote Machines/Servers using Powershell.

Hi, Sometime i think that my Powershell blog postings are mainly TASK Based, i think my most of the post are related to “How to do that and how to achieve and ease that task with Powershell”, isn’t ?. The tittle of my blog is “The Life of an IT administrator”, and i love to… Continue reading Create Software Inventory of Remote Machines/Servers using Powershell.

PowerShell

List of useful WMI classes to use with PowerShell.

  Hi, Here is the list of some useful WMI Classes :). ClassName Contains win32_ComputerSystemProduct Serial Number, Vendor, information win32_bios Bios Information , including Version Number of BIOS win32_battery Battery Information win32_Physicalmemory Serial Number, Capacity, Part Number of Installed Memory Stick. win32_DiskDrive Capacity, Serial Number of Drive and other info of the Hard-disk win32_DesktopMonitor Monitor… Continue reading List of useful WMI classes to use with 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

Creating Shares Remotely using Powershell

  PowerTip of the Day, from PowerShell.com:   Let’s assume you need to access another machine’s file system but there is no network share available. Provided you have local administrator privileges and WMI remoting is allowed in your Firewall, here is a one-liner that adds another share remotely: PS> ([wmiclass]‘\\storage1\root\cimv2:Win32_Share’).Create(‘c:\’, ‘Hidden’, 0, 12, ‘secret share‘).ReturnValue… Continue reading Creating Shares Remotely 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.