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.

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

PowerShell

How to find “Stopped” windows Services, whose start up mode is set to “Automatic” using PowerShell.

Hi, I called these services as “Problematic services”. The start-up mode of these services are “Automatically” so that whenever windows starts or reboot these services should start automatically. So logically if any of windows services start mode is set to “Automatic” then the Window Service should be running not “stopped”we are using WMI query language… Continue reading How to find “Stopped” windows Services, whose start up mode is set to “Automatic” using PowerShell.