Questions tagged [windowsdomainaccount]

A Windows domain account is an account in a Windows domain, which includes accounts of users, computers, printers and other security principals registered with a central database (called Active Directory Service) located on domain controllers.

From the Microsoft Developer Network.

A Windows domain account is an account in a Windows domain, which includes accounts of users, computers, printers and other security principals registered with a central database (called Active Directory Service) located on domain controllers.

48 questions
28
votes
1 answer

Domain credentials for a WebClient class don't work

I'm trying to get a HTML source of a website through C# code. When I access the site with Windows Authentication, the following code works: using (WebClient client = new WebClient()) { client.Credentials =…
agnieszka
  • 14,897
  • 30
  • 95
  • 113
9
votes
1 answer

How to find loginname, database username, or roles of sqlserver domain user who doesn't have their own login?

I have created a login and database user called "MYDOMAIN\Domain Users". I need to find what roles a logged on domain user has but all the calls to get the current user return the domain username eg. "MYDOMAIN\username" not the database username eg.…
Adam Butler
  • 3,023
  • 5
  • 35
  • 40
7
votes
3 answers

User rights needed for IIS 7.5 application pool user (domain user, not the AppPoolIdentity)

We have an active directory domain (let's call it foodomain) and a domain user account (foodomain\fooAppPoolUser) used for the IIS application pool identity. We want to run the app pool under this user account and not under Network Service or the…
5
votes
1 answer

Get the ID? of the current user like SharePoint can?

I'm at a client site where they have an application which began in SharePoint and is slowly migrating away to a very custom ASP.NET application. Some of their data elements are still hosted within SharePoint lists, two of which currently in…
David
  • 208,112
  • 36
  • 198
  • 279
5
votes
2 answers

Unlocking Locked Out accounts using PowerShell (not with Quest AD cmdlets)

I'm writing a GUI tool using PowerShell that is able to do most AD related tasks with just a user name and button click. I've done all the usual ones (Create / Remove Users, Create / Remove Security & Distribution Groups, Resetting Passwords, etc)…
Jonny
  • 2,663
  • 1
  • 24
  • 24
4
votes
1 answer

Windows Service ran by domain account cannot access file while full control

I have created a C# service that: - Picks up and opens a local text file - Opens an Excel-file used as template (saved locally) - Fills in the data from the text file in the excel file - Saves the Excel file to a network folder. The service runs…
Jan Solo
  • 183
  • 1
  • 8
  • 19
3
votes
2 answers

Contradictory values from Active Directory regarding password expiry date

I am using Powershell to determine the password expiry date for domain accounts. I have used the following command to get this information: Get-ADUser -Filter {SamAccountName -eq ""} -Properties "DisplayName" ,…
3
votes
1 answer

Path of kerberos tickets TGT and service tickets in windows XP and unix?

Could someone please send across the path of kerberos tickets TGT and service tickets in windows XP and unix? Also, how do we know the version of kerberos being used in windows and unix? Many Thanks,
xyz
  • 8,607
  • 16
  • 66
  • 90
3
votes
2 answers

Error “TF400998: The current user failed to retrieve the SQL Server service account information” when trying to configure backup plan in TFS 2015

This is a "Answer Your question" type of the post. Just hope the information here will help anyone. Situation: Migrated TFS from Machine A to Machine B Restored the DB Reconfigured DBs using TfcConfigure RemapDB Changed service account, url,…
GrimSmiler
  • 561
  • 1
  • 4
  • 21
3
votes
1 answer

Can System.Environment.UserName be easily faked?

In a windows WPF desktop app I am using System.Environment.UserName in this way: var q = from l in db.Logins where l.WinLogin.Trim().Equals(System.Environment.UserName, StringComparison.InvariantCultureIgnoreCase) …
Vojtěch Dohnal
  • 7,867
  • 3
  • 43
  • 105
2
votes
3 answers

Run ASP.NET MVC app as a specific user

I have a an ASP.NET MVC application that will need to access file resources on another machine, so I have shared the relevant directory and given a fresh domain user access to it. My question is: How do I get my ASP.NET MVC app to take on this new…
directedition
  • 11,145
  • 18
  • 58
  • 79
2
votes
0 answers

Windows 7 Domain Account cannot read/write inside AppData folder

I am creating an installer with InnoSetup. My program requires that I be able to read and write to files as it reads data from my hardware device that is connected over IPv4. I also write to files as I am creating content within my program. I am…
user1135197
  • 81
  • 1
  • 4
2
votes
2 answers

Sending e-mail through C#, Exchange and EWS Managed API gives error 407: Request failed - Proxy authentication required. Why?

I am writing a Windows forms application based on C# and the EWS Managed API 2.2.0 (Microsoft.Exchange.WebServices.dll assembly) for a client of mine who works on a company. The app's logic is simple: My client puts his e-mail address…
2
votes
0 answers

Add Exisiting Domain user to Local Computer with Powershell

I'm trying to automate the desktop file migration of user accounts for some of our legacy users. I have a powershell script that can remove them from whatever domain the may be joined too, then join our current domain. But I want to copy files from…
2
votes
0 answers

.net Web Project using IIS authentication across untrusted domains

In intranet the website is deployed to domain A, the users are in domain B, the 2 domains donnot trust each other. how to configure to make that the user in Domain B can access the website in Domain A using the NT account. thanks!
lestergyl
  • 41
  • 4
1
2 3 4