Rename PC And Join Domain?
Sep 10, 2009I am utilizing the following code to rename a computer and join it to a domain
[code]...
I am utilizing the following code to rename a computer and join it to a domain
[code]...
Is there a way to join and remove a compuer to and from a domain in vb.net instead of using netdom?
View 4 RepliesI have a function that works perfectly when I attempt to add a user from the same domain into a group of the same domain.
Function AddUserToGroup(ByVal strUserDN As String, ByVal strGroupDN As String, ByVal strGRPDC As String, ByVal strUserDC As String) As Boolean
Dim oUser As DirectoryEntry
[Code]....
The error is actually being thrown on the Invoke line, but as I said earlier, if the user is in the same domain, this works perfectly.
Iwant to join two tables,'Employee' and 'Dispatch'. Dispatch has column 'DispatcherID' and 'TechnicianID' which are both foregn keys to EmployeeID in Employee table.I want to join these two tables using EmployeeID so that i can obtain the matching name to each id.but it only works when i make a single join to either DispatcherID or TechnicianID and not for both.
[code]
select Employee.firstname+' '+Employee,secondname as Technician,Employee.firstname+' '+Employee.secondname as Dispatcher from Dispatch inner join Employee on Dispatch.TechnicianID=Employee.EmployeeID inner join Employee on
[CODE]...
How do i retrieve the domain name by its IP, I already have the code to get the host name, but i couldn't find a way to get the Domain Name by its IP
View 10 Repliesi am trying to get a list of domains' and users' name on a computer so that users can select to run a program in other identity, but I can only find the current user and I can't find any post about getting these. Is there any post or any Identity classes that can help me to get all users and domains?
View 3 RepliesI have two .NET projects in the same domain. The first project I create long time ago in VB.NET. Now I create another project that I built in C#. How can I set up my new project in the same domain so I can access the new forms that I built in C#. Do I need to submit the whole folder from the project? Do I need to change anything in the web.config? Right now I am getting this error. [PhoneControl] is the new project in C#. [URL]
View 2 RepliesI have an app that I've developed that has a vb.net front end and a SQL Server 2000 database backend. I currently have it running fine on my machine and it also installs fine on all the users that are inside the domain that the app was written in. When I try to install my application on another domain it hangs and doesn't even run the install script.
Has anyone ever experienced problems installing an app accross domains?
Is there something that I need to code differently to make it non-domain specific?
Is there any API to check domain availability?? I would like to include it in my vb .net application.
View 1 RepliesWhen my system grants access to a user, it checks that the user is enrolled in a articular network domain. Once it is verified that the user is enrolled in that particular Domain, it takes his username to verify if he has a profile inside this system.This policy is very useful, because it exploits the security of the network domain, and the user does not have to memorize additional passwords.The problem is that this forbid access to the equipment that is not enrolled in the domain, which will be the case, if the equipment is Home Edition" or a user which try to get access from his home and a personal equipment.
View 3 RepliesI wrote an ASP.NET web application. My application created a request with returning URL other e-commerce server. I want to get this.
[URL]
I used Request.Url.AbsoluteUri. But it's not OK for typing address by user.
I have a .Net 4 web app that uses Windows authentication and all works well however there is one trivial bug that is driving me nuts!
Visual Studio puts together the following for displaying who is logged in
<LoggedInTemplate>
Welcome <span class="bold"><asp:LoginName ID="HeadLoginName" runat="server" /></span>!
[Code]....
The problem is though that this is displaying as <domain>/user rather than just the username which I am assuming it is pulling this value from
System.Threading.Thread.CurrentPrincipal.Identity.Name
However I can't see anyway programtically to amend this?
I'd like to know, if I have a variable,for example, a string, how to pass its value to my new app domain:
static string _str;
static void Main(string[] args) {
_str = "abc";
[Code].....
I have a site map configured as such:
[Code]....
For some reason, even though in the sitemap, the url is defined as "[URL]" or "home.aspx", the currentNode.URL always has the domain attached to the URL, creating bad urls like "[URL]" I've tried to figure out where [URL] was coming from by search my project and inside of my web.config file, but I can't seem to find it.
I'm building an application that connects to a SQL Server 2008 database via connection string. The thing is, since the computer loading the app (or the user, in either case) is outside the Active Directory domain, I can't use Windows Authentication to connect to the DB. But when I include the database credentials, it won't let me connect either, telling me that since the computer logging in is from an untrusted domain, access is denied.
The connection string goes like this:
connectionString = "Data Source=" + ServerName + ";Initial Catalog=" + DatabaseName + _
";Integrated Security=SSPI;User ID=" + UserID + ";Password=" + Pwd
[code]......
How do a declare a domain up down box as an integer
View 5 Repliesi am trying to display the current domain name on my VB app. When a system running the VB app is connected to AD domain controller, it works fine..but when i run this VB when not connected to the domain, it crashes with error below. all i want to do is if appication cannot talk to a domain controller, display an error message."An error occurred creating the form. See Exception.InnerException for details. The error is: The specified domain either does not exist or could not be contacted."
---------------
Dim RootDSE As New DirectoryServices.DirectoryEntry("LDAP://RootDSE")
Dim DomainDistinguishedName As String = RootDSE.Properties("DefaultNamingContext").Value
[code]....
In a single server Windows domain, does anyone know how to get the servername.For example, in my test environment, we have a single Windows Small Business Server 2008 called horatio, it is the domain controller for longtest.local.[code]However, I cannot seem to grab the servername, I need a function like :GetDomainServer() that will return horatio (from the example above.
View 2 RepliesI use a simple application on a client in our domain. When i open the application as admin-user all works fine.When a domain-user with no special rights open the application theres is the following error message[code]...
View 1 RepliesI am good in excel and access coding but preety new in VB.net, I wish to prepare an application which will pull details of all the recent users logged in under a particualr domain along with the computer name. I this possible?I did a lot of google and got ActiveDs.IADsContainer and ActiveDs.IADsUser.
View 1 RepliesI have a users domain and user id. I would like to retrieve the full user name. The data is coming from a SQL table for display onto an asp.net page. Anyone know how to get the users name for someone other then the user who is using the asp.net application?
View 2 RepliesI am trying to get a VB.net app I wrote to query the domain (Active directory) for all currently logged in users to the network.
View 2 RepliesI have an app that I've developed that has a vb.net front end and a SQL Server 2000 database backend. I currently have it running fine on my machine and it also installs fine on all the users that are inside the domain that the app was written in. When I try to install my application on another domain it hangs and doesn't even run the install script.
Has anyone ever experienced problems installing an app accross domains?
Is there something that I need to code differently to make it non-domain specific?
I have a listbox with urls. For example
View 5 RepliesHow can I write the cookie for another domain in classic asp
View 4 RepliesI have an mvc intranet application using windows authentication. It currently has one controller with three actions.
The first action (index) should be available to everyone, this is no problem. The second and the third actions should only be available to users in a specific DOMAIN. However the tag only gives me 2 options: Roles or Users. I tried using Users and setting it to 'DOMAIN*' and 'DOMAIN?' but that doesn't work.
it's like a diff language to me. But I need one quick to accomplish a task.I need to take
[URL]
and get just
/folder1/folder2/file_path.txt
from it.
I have a server that is not in the domain, but has data files on it, I would like users to be able to access. But don't want to manage individual accounts on the machine. With my application that i have written that gets the data(as long as I am logged on) how can I let any user in the main domain access to the data through my application?
View 8 RepliesI am writting an application in VB 2008. The application will reside on a 'Manufacturing Workstaion'. The workstation is assigned a user ID of Prodxx. Once the workstation is booted up and the application is running the 'Operator" must login to the application. The users who login to the app must have a valid account on the domain. I need to validate the individual users against the domain security. Many Users will login and logout during the day.
View 2 RepliesI am trying to validate a csv file of domain names (eg. @google.com, @xyz.co.uk, @xyz.edu etc.) I am using the following Regular Expression:
Regex(@"@(?:[a-zA-Z0-9-]+.)+[a-zA-Z]{2,4}$", RegexOptions.Compiled);
Is there scope for improvement on the above?