ASP.NET - Deleting Computer Accounts Within AD?

Apr 27, 2012

I'm building out a decommissioning application that will allow an individual to provide an computer name and the utility will go out and purge the computer record from various locations. I'm running into a problem when attempting to delete a computer account from Active Directory. I'm impersonating a service account that only has rights to "Delete All Child Objects" within a particular OU structure. The code below works if I run it with my domain admin account; however fails with an "Access Denied" when I run it with the impersonated service account. I have verified that the permissions are correct within AD as I can launch Active Directory Users and Computers using a "runas" and providing the service account credentials and I can delete computer objects perfectly fine.

Wondering if anyone has run into this before or has a different way to code this while still utilizing my current OU permissions. My gut tells me the "DeleteTree" method is doing more then just deleting the object.

Sub Main()
Dim strAsset As String = "computer9002"
Dim strADUsername As String = "serviceaccount@domain.com"

[Code]....

View 2 Replies


ADVERTISEMENT

Run Application On Windows Startup For All User Accounts On Computer?

Nov 11, 2011

how can i run a application on windows startup for all user accounts on my computer?

View 3 Replies

ASP.NET - Deleting SMS 2003 Computer Object

Apr 27, 2012

I'm building out a decommissioning application that will allow an individual to provide an computer name and the utility will go out and purge the computer record from various locations. I'm running into a problem when attempting to delete a computer object from SMS 2003. I found some good examples on the web of people utilizing a .Delete_ method via WMI. I'm working to convert that over to VB.NET; however the application is throwing an error stating that the "Delete_" method doesn't exist.

Wondering if someone could take a look through the code and see if I'm doing something obviously wrong. Or, if there is a better method to deleting a computer object from SMS 2003, I'd be interested in that as well.

[URL]

Sub Main()
Dim Result As Boolean = False
Dim objManagementScope As New System.Management.ManagementScope

[Code].....

View 1 Replies

Best Way To Design Accounting Accounts

Jun 14, 2012

What a best way to design accounting accounts tables in database and link to vb.net.is it design one table for the accounts names and balances and another table for the journal

View 2 Replies

How To Create Login Accounts

Jan 7, 2010

I'm trying to create a program where a user has to login. However, I also want the user to create their own account and login with it whenever they want. For this I have 2 forms (frmLogin and frmCreateLogin).frmLogin has a username, a password and a login button, aswell as a linklabel connecting it to frmCreateLogin, here is the code for it:[code]I haven't added any code to frmCreateLogin because I don't know where to start. Can anyone nudge me in the right direction, as I have no idea how to code this.

View 13 Replies

Save Accounts To A File?

Jul 18, 2012

Well, in my previous thread i needed help deleting arrays, for the codes i use its here[url]...

[code]...

Well, i want to save my array to a file that will be encrypted and then i could read it, example when i have my arrays in the application and i save it, i close my application and then i open it again i would like to load all the arrays and all the items in the "DomainUpDown" with a button, which will be read from the file, but i don't want the file to be seen from the users for secure reasons, i would like it to be encrypted.

What i had in mind was saving it as ini file, encrypting the file to another extension, and encrypt it to binary, but to do that i would use the special folder in the AppData, is there a better way for me to save the arrays and encrypt it and be able to read it again and load it in my application ?

View 19 Replies

Sorting Accounts In A .txt File?

Jun 21, 2011

I'm trying to make a simple program that stores my accounts in a .txt file. Each account has 3 properties, account, password, and source. I know there are alot of better ways to do this, but I'd really rather use a text file because I'm working with PhP also.

testacc1 password1 source1
testacc2 password2 source2
testacc3 password3 source3

I can easily write this to a .txt file, but how can I go through it?

View 5 Replies

C# - Search All The User Accounts In A Domain In .NET?

May 14, 2012

How do I search all the user accounts in a domain in .NET? Not the computer names in the domain, but the user accounts, that's what you are using to log on Windows.

View 3 Replies

Double Entry Accounts System?

Apr 15, 2012

double entry accounts system. tables and fields of table .. or any sample...i know debit credit book keeping system but could not apply it..like day book and party ladger..

View 1 Replies

How To Disable All Controls On Accounts Page

Jul 27, 2010

I am using a masterpage. On a accounts page I have a Usercontrol on this UserControl I have one more user control. If Account is closed I want to Disable all the controls on Accounts page (including parent and child userControl - controls collection).

