独立主机即专用服务器,是指客户独立租用一台服务器来展示自己的网站或提供自己的服务,比虚拟主机有空间更大,速度更快,CPU计算独立等优势,当然价格也更贵。今天,小编给大家介绍一种基本思路来解决这个问题:
通过使用Get-Adcomputer和Get-Wmiobject组合来实现。
思路是这样的,先看一台服务器的属性值有什么可用利用的。
[12 r2-dc]: PS C: \祝辞Get-ADComputer身份12 r2-dc属性*
AccountExpirationDate,,,,,,,,:
accountExpires,,,,,,,,,,,:9223372036854775807
AccountLockoutTime,,,,,,,,,:
AccountNotDelegated,,,,,,,,,:假
AllowReversiblePasswordEncryption,,:假
AuthenticationPolicy,,,,,,,,:{}
AuthenticationPolicySilo,,,,,,:{}
BadLogonCount,,,,,,,,,,,,:0
badPasswordTime,,,,,,,,,,,:0
badPwdCount,,,,,,,,,,,,,:0
CannotChangePassword,,,,,,,,:假
CanonicalName,,,,,,,,,,,,:abc.com/Domain控制器/12 r2-dc
证书,,,,,,,,,,,,:{System.Security.Cryptography.X509Certificates。X509Certificate}
CN,,,,,,,,,,,,,,,,,:12 r2-dc
代码页,,,,,,,,,,,,,,:0
CompoundIdentitySupported,,,,,,:{假}
countryCode,,,,,,,,,,,,,:0
创建,,,,,,,,,,,,,,下午,:10/9/2016 10:29:00
createTimeStamp,,,,,,,,,,下午,:10/9/2016 10:29:00
删除,,,,,,,,,,,,,,,:
描述,,,,,,,,,,,,,:
DisplayName,,,,,,,,,,,,,:
DistinguishedName,,,,,,,,,,:CN=12 r2-dc, OU=域控制器,DC=abc, DC=com
DNSHostName,,,,,,,,,,,,,:12 r2-dc.abc.com
DoesNotRequirePreAuth,,,,,,,,:假
dSCorePropagationData,,,,,,,下午,:{10/9/2016 10:29:03 12/31/1600 4:00:01点}
启用,,,,,,,,,,,,,,,:真
HomedirRequired,,,,,,,,,,,:假
主页,,,,,,,,,,,,,,:
instanceType,,,,,,,,,,,,:4
IPv4Address,,,,,,,,,,,,,:169.254.15.118
IPv6Address,,,,,,,,,,,,,:
isCriticalSystemObject,,,,,,,:真正的
isDeleted,,,,,,,,,,,,,,:
KerberosEncryptionType,,,,,,,:{RC4、AES128 AES256}
LastBadPasswordAttempt,,,,,,,:
LastKnownParent,,,,,,,,,,,:
lastLogoff,,,,,,,,,,,,,:0
lastLogon,,,,,,,,,,,,,,:131498622097210925
LastLogonDate,,,,,,,,,,,下午,:9/10/2017 11:04:43
lastLogonTimestamp,,,,,,,,,null null