Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 638053
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T20:41:27+00:00 2026-05-13T20:41:27+00:00

I am new to Active Directory. I have a VBA Excel Add-In that should

  • 0

I am new to Active Directory.

I have a VBA Excel Add-In that should run if, and only if, the computer that it is running on is currently logged into the Active Directory, whether locally or through a VPN.

Knowing the domain name, how would I retrieve the user name for the currently logged in user?

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T20:41:27+00:00Added an answer on May 13, 2026 at 8:41 pm

    EDITED: If I understand your situation properly, then you might be going about this the wrong way.

    When your app starts up, you could do a simple ping against a machine that the user would only be able to see if they were connected to your network, whether they log into the local network or if they are connected via the VPN.

    If they already have access to your local network, it means they’ve already authenticated against whatever machanism, whether it’s Active Directory or something else, and it means they are “currently logged in”.

    On a side note, Active Directory by itself doesn’t know if someone is logged in. There’s no way you can do something like:

    ActiveDirectory.getIsThisUserLoggedIn("username");
    

    Active Directory only acts as a mechanism for user metadata, security, and authentication.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some code that queries Active Directory to verify user existence. I am
I need to create a new user in Active Directory. I have found several
Hi I have an active directory that is installed on a machine that belong
We currently have to import around 200 students into our active directory. We have
I have strange problem when querying Active Directory in C#. var ctx = new
I have a method that searches Active Directory for Usernames based on an email
I am querying information from Active Directory . I have code that works, but
I have a class that have three methods that have functionalities on Active Directory.
I'm fairly new to developing in an active directory environment. So please bear with
I have an Ldap directory synchronised from a microsoft active directory. This Ldap contain

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.