从命令行获取用户的非截断 Active Directory 组 [英] Get user's non-truncated Active Directory groups from command line

查看:30
本文介绍了从命令行获取用户的非截断 Active Directory 组的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我经常使用 net user 命令来查看用户的 AD 组:

I often use the net user command to have a look at AD groups for a user:

net user /DOMAIN <username>

这很有效,但是组名被截断为大约 20 个字符.在我的组织中,大多数群组名称都比这长得多.

This works well, however the group names are truncated to around 20 characters. And in my organization, most group names are much longer than this.

有人知道通过命令行获取非截断 AD 组的方法吗?

Does anyone know of a way to get non-truncated AD groups through the command line?

推荐答案

您可以解析 GPRESULT 命令的输出.

You could parse the output from the GPRESULT command.

这篇关于从命令行获取用户的非截断 Active Directory 组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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