[Windows 2003] 如何得知所屬群組?



贊助商連結


bobhsieh
2011-02-16, 10:04 AM
請問,

如何在windows ad環境下,
透過批次檔指令 or UnxUtils ...
得知某個帳號所屬群組?

贊助商連結


mis339
2011-02-16, 01:35 PM
這可能要寫程式了
因為一個帳號可以屬於多個群組,群組又能再包群組……

bobhsieh
2011-02-16, 08:40 PM
這可能要寫程式了
因為一個帳號可以屬於多個群組,群組又能再包群組……




在ithome有網友告知,可用


whoami /groups
or
net user /domain <ID>


本也以為要寫程式,
結果有現成指令可用 ...


不過以後要想辦法用powershell改寫 ...:eye:

mis339
2011-02-16, 08:52 PM
在ithome有網友告知,可用
[/SIZE] net user /domain <ID>[SIZE=3]

謝謝分享,又學到一招。