domaincontroller

Add other domain user in TFS server

好久不见. 提交于 2021-01-28 14:07:05
问题 I have a two domain named domain1.in and domain1.in. Now i installed and create a collection project in domain1.in server. I would like to add the domain2.in user in domain1 TFS. I don't know whether its possible or not. Please help me. 回答1: You need to have a trust relationship setup between domains. Specifically, domain1 needs to trust domain2. Here's an MSDN article on setting up trust in AD: http://technet.microsoft.com/en-us/library/cc738617(v=ws.10).aspx 来源: https://stackoverflow.com

Can an application server outside a windows domain verify a user of that domain?

我只是一个虾纸丫 提交于 2020-07-10 10:27:42
问题 I am building a Winform App which includes an App server using C#. It's for a corporate client of mine and the client has it's own windows domain. However, the app server will NOT be in their domain. The app will sit in a cloud VM . The client (like any client) wants to make things easy for their users. They want to use their user's windows Id. They don't want their users having to log in again to access my App. As long as the user is part of a windows domain group , he/she should be given

Query domain controllers & NTP servers time w32tm /monitor format output

随声附和 提交于 2020-01-05 09:04:21
问题 I'm using the following to measure the time offset between our domain controllers and ntp servers. $Servers = "ntp.xxxxx,ntp.xxxxx,dc1,dc2,dc3,dca,dcb,dcc" $ListDomains = "domain1","domain2" Foreach ($Server in $ListServers) { $time = (w32tm /stripchart /dataonly /computer:$Server /samples:1)[-1].split("[")[0] "$Server`: `t $Time" #| out-file $timeFile -append $time = "" } ForEach ($Domain in $ListDomains) { "** $Domain **" w32tm /monitor /domain:"$Domain.unisa.edu.au" /nowarn /threads:5 }

Determine current domain controller programmatically

无人久伴 提交于 2019-12-18 04:54:32
问题 I need to query current domain controller, probably primary to change user password. (P)DC name should be fully qualified, i.e. DC=pdc,DC=example,DC=com (how to properly name such notation?) How can it be done using C#? 回答1: To retrieve the information when the DomainController exists in a Domain in which your machine doesn't belong, you need something more. DirectoryContext domainContext = new DirectoryContext(DirectoryContextType.Domain, "targetDomainName", "validUserInDomain",

Lastlogon from All Domain Controllers CSV output

谁说我不能喝 提交于 2019-12-13 07:54:58
问题 I came across the following script that almost meets my requirement. It queries all the domain controllers and gets the recent logged in time and date. What i am trying to do is run it against AD i.e. using "-Searchbase" parameter get i want to be able to get the results in a csv format containing samaaccountnme, Searchbase location and lastlogon time. It is essentail for the auditing purposes. Import-Module ActiveDirectory function Get-ADUserLastLogon([string]$userName) { $dcs = Get

can't connect to AD without specifically connecting to a DC

一世执手 提交于 2019-12-11 06:37:21
问题 I'm trying to bind to an Active Directory server in C# but on-site I seem to have issues not reproducible in the test environment. I'm getting an Exception System.Runtime.InteropServices.COMException (0x8007203A): The server is not operational. at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail) at System.DirectoryServices.DirectoryEntry.Bind() at System.DirectoryServices.DirectoryEntry.RefreshCache() at System.DirectoryServices.DirectoryEntry.FillCache(String propertyName)

Reset Azure VM pw for Domain Controller

↘锁芯ラ 提交于 2019-12-02 15:59:28
问题 We're using an azure vm as a domain controller and for some reason the local administrator's pw has expired. When trying to reset the pw I get the following error message: "VMAccess Extension does not support Domain Controller." I have tried unsuccessfully running the suggested script from here. Any ideas how to solve this? 回答1: MSFT Support let me know that it's not possible to log into an Azure VM that is a domain controller VM with the user that is created in the Azure portal when

UserPrincipals.GetAuthorizationGroups An error (1301) occurred while enumerating the groups. After upgrading to Server 2012 Domain Controller

自闭症网瘾萝莉.ら 提交于 2019-11-30 06:20:58
Research: Similar Issue with workaround, but not actual solution to existing problem Similar issue pointing to Microsoft End Point update as culprit The above links are the most suited to my problem, I have also viewed every similar question listed by Stack Overflow upon creating this post, and only the above referenced questions fit my issue. Background: I have been using UserPrincipal.GetAuthorizationGroups for permissions for specific page access running IIS 7.5 on Server 2008 R2 in a C#.NET 4.0 web forms site for 2 and a half years. On May 15 2013 we removed a primary Domain controller

Determine current domain controller programmatically

耗尽温柔 提交于 2019-11-29 07:05:10
I need to query current domain controller, probably primary to change user password. (P)DC name should be fully qualified, i.e. DC=pdc,DC=example,DC=com (how to properly name such notation?) How can it be done using C#? To retrieve the information when the DomainController exists in a Domain in which your machine doesn't belong, you need something more. DirectoryContext domainContext = new DirectoryContext(DirectoryContextType.Domain, "targetDomainName", "validUserInDomain", "validUserPassword"); var domain = System.DirectoryServices.ActiveDirectory.Domain.GetDomain(domainContext); var

UserPrincipals.GetAuthorizationGroups An error (1301) occurred while enumerating the groups. After upgrading to Server 2012 Domain Controller

大城市里の小女人 提交于 2019-11-29 05:11:01
问题 Research: Similar Issue with workaround, but not actual solution to existing problem Similar issue pointing to Microsoft End Point update as culprit The above links are the most suited to my problem, I have also viewed every similar question listed by Stack Overflow upon creating this post, and only the above referenced questions fit my issue. Background: I have been using UserPrincipal.GetAuthorizationGroups for permissions for specific page access running IIS 7.5 on Server 2008 R2 in a C#