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 3963816
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T03:15:36+00:00 2026-05-20T03:15:36+00:00

As in the topic – is there any way to get currently logged user

  • 0

As in the topic – is there any way to get currently logged user appdata environment variable?

In an application there is no problem to do that with SHGetFolderPath() or simply getenv(“appdata”) but in service these methods doesn’t work. It runs as “SYSTEM” account.

I think that should be a way to obtain %appdata% using WMI but I’m not sure about that.

%userprofile% is the second point of interest by I handle it when I will get %appdata%.

  • 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-20T03:15:37+00:00Added an answer on May 20, 2026 at 3:15 am

    From a service viewpoint, there’s no such thing as “the” currently logged-on user. There might be zero, one or more. Furthermore, it generally indicates a design error if your service needs it. What is the real problem you’re trying to solve?

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

Sidebar

Related Questions

As the topic states - is there any technology that would let me write
I know that this topic was discussed there a lot of times, but I've
As topic I'm currently in sweden but when launching my map it shows that
There is a small topic branch that I'd like to apply on top of
As topic suggested, how can I unit test a function that does not return
as topic, I am strange that why does the SDK not provide API to
This topic can look similar to others but I haven't found any usable answer
as topic says, how do I get a td in a table by it's
This topic is a remark for PHP get image src So we have a
I have read some topic regarding with my question but there code doesn't work

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.