N
nopatch4humancruelty
Guest
Hi everybody. I hope that you are well and I hope that you are calm despite the terrible situation. I'm italian and no one can understand you more than me.
---
I have a problem. I'm writing a C# service (which run as LOCALSYSTEM) that can retrieve some user information (the info retrieved are info about the current user logged into the machine). In order to print the user domain, I've used Environment.UserDomainName but I know that this can print the LocalSystem domain (so the machine domain).
My user is into my company domain. But I've created a fake user on my PC which it is not into that domain (so the domain of this fake user must be my machine name LPT-XXXX-YYY).
So, instead of Environment.UserDomainName how I can retrieve the user domain even if the user is not into my company domain but is in "my machine domain" (I hope I've used the right words to describe my problem).
Thank you.
Continue reading...
---
I have a problem. I'm writing a C# service (which run as LOCALSYSTEM) that can retrieve some user information (the info retrieved are info about the current user logged into the machine). In order to print the user domain, I've used Environment.UserDomainName but I know that this can print the LocalSystem domain (so the machine domain).
My user is into my company domain. But I've created a fake user on my PC which it is not into that domain (so the domain of this fake user must be my machine name LPT-XXXX-YYY).
So, instead of Environment.UserDomainName how I can retrieve the user domain even if the user is not into my company domain but is in "my machine domain" (I hope I've used the right words to describe my problem).
Thank you.
Continue reading...