View 1 Replies

Loading Multiple Accounts Into Program

Mar 10, 2011

I want to learn the code to load multiple accounts in to the program in the format "username:password" and have them auto sign in.

View 3 Replies

Make A Login Form With 10 Accounts?

Jun 3, 2012

I want to make a Login Form that can allow 10 users to login with different user name!!

I have created a Login Form but i don't know how to add an database to store the user profile which come form the another form!

Also ,what I need to type in after I add the database to connect with the Login Form and my form that the user name come from??

View 4 Replies

No Mapping Between Accounts Name And Security Ids Was Found

Jul 6, 2010

On window XP environment i ran a VB application which use MS Excel 11 application and open the workbook but systems give automation error while opening the workbook which is stated below

-2147023564

Automation Error

"No mapping between account names and security ids was found"

I was logged on to window as local account and guest user.

View 1 Replies

Active Directory Moving User Accounts To A Different OU

Sep 1, 2011

I am a programmer for 6 years with VB6, now I am using VB 10 Express and working with Active Directory for the first time. I have been able to make a lot of things work with AD.I have been trying time and again to make this work. I have been googling and trying samples and keep running into one error after another, the latest is a [code] "There is no such object on the server."[code] My objective for this is to move the user account from the office OU to the Disabled OU. I have been fighting this for so long that I am going crosseyed.[code]

View 1 Replies

Appending Text File From Different User Accounts?

Sep 23, 2010

I have a piece of software that can be used either on an admin account or a standard user account of a completely stand-alone, Windows XP machine.

I have also set up some log files that the system uses when it either performs an admin function or if an error occurs. the location of these files is a C: location - not (from what I can see) associated with the admin account in any way.

When running the software from the admin machine, the log file is appending fine. When running the software from the standard user machine, the log file causes an error, suggesting that "Access to the path 'C:HNP MTWP Log FilesAdministrative ToolsAdmin.log' is denied.

This error occurs when first setting up the FileStream. Here is my code.

Imports System.IO
Public Class Log
Private Const cnDirectory as String = "C:HNP MTWP Log FilesAdministrative Tools"

[Code]....

View 2 Replies

Display All User Accounts On A Listbox Using VB2010?

Jan 22, 2011

i just started using vb2010 and i am working on a project wherein i want to display all the computer user accounts on a list box

View 8 Replies

Emurate Windows Accounts On Local Machiene?

Dec 1, 2010

Just wondering if there is a managed code way to emurate windows accounts on the local machine

All of the .net egs i have seen use wmi

View 4 Replies

VS 2005 - Creating New Accounts And Saving In Bin File

Nov 15, 2009

I'm currently working on a program to store files and information. I'm wanting the program to be able to have multi-user logins i.e. there are numerous combinations of usernames and Passwords. I've created a program that will create new accounts and save them in a .bin file (in the form Username Password). However, now I need to use the user accounts to grant access to a form.

View 1 Replies

VS 2008 Populate Combo Box With User Accounts?

Jun 21, 2009

Currently, i have a simple application that manages the user account on a machine. The functionality includes the adding, deleting and modifying of user account. For deleting a user account, the username has to be entered into a text box. But i want a combo box to be created and named of the user account that are already created on the machine

View 4 Replies

.net - WCF Service Accounts / A Call To SSPI Failed, See Inner Exception?

May 24, 2011

I have a WCF self-hosted as a Windows Service.When I start the service (under the NETWORK_SERVICE account), I can consume the service from my ASP.NET application on a different server.However, the business rules have changed. Now I need to run the service under my own account. I am able to stop the service, and start it again under my account. No problem there.Until I try to consume the service from my ASP.NET application on the other service. I get:

A call to SSPI failed, see inner exception

View 1 Replies

Making WebBrowser Connect To Different Windows User Accounts IE?

Oct 27, 2011

Would it be possible to make a webbrowser link to the cookies and such of any windows user account no matter which windows user account you were on. So the user would use a drop down list or something then press a button and be able to switch to another user accounts internet explorer favourites, cookies, and flash cookies, rather than having to log out and then log into another user account?

View 3 Replies

Possible To Use Some Free Available Online Accounts To Publish Click Once Deployment

Jan 27, 2009

I am wondering if it is possible to use some free available Online Accounts to publish Click Once Deployment and then be able to access these accounts for updates.

View 1 Replies

Save Data In DGV And Individual Tables Into User Accounts

Mar 12, 2009

I have never worked with datagridview before. I need to know how to use it so i can use it in my (calculator) program. I would like to know how to make columns, rows, linking the cells in the table/grid to textboxes so values entered into the textboxes (on the calculator) after pressing save goes straight to the table.

View 1 Replies

Unlocking User Accounts In Active Directory With .net Form?

Oct 26, 2011

I am working on a VB.net form, I am trying to connect to Active Directory, with a VB form have the user be able to search for a username and then return if the account is locked or unlock, if the account is locked I want the option to unlock the account based on the credentials of the user that is doing the search.

View 11 Replies

Sockets - Check That If Another Computer In The Network Send Some String Data To The Listener Computer?

Mar 19, 2012

i have a task to create a TCP Server (a program that is listening on its network card interfaces for incoming data stream).I have search on the internet and i found that i can use two methods : Socket or TCPListener class.I have created an example for Socket class, but i wondering how could i test it? I need to check that if another computer in the network send some string data to the listener computer , then this message should be displayed.Here is the example from microsoft that i am using for TCP Server using Socket:

Public Shared Sub Main()
' Data buffer for incoming data.
Dim data = nothingc[code]....

But it does not work because of the PORT setting.If in the TCP Server i have "Dim localEndPoint As New IPEndPoint(ipAddress, 0)" the client crashes, but if i change the port from any (0) to 11000 for example,the client works fine.Do you know why?

Later edit2:Maybe i should have started with this question:Which method is recommended for my scope?asynchronous or synchronous method ?

View 2 Replies

Developing A Computer Application Designed To Monitor The Network And CPU Statistics On A Computer?

Jan 29, 2009

I am developing a computer application designed to monitor the network and CPU statistics on a computer remotely. The monitored computer would have my program installed and the monitoring computer would display, in a form, the information being sent from the remote client.The application does not send any information regarding packets, user names, passwords, etc. It is solely meant for monitoring CPU performance and Network resources remotely.

What would be the best method to send this information over to my host machine?I am programing in Visual Studio 2008 on windows XP. The client machine is also XP. I know this sounds a little shady, but it is required for my little business (http://www.iquorum.net) to monitor what and when something happens on our machines when I and my employees are away.

View 2 Replies

VS 2005 : Dial A Computer From Another Computer Using Modem For Sending Files And Message?

Jul 11, 2009

I am trying to dial a computer from another computer using Modem for sending files and messge.Follwoing is the code done in dialing computer

Text1.Text = "Test string from App1 "
Number$ = InputBox$("Enter phone number:", "Number$")
If Number$ = "" Then Exit Sub
Temp$ = Status

[code].....

But after the dial tone, i am getting the exception "CTL_E_GETNOTSUPPORTED " at the line MSComm1.Output = Text1.Text?

View 6 Replies

Return A List Of All User Accounts On A PC Running Windows Vista Business Edition Using VB2008?

Jul 26, 2009

Is there anyway to return a list of all user accounts on a PC running windows vista business edition using VB2008?I am trying to integrate a type of security in my application using what it already implemented in windows.

View 8 Replies

Access The Data Coming To The Computer From The In-built Bluetooth Module Of A Computer On Windows Platform?

Feb 4, 2011

i have encountered a problem, i want to access the data coming to the computer from the in-built bluetooth module of a computer on windows platform, this data has been sent by a remote bluetooth module say a by an autonomous device (just like a bluetooth mouse connecting to the computer). The to be sent is in the form of numbers and i need these to manipulate on the computer.

View 6 Replies

VB - Desktop Computer With Cable Connection On Back Allows To Watch TV On Computer Using Windows Media Center

Jun 12, 2010

I have a desktop computer with a cable connection on the back that allows me to watch TV on the computer using Windows Media Center. I had the idea of writing a program that would access this feed and send it to another computer (laptop) via my network. That way I would be able to watch TV from anywhere that my network spans. I have no idea if this is possible or how I would even do it,

So I have three questions.
1: Is it possible?
2: How would I go about access the feed?
3: How would I send it over the network?

My original thought was doing it in Flash, but I'm not very good at Flash so I wanted to do it in VB.Net.

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved