Author Topic: Query AD from QB64  (Read 2614 times)

0 Members and 1 Guest are viewing this topic.

Offline Spambucket

  • Newbie
  • Posts: 5
    • View Profile
Query AD from QB64
« 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?
 

Offline SpriggsySpriggs

  • Forum Resident
  • Posts: 1145
  • Larger than life
    • View Profile
    • GitHub
Re: Query AD from QB64
« Reply #1 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
Shuwatch!

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
    • View Profile
Re: Query AD from QB64
« Reply #2 on: August 17, 2021, 09:03:29 am »
Is Active Directory same as current working directory ie return from _CWD$ function?

FellippeHeitor

  • Guest
Re: Query AD from QB64
« Reply #3 on: August 17, 2021, 09:03:59 am »
@bplus No.

Offline SpriggsySpriggs

  • Forum Resident
  • Posts: 1145
  • Larger than life
    • View Profile
    • GitHub
Re: Query AD from QB64
« Reply #4 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.
Shuwatch!

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
    • View Profile
Re: Query AD from QB64
« Reply #5 on: August 17, 2021, 10:31:11 am »
@SpriggsySpriggs  thanks, sounds right up your ally :)

Offline Spambucket

  • Newbie
  • Posts: 5
    • View Profile
Re: Query AD from QB64
« Reply #6 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!

Offline wiggins

  • Newbie
  • Posts: 34
    • View Profile
Re: Query AD from QB64
« Reply #7 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.
« Last Edit: August 17, 2021, 07:22:28 pm by wiggins »