PowerShell脚本,用于获取属于某个安全组的帐户以及已停用90天的帐户 [英] PowerShell Script to get accounts which belong to a certain security group AND which have been inactive for 90 days
本文介绍了PowerShell脚本,用于获取属于某个安全组的帐户以及已停用90天的帐户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我正在寻找一种方法来提取属于某个安全组的所有用户,但他们也已停用了90天或更多。
I'm looking for a way of pulling out all users who belong to a certain security group, but who have also been inactive for 90 days or more.
我试过看"Search-ADAccount -AccountInactive""和"Get-ADGroupMember";命令,但似乎没有太多运气。
I've tried looking at "Search-ADAccount -AccountInactive " and "Get-ADGroupMember" commands, but don't seem to be having much luck with this.
有什么建议吗?
谢谢
推荐答案
是的,这些是正确的命令。 你遇到的问题是什么?
Yes those are the right commands. What is the problem you are having?
这篇关于PowerShell脚本,用于获取属于某个安全组的帐户以及已停用90天的帐户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文