Hi Everyone,
Would like to seek your help on getting the AD user and computer policy via bigfix.
Thanks in advance!
Hi Everyone,
Would like to seek your help on getting the AD user and computer policy via bigfix.
Thanks in advance!
These will return the policy name and status âŚ
//GPO - Machine
if (name of operating system does not contain âWinâ) then âN/Aâ else if (not exists key âHKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Group Policy\State\Machine\GPO-Listâ of registry OR not exists values âDisplayNameâ of keys of key âHKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Group Policy\State\Machine\GPO-Listâ of registry) then âN/Aâ else (values âDisplayNameâ of it, âAppliedâ) of keys whose (value âAccessDeniedâ of it != 1) of key âHKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Group Policy\State\Machine\GPO-Listâ of registry as string;(values âDisplayNameâ of it, âDeniedâ) of keys whose (value âAccessDeniedâ of it != 0) of key âHKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Group Policy\State\Machine\GPO-Listâ of registry as string
//GPO - User
if (name of operating system does not contain âWinâ) then âN/Aâ else if (not exists current user) then âNo User Logged Onâ else if (not exists keys of key (âHKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Group Policy\Stateâ & (component string of sid of security account (name of current user)) & â\GPO-Listâ) of registry OR not exists values âDisplayNameâ of keys of key (âHKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Group Policy\Stateâ & (component string of sid of security account (name of current user)) & â\GPO-Listâ) of registry) then âN/Aâ else ((values âDisplayNameâ of it, âAppliedâ) of keys whose (value âAccessDeniedâ of it != 1) of key (âHKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Group Policy\Stateâ & (component string of sid of security account (name of current user)) & â\GPO-Listâ) of registry as string);((values âDisplayNameâ of it, âDeniedâ) of keys whose (value âAccessDeniedâ of it != 0) of key (âHKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Group Policy\Stateâ & (component string of sid of security account (name of current user)) & â\GPO-Listâ) of registry as string)
Hi nicksberger,
Thanks for your quick reply! However, upon testing of user policy in Q&A it always result to âNo User Logged Onâ. Can you verify if this is correct?
Hi nicksberger,
No need for verification, I was able to run the scripts successfully and have the needed information.
Thank you very much for your help!
What result do you get in fixlet debugger -
q: exists current user
Result from Q&A. - A: No User Logged On
But it was queried correctly when I created in analysis for all windows computers.
Great analysis @nicksberger!
The challenge I see in my environment is likely similar to what Richard is seeing where âcurrent userâ does not consistently provide accurate feedback depending on the OS/configuration. For computers where âcurrent userâ is evaluated properly, this relevance works.
We just need from IBM a more consistent and accurate âcurrent userâ evaluation.
You can try -
logged on user
or
number of logged on users = 1
QnA needs to be run in âlocal client evaluationâ mode to get a result from that inspector.
I tried @nicksberger relevance in an analysis in my dev environment. However many/most of these machines were not evaluating âcurrent userâ accurately. Where it did evaluate correctly, the relevance results were good.
I know that getting accurate âcurrent userâ results has always been a bit challenging. It seems like it hasnât gotten any better on 9.5.2 (that we are running).