Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
AddExtender('WWNWX34I.DLL') Title01 = 'Test nwModifyObject' TreeSpec = '\\MyTree' OperSpec = 'OVERWRITE_VALUE' ObjectSpec = '.MyUser.MyOU.MyO' AttrName = 'Login Disabled' AttrValue = '1' ErrorMode(@OFF) Result = nwModifyObject(TreeSpec,OperSpec,AttrName,AttrValue,0,0,0) RC = LastError() ErrorMode(@CANCEL) if (RC) TempMsg = StrCat('nwModifyObject("',TreeSpec,'","',OperSpec,'","',AttrName,'","',AttrValue,'",0,0,0) RC = ',RC) Message(Title01,TempMsg) nwModifyObject('','*FREE_BUFFER*','','',0,0,0) exit endif ErrorMode(@OFF) Result = nwModifyObject(ObjectSpec,'*COMMIT*','','',0,0,0) RC = LastError() ErrorMode(@CANCEL) TempMsg = StrCat('nwModifyObject("',ObjectSpec,'","*COMMIT*","","",0,0,0) RC = ',RC) Tempmsg = StrCat(TempMsg,@CRLF,@CRLF,'Result = "',Result,'"') Message(Title01,TempMsg)In a nut shell, you have to modify the "Login Disabled" attribute to have a boolean value of one.
Article ID: W16054
File Created: 2004:03:30:15:42:38
Last Updated: 2004:03:30:15:42:38