windows-server-2008 – 缺少Get-ADComputer OperatingSystem属
发布时间:2020-12-13 23:52:14 所属栏目:Windows 来源:网络整理
导读:虽然所有在线文档和示例都说Get-ADComputer的结果应该有一个OperatingSystem属性,但我的Win Server 2008 R2上没有. 以下是我在Get-ADComputer上的所有内容: PS I: Get-ADComputer -filter{name -eq "sit-selpa"} | Get-Member TypeName: Microsoft.ActiveD
虽然所有在线文档和示例都说Get-ADComputer的结果应该有一个OperatingSystem属性,但我的Win Server 2008 R2上没有.
以下是我在Get-ADComputer上的所有内容: PS I:&; Get-ADComputer -filter{name -eq "sit-selpa"} | Get-Member TypeName: Microsoft.ActiveDirectory.Management.ADComputer Name MemberType Definition ---- ---------- ---------- Contains Method bool Contains(string propertyName) Equals Method bool Equals(System.Object obj) GetEnumerator Method System.Collections.IDictionaryEnumer... GetHashCode Method int GetHashCode() GetType Method type GetType() ToString Method string ToString() Item ParameterizedProperty Microsoft.ActiveDirectory.Management... DistinguishedName Property System.String DistinguishedName {get... DNSHostName Property System.String DNSHostName {get;set;} Enabled Property System.Boolean Enabled {get;set;} Name Property System.String Name {get;} ObjectClass Property System.String ObjectClass {get;set;} ObjectGUID Property System.Nullable`1[[System.Guid,msco... SamAccountName Property System.String SamAccountName {get;set;} SID Property System.Security.Principal.SecurityId... UserPrincipalName Property System.String UserPrincipalName {get... sit-selpa是我正在运行它的本地主机的Server 2008 R2服务器. 为什么只有9个房产?我在网上搜索过,但我似乎无法找到有这种经历的人.
您的Get-AdComputer仅使用对象的默认属性.使用-Properties *将它们全部抓取:
Get-ADComputer -filter {name -eq "sit-selpa"} -Property * | Get-Member 然后,只需获取OperatingSystem: Get-ADComputer -filter {name -eq "sit-selpa"} -Property * | Select-Object OperatingSystem 但是,您不需要使用通配符获取所有对象属性.您可以显式指定其他属性: Get-ADComputer -Identity sit-selpa -Properties OperatingSystem ... Get-ADComputer -Identity sit-selpa -Properties OperatingSystem,OperatingSystemVersion (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- windows – 如何检查多个用户是否使用网络共享EXE文件?
- powershell – 使用新代码签名证书更改了包系列名称
- 如果有人在Windows(NTFS)上运行Ant符号链接任务会发生什么?
- 关于windows下 mysql5.7 忘记root密码重置
- 带有Xamarin Forms和WCF服务的Windows Phone 8.1
- windows – 以编程方式在Internet Explorer中设置cookie
- azure – MSBuild在构建时失败,正在寻找旧版本的Microsoft.
- ReadyBoost 的应用教程
- windows-server-2003 – 清理Active Directory
- 多次加载Dll以允许.Net中的多线程
推荐文章
站长推荐
- 32位数据转8位数据和8位数据转32位数据
- 使用Windows 7- 64位更新Android SDK Tools rev
- windows-server-2008 – 如何从Windows Server 2
- winapi – 为商业应用程序挂钩Win32 API的推荐方
- xaml – ComboBox SelectedValue不显示
- Windows 8:以迷你日历显示周数
- windows-7 – 如何使用PowerShell递归替换文件和
- 正在阅读:Win10激活失败提示错误0xC004C003的原
- SecureCRT_FX 8.3.3 x86 & x64 (带注册机)下
- 在两台Windows机器之间创建VPN的最佳方法是什么?
热点阅读