WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

NetwareX Extender

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Check Login Expiration Time


Question:

I want to get an list of all users who have an "login expiration time" set.

Answer:

Take a look at the NetWareX help file and review the topics for the newSearchFilter() and nwSearchObjects() functions.

The following code snippet should get you started. It assumes that you want to search from the root of the tree and that you want to search the entire tree beneath the root.

nwSearchFilter('','BASECLS','',0,0,0)
nwSearchFilter('','ANAME','User',0,0,0)
nwSearchFilter('','AND','',0,0,0)
nwSearchFilter('','PRESENT','',0,0,0)
nwSearchFilter('','ANAME','Login Expiration Time',0,0,0)
nwSearchFilter('','END','',0,0,0)

nwSearchObjects('[Root]','','',2)



Article ID:   W16538
File Created: 2005:02:18:12:21:20
Last Updated: 2005:02:18:12:21:20