O'Reilly logo

Win32 Perl Programming: The Standard Extensions, Second Edition by Dave Roth

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

User Account Management

One of the most important elements in a domain is the user account. Without these accounts, no users could log on to the domain, and without users logging on, no work would get done. Even if your domain is totally automated and needs no user intervention, you still need some accounts. You always need an Administrator account, for example, so you can log on and manage the domain. Likewise, many services need accounts to log on to the machine or domain to perform some tasks.

Testing for User Account Existence

Before creating a new user account, you should ensure that a user account with the same name you intend to create does not already exist. This can be done using UsersExist() function:

 Win32::NetAdmin::UsersExist( ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required