简体   繁体   English

使用注册表项,确定Active Directory域服务是否正在主机上运行

[英]Using registry keys, determine if Active Directory Domain Services is running on a host

I would like to know if it is possible to determine if Active Directory Domain Services is running on a host by looking at certain registry keys. 我想知道是否可以通过查看某些注册表项来确定Active Directory域服务是否正在主机上运行。 I'm also trying to do the same for Active Directory Lightweight Directory Service. 我还尝试对Active Directory轻型目录服务执行相同的操作。

So far research has lead me to look for HKEY_LOCAL_MACHINE\\^SOFTWARE\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Uninstall\\\\ADAM_.*$ to see if AD LDS is installed, however I would like to know if the service is currently running, or alternatively, if this is possible to achieve. 到目前为止的研究使我寻找HKEY_LOCAL_MACHINE\\^SOFTWARE\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Uninstall\\\\ADAM_.*$以查看是否已安装AD LDS,但是我想知道该服务当前是否运行,或者如果可以实现的话。

I believe you can check if the service is running on the server/machine via powershell 我相信您可以通过Powershell检查服务是否在服务器/机器上运行

get-service NTDS

(Active Directory Domain Services) get the status or if it exist. (Active Directory域服务)获取状态或状态(如果存在)。 Also

get-service ADWS

to get the status of the ADDS ans AD LDS. 获取ADDS和AD LDS的状态。

Status   Name               DisplayName                           
------   ----               -----------                           
Running  ADWS               Active Directory Web Services   

Please write what you want to achieve and how you want to run this. 请写下您想要实现的目标以及如何运行它。 How you want to be notified if the service is not running. 服务未运行时如何通知您。 If you need a csv or a txt import with the server names (list). 如果需要使用服务器名称(列表)导入csv或txt。

Please provide more information or use this command it fits your needs. 请提供更多信息或使用此命令满足您的需求。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM