是否将由Active Directory存储的加入域的Windows计算机的objectGUID或ObjectSID也存储在本地?

问题描述

我需要将计算机链接到Active Directory中的对象。

基本上,我需要将本地可用的属性链接到可以在AD中找到的属性,以便可以将设备肯定地链接到Active Directory中的计算机对象。该设备可能不在网络中,并且在查询时无法访问域控制器。

根据研究,本地存储的计算机的objectGUID或objectSID属性与AD的属性不匹配。

即:

get-adcomputer -identity ComputerName -property MachineGUID,SID

返回与通过

找到的GUID和SID不同的GUID和SID
wmic path win32_computersystemproduct get uuid 

和PSTools的

PSGetSID

.. so,是否存在可以在本地和AD中检索到的匹配计算机的标识符?

谢谢

解决方法

在本地尝试:

Get-WmiObject -class SoftwareLicensingService | Select-object ClientMachineID

,然后在AD域控制器上:

Import-module activedirectory
$ComputerName="enter computername here"
$Computer = Get-ADComputer –Identity $ComputerName –property *
$ComputerCMID = Get-WmiObject –computer $ComputerName -class SoftwareLicensingService | Select-object ClientMachineID
Write-Output "$ComputerName has the CMID: $ComputerCMID "

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...