473,513 Members | 3,777 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Update Active Directory

Hey everyone,
I'm working on a project to set up a new user in AD using VB. I
have the connection working and I'm able to get most of the settings
done. However I can't find the properties to set the password to
never expire and the user cannot change password. I'd also like to
be
able to set the logon hours as well. If someone can help me out with
those properties in VB I would appreciate it. Thanks a lot!

Sep 20 '07 #1
1 2563
This may be of use:
http://www.codeproject.com/cs/system...99045&exp=0#46

You will need to convert from c# to vb.net

"ji***********@gmail.com" wrote:
Hey everyone,
I'm working on a project to set up a new user in AD using VB. I
have the connection working and I'm able to get most of the settings
done. However I can't find the properties to set the password to
never expire and the user cannot change password. I'd also like to
be
able to set the logon hours as well. If someone can help me out with
those properties in VB I would appreciate it. Thanks a lot!

Sep 28 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2785
by: microsoft | last post by:
Hi People, when I try to modify an active directory user programatically, I receive the following exception: The server is unwilling to process the request Reading the microsoft web site, I found this article: http://support.microsoft.com/default.aspx?scid=kb;EN-US;248717 that says the following: ..........................
9
3692
by: Mario Rodriguez | last post by:
Hi people. I have a problem adding users to Win2003 active directory programatically. When I execute my app throws the following exception: .................The specified directory service attribute or value does not exist........... Exactly the same code works fine on my win2000 active directory. My app include the use of the...
0
3169
by: Kumar | last post by:
Hi Folks, I am trying to do the following functionality. Add employee ID in OtherHomePhone field in that user Active directory profile. I created DirectoryEntry object. While assiging the values I am getting the error as below. The requested operation did not satisfy one or more constraints associated
3
1641
by: Mike | last post by:
I have an update page with Checkbox's, how can I get the value of the checkbox and update the db table correctly? heres the snippet i'm trying to run and its not working strSQL = "update table1 set " & _ if chActive.checked = true then "active='Yes' end if
1
4732
by: Andrew | last post by:
Hey all, Working on revamping our Intranet here and making use of the LDPA, Active Directory, Directory Services, etc. that .Net provides. I am still fairly new on this subject, so the problem I have run into I am not sure how to fix, and really not sure what is causing it. Here's what is going on (test server - Windows 2003 Server): I...
2
1865
by: dhnriverside | last post by:
Hi Right, all I'm trying to do is update a user account in active directory with new phone, address, etc from C#. I can't find any samples on the net on how to do this - can anybody point me in the right direction? Cheers
6
2391
by: Leo_Surf | last post by:
Hello, I need your help adding user in Active Directory from ASP.net website. Could any one provide me the complete code for the html page. As this is my curriculam project and I dont have any Idea about ASP.net Please Help Thanks in Advance.
0
2778
by: =?Utf-8?B?SmVhbmluZQ==?= | last post by:
Hi, can anyone tell me how I can update the publicDelegates active directory property using vb.net 2005 and System.DirectoryServices. I understand the publicDelegates property to be where 'send of behalf' rights are set. I have been able to update successfully simple properties such as telephoneNumber but I am not sure how or if I can...
25
3221
by: news.microsoft.com | last post by:
Hi all, First post here. I'm porting an application I wrote in VB6, over to VB.NET 2005. It could be said I'm really struggling with some (most!) of the syntax of VB.NET 2005, but I'm getting there. I'm relying a lot, at this point, on sample code from Microsoft, and other forums about the Internet. One thing I've painfully noticed...
2
2672
by: lairpr74 | last post by:
I am trying to update the managers name in active directory with an application I got that updates active directory. I been strugling with this for a few weeks now and couldn't find the best way to update the managers name. I got a datareader that returns all the employees from the database then a method checks each one of the records and...
0
7178
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7397
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7125
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7543
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
4757
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3252
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3239
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1612
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
470
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.