Solved

Get-ItemProperty

Posted on 2014-01-20
4
501 Views
Last Modified: 2014-01-20
i am trying to determine what the number output of this powershell command

Get-ItemProperty 'hklm:\system\currentcontrolset\services\MSExchangeIMAP4' | Select Start

actually represents. It retunrs a number, but I cant find any documentation on what the numbers actually represent, it will be the service status, i.e. running, but I cant find any sort of key to determine what the numbers represents. If of any use, its relating to an exchange 2010 server running on windows 2008 r2 server.
0
Comment
Question by:pma111
  • 2
4 Comments
 
LVL 83

Accepted Solution

by:
oBdA earned 500 total points
ID: 39794751
No, this is not the service status; this is the start type of the service.
In short:
0 = Kernel
1 = I/O Subsystem
2 = Automatic Start
3 = Manual Start
4 = Disabled
Check here for details:
CurrentControlSet\Services Subkey Entries
http://support.microsoft.com/kb/103000
To get the status of a service, use Get-Service and check the Status property:
Get-Service MSExchangeIMAP4 | Select Status or (Get-Service MSExchangeIMAP4).Status
0
 
LVL 3

Author Comment

by:pma111
ID: 39794757
Thanks
0
 
LVL 53

Expert Comment

by:Will Szymkowski
ID: 39794766
The below are true.. for the IMAP service.

Value 1 = Startup Type "System"
Value 2 = Startup Type "Automatic"
Vlaue 3 = Startup Type "Manual"
Value 4 = Startup Type "Disabled"

Will.
0
 
LVL 53

Expert Comment

by:Will Szymkowski
ID: 39794770
Ahhh too late!
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Issue: One Windows 2008 R2 64bit server on the network unable to connect to a buffalo Device (Linkstation) with firmware version 1.56. There are a total of four servers on the network this being one of them. Troubleshooting Steps: Connect via h…
A procedure for exporting installed hotfix details of remote computers using powershell
In this video we show how to create a Distribution Group in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >>…
In this video we show how to create an Accepted Domain in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Mail Flow >> Ac…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question