Click here to Skip to main content
15,910,009 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: Microsoft.VisualBasic.FileIO.TextFieldParser Pin
Richard Deeming9-Sep-16 6:49
mveRichard Deeming9-Sep-16 6:49 
GeneralRe: Microsoft.VisualBasic.FileIO.TextFieldParser Pin
#realJSOP9-Sep-16 7:28
professional#realJSOP9-Sep-16 7:28 
AnswerRe: Microsoft.VisualBasic.FileIO.TextFieldParser Pin
Richard MacCutchan9-Sep-16 21:40
mveRichard MacCutchan9-Sep-16 21:40 
QuestionAssembly. Pin
Member 111616259-Sep-16 2:00
Member 111616259-Sep-16 2:00 
AnswerRe: Assembly. Pin
Pete O'Hanlon9-Sep-16 2:17
mvePete O'Hanlon9-Sep-16 2:17 
QuestionActive Directory : User account options, Homefolder drive and directory and memberof group Pin
JANAZA7-Sep-16 20:29
professionalJANAZA7-Sep-16 20:29 
AnswerRe: Active Directory : User account options, Homefolder drive and directory and memberof group Pin
Dave Kreskowiak8-Sep-16 6:25
mveDave Kreskowiak8-Sep-16 6:25 
GeneralRe: Active Directory : User account options, Homefolder drive and directory and memberof group Pin
JANAZA8-Sep-16 9:31
professionalJANAZA8-Sep-16 9:31 
Hi Dave,
Thank you for the reply.

After a lot of searching i sort of have resolved errors. However my problem is that I cannot find the correct way to update the (user account settings in AD i.e. password cannot change, do not expire etc.) as well as how to (update the homefolder drive and directory) and set (the member of group)...with the memberof group i get an error that says 'Object does not exist' so I am guessing the group Staff does not exist or spelling might be different...will confirm this still

C#
'Utility.SetProperty(myDirectoryEntry, "homeDrive", HomeDrive)
        'Utility.SetProperty(myDirectoryEntry, "homeDirecrtory", HomeDirectory)




C#
myDirectoryEntry.CommitChanges()

       SetMember(DisplayName, MemberOF)
       ''USE DISPLAY: USERNAME FAIL WHEN CREATING PASSWORD
       myDirectoryEntry = GetUser(DisplayName)
       Utility.SetUserPassword(myDirectoryEntry, Password)
       myDirectoryEntry.Properties("userAccountControl").Value = Utility.ADAccountOptions.UF_DONT_EXPIRE_PASSWD
       myDirectoryEntry.CommitChanges()
       myDirectoryEntry.Properties("userAccountControl").Value = Utility.ADAccountOptions.UF_PASSWD_CANT_CHANGE
       myDirectoryEntry.CommitChanges()


I was hoping that someone who were able to have done these updates could point me in the correct direction as to whether my syntax etc. is correct to update AD. This was a whole new experience and with a lot of searching and frustrations I got this far.

If at all possible a nudge or something more would be excellent.

Thanks again.
AnswerRe: Active Directory : User account options, Homefolder drive and directory and memberof group Pin
Richard Deeming8-Sep-16 10:24
mveRichard Deeming8-Sep-16 10:24 
GeneralRe: Active Directory : User account options, Homefolder drive and directory and memberof group Pin
JANAZA9-Sep-16 1:30
professionalJANAZA9-Sep-16 1:30 
GeneralRe: Active Directory : User account options, Homefolder drive and directory and memberof group Pin
JANAZA9-Sep-16 2:56
professionalJANAZA9-Sep-16 2:56 
GeneralRe: Active Directory : User account options, Homefolder drive and directory and memberof group Pin
Richard Deeming9-Sep-16 3:02
mveRichard Deeming9-Sep-16 3:02 
GeneralRe: Active Directory : User account options, Homefolder drive and directory and memberof group Pin
JANAZA9-Sep-16 3:17
professionalJANAZA9-Sep-16 3:17 
GeneralRe: Active Directory : User account options, Homefolder drive and directory and memberof group Pin
Richard Deeming9-Sep-16 3:23
mveRichard Deeming9-Sep-16 3:23 
GeneralRe: Active Directory : User account options, Homefolder drive and directory and memberof group Pin
JANAZA9-Sep-16 3:45
professionalJANAZA9-Sep-16 3:45 
GeneralRe: Active Directory : User account options, Homefolder drive and directory and memberof group Pin
Richard Deeming9-Sep-16 4:11
mveRichard Deeming9-Sep-16 4:11 
GeneralRe: Active Directory : User account options, Homefolder drive and directory and memberof group Pin
JANAZA9-Sep-16 4:27
professionalJANAZA9-Sep-16 4:27 
GeneralRe: Active Directory : User account options, Homefolder drive and directory and memberof group Pin
Richard Deeming9-Sep-16 4:35
mveRichard Deeming9-Sep-16 4:35 
GeneralRe: Active Directory : User account options, Homefolder drive and directory and memberof group Pin
JANAZA9-Sep-16 8:08
professionalJANAZA9-Sep-16 8:08 
GeneralRe: Active Directory : User account options, Homefolder drive and directory and memberof group Pin
JANAZA11-Sep-16 19:52
professionalJANAZA11-Sep-16 19:52 
GeneralRe: Active Directory : User account options, Homefolder drive and directory and memberof group Pin
JANAZA11-Sep-16 22:37
professionalJANAZA11-Sep-16 22:37 
GeneralRe: Active Directory : User account options, Homefolder drive and directory and memberof group Pin
Richard Deeming12-Sep-16 1:55
mveRichard Deeming12-Sep-16 1:55 
GeneralRe: Active Directory : User account options, Homefolder drive and directory and memberof group Pin
JANAZA12-Sep-16 2:23
professionalJANAZA12-Sep-16 2:23 
GeneralRe: Active Directory : User account options, Homefolder drive and directory and memberof group Pin
Richard Deeming12-Sep-16 2:29
mveRichard Deeming12-Sep-16 2:29 
PraiseRe: Active Directory : User account options, Homefolder drive and directory and memberof group Pin
JANAZA12-Sep-16 3:01
professionalJANAZA12-Sep-16 3:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.