PowerShell

Change Service Start Mode using PowerShell

  PowerTip of the Day, from PowerShell.com:   You can use WMI like this if you want to change a service start mode: ([wmi]’Win32_Service.Name=”Spooler”‘).ChangeStartMode(‘Automatic’).ReturnValue ([wmi]’Win32_Service.Name=”Spooler”‘).ChangeStartMode(‘Manual’).ReturnValue   Note that a return value of 0 indicates success. You will need Administrator privileges to change the start mode. Thanks to www.powershell.com

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.

SCOM

“When you un-installed the SCOM Agent from managed servers, SCOM is not discovering those Servers again to re-install agents”

Hi, Today i have found that on few of our servers there are wrong version of SCOM Agents is installed, for example 32bit Agents are installed on 64bit Servers. Then i plan to uninstall them and reinstall the proper agent version I un-installed the Agents using “Add remove programs” on all the servers and then… Continue reading “When you un-installed the SCOM Agent from managed servers, SCOM is not discovering those Servers again to re-install agents”

SCOM

“Remote SMTP queue length is outside the configured threshold” error in SCOM

  Hi, As the error clearly showing us that the problem is with one and more “SMTP” queue length. Let’s investigate a little bit more about it. Error: in error the source is “SMTP” and the path is one of our “Exchange Server”, in the error it is showing that the default number of message… Continue reading “Remote SMTP queue length is outside the configured threshold” error in SCOM

PowerShell

“Script to list all folder of Outlook and total number of emails store in them” using PowerShell

  Hi, from past few days I tried to writing a script which shows me that how many folders I do have in my Outlook and total number of emails stored on them. I get only 50% success so far, I am able to see the folders but somehow not able to see the total… Continue reading “Script to list all folder of Outlook and total number of emails store in them” using PowerShell