PowerShell中未显示AccountExpiring属性 [英] AccountExpiring property is not showing in PowerShell

查看:74
本文介绍了PowerShell中未显示AccountExpiring属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨朋友们,

我正在尝试查找一个用户的accoutexpires属性,但在PowerShell中该属性为空,如果我使用net user命令搜索cmd,则显示该用户的到期日期。

I am trying to findout accoutexpires property of one user but in PowerShell the property is empty and If I search through cmd using net user command it's showing the expiry date for that user.

我使用以下命令获取属性

I am using the below command to get the property

Get-ADUser username -properties *

请帮忙。

Any help please.

Arockia

推荐答案

获取 - ADUser 用户名 - 属性
* | SELECT accountexpirationdate


这篇关于PowerShell中未显示AccountExpiring属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