QB64.org Forum

Active Forums => QB64 Discussion => Topic started by: Spambucket on August 17, 2021, 08:38:27 am

Title: Query AD from QB64
Post by: Spambucket on August 17, 2021, 08:38:27 am
Question of the day... is it possible to query Active Directory from QB64 running on a Windows OS?
 
Title: Re: Query AD from QB64
Post by: SpriggsySpriggs on August 17, 2021, 08:51:34 am
Through WinAPI, probably. Through PowerShell, definitely. I'd have to do some research for you. I don't quite understand AD myself too much
Title: Re: Query AD from QB64
Post by: bplus on August 17, 2021, 09:03:29 am
Is Active Directory same as current working directory ie return from _CWD$ function?
Title: Re: Query AD from QB64
Post by: FellippeHeitor on August 17, 2021, 09:03:59 am
@bplus No.
Title: Re: Query AD from QB64
Post by: SpriggsySpriggs on August 17, 2021, 09:07:44 am
@bplus Active Directory is the domain service for Windows Professional and Enterprise. It allows administrators to create/manage/delete users and apply Group Policies to control the individual accounts or computers.
Title: Re: Query AD from QB64
Post by: bplus on August 17, 2021, 10:31:11 am
@SpriggsySpriggs  thanks, sounds right up your ally :)
Title: Re: Query AD from QB64
Post by: Spambucket on August 17, 2021, 02:11:32 pm
Thanks for the replies... I have worked with QB64's SHELL command, but not sure if that would work with command-line access to AD. I am looking to poll a staff member's first, last name and another field. Thanks!
Title: Re: Query AD from QB64
Post by: wiggins on August 17, 2021, 07:20:09 pm
Question of the day... is it possible to query Active Directory from QB64 running on a Windows OS?

I have called modules ADFIND and ADMOD from Joeware from QB64.  I never had any issues.  I have also used Powershell as well.  Just be super careful using these tools, because they allow you to modify multiple accounts from one command line.