You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

使用NT AUTHORITY\System账户执行Get-ADUser时AccountExpires及AccountExpirationDate属性为空的问题求助

NT AUTHORITY\System账户执行Get-ADUser时AccountExpires及AccountExpirationDate属性为空的问题求助

我遇到一个奇怪的问题,想请大家帮忙分析一下:

当我以域管理员身份执行以下PowerShell命令时,能正常获取到用户的AccountExpires和AccountExpirationDate属性:

Get-ADUser -Filter { GivenName -like 'us' } -SearchBase "DC=dom,DC=com" -Properties * | Select SamAccountName, SurName, GivenName, @{Label='CurrentDate';Expression={Get-Date} }, AccountExpires, AccountExpirationDate

输出结果完全正常:

SamAccountName        : us
SurName               : us
GivenName             : us
CurrentDate           : 20/02/2024 15:02:19
AccountExpires        : 133537212000000000
AccountExpirationDate : 01/03/2024 00:00:00

但当我通过PsExec.exe切换到NT AUTHORITY\System账户执行相同命令时,AccountExpires和AccountExpirationDate这两个属性却显示为空:

SamAccountName        : us
SurName               : us
GivenName             : us
CurrentDate           : 20/02/2024 15:02:19
AccountExpires        :
AccountExpirationDate :

之前几周这个操作都是正常的,现在突然出现了这个问题。我用来切换到SYSTEM账户的命令是:

PsExec.exe -i -s C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe

有没有人能给我一些排查的思路或者可能的原因?非常感谢!

备注:内容来源于stack exchange,提问作者Alex Lum

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.20 07:03:11