netadmin.html
来自「perl教程」· HTML 代码 · 共 369 行 · 第 1/2 页
HTML
369 行
<?xml version="1.0" ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<!-- saved from url=(0017)http://localhost/ -->
<script language="JavaScript" src="../../displayToc.js"></script>
<script language="JavaScript" src="../../tocParas.js"></script>
<script language="JavaScript" src="../../tocTab.js"></script>
<link rel="stylesheet" type="text/css" href="../../scineplex.css">
<title>Win32::NetAdmin - manage network groups and users in perl</title>
<link rel="stylesheet" href="../../Active.css" type="text/css" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rev="made" href="mailto:" />
</head>
<body>
<script>writelinks('__top__',2);</script>
<h1><a>Win32::NetAdmin - manage network groups and users in perl</a></h1>
<p><a name="__index__"></a></p>
<!-- INDEX BEGIN -->
<ul>
<li><a href="#name">NAME</a></li>
<li><a href="#synopsis">SYNOPSIS</a></li>
<li><a href="#description">DESCRIPTION</a></li>
<li><a href="#functions">FUNCTIONS</a></li>
<ul>
<li><a href="#note">NOTE</a></li>
</ul>
<li><a href="#example">EXAMPLE</a></li>
</ul>
<!-- INDEX END -->
<hr />
<p>
</p>
<h1><a name="name">NAME</a></h1>
<p>Win32::NetAdmin - manage network groups and users in perl</p>
<p>
</p>
<hr />
<h1><a name="synopsis">SYNOPSIS</a></h1>
<pre>
<span class="keyword">use</span> <span class="variable">Win32::NetAdmin</span><span class="operator">;</span>
</pre>
<p>
</p>
<hr />
<h1><a name="description">DESCRIPTION</a></h1>
<p>This module offers control over the administration of groups and users over a
network.</p>
<p>
</p>
<hr />
<h1><a name="functions">FUNCTIONS</a></h1>
<p>
</p>
<h2><a name="note">NOTE</a></h2>
<p>All of the functions return false if they fail, unless otherwise noted.
When a function fails call Win32::NetAdmin::GetError() rather than
<code>GetLastError()</code> or $^E to retrieve the error code.</p>
<p><code>server</code> is optional for all the calls below. If not given the local machine is
assumed.</p>
<dl>
<dt><strong><a name="item_geterror"><code>GetError()</code></a></strong>
<dd>
<p>Returns the error code of the last call to this module.</p>
</dd>
</li>
<dt><strong><a name="item_getdomaincontroller">GetDomainController(server, domain, returnedName)</a></strong>
<dd>
<p>Returns the name of the domain controller for server.</p>
</dd>
</li>
<dt><strong><a name="item_getanydomaincontroller">GetAnyDomainController(server, domain, returnedName)</a></strong>
<dd>
<p>Returns the name of any domain controller for a domain that is directly trusted
by the server.</p>
</dd>
</li>
<dt><strong><a name="item_usercreate">UserCreate(server, userName, password, passwordAge, privilege, homeDir, comment, flags, scriptPath)</a></strong>
<dd>
<p>Creates a user on server with password, passwordAge, privilege, homeDir, comment,
flags, and scriptPath.</p>
</dd>
</li>
<dt><strong><a name="item_userdelete">UserDelete(server, user)</a></strong>
<dd>
<p>Deletes a user from server.</p>
</dd>
</li>
<dt><strong><a name="item_usergetattributes">UserGetAttributes(server, userName, password, passwordAge, privilege, homeDir, comment, flags, scriptPath)</a></strong>
<dd>
<p>Gets password, passwordAge, privilege, homeDir, comment, flags, and scriptPath
for user.</p>
</dd>
</li>
<dt><strong><a name="item_usersetattributes">UserSetAttributes(server, userName, password, passwordAge, privilege, homeDir, comment, flags, scriptPath)</a></strong>
<dd>
<p>Sets password, passwordAge, privilege, homeDir, comment, flags, and scriptPath
for user.</p>
</dd>
</li>
<dt><strong><a name="item_userchangepassword">UserChangePassword(domainname, username, oldpassword, newpassword)</a></strong>
<dd>
<p>Changes a users password. Can be run under any account.</p>
</dd>
</li>
<dt><strong><a name="item_usersexist">UsersExist(server, userName)</a></strong>
<dd>
<p>Checks if a user exists.</p>
</dd>
</li>
<dt><strong><a name="item_getusers">GetUsers(server, filter, userRef)</a></strong>
<dd>
<p>Fills userRef with user names if it is an array reference and with the user
names and the full names if it is a hash reference.</p>
</dd>
</li>
<dt><strong><a name="item_groupcreate">GroupCreate(server, group, comment)</a></strong>
<dd>
<p>Creates a group.</p>
</dd>
</li>
<dt><strong><a name="item_groupdelete">GroupDelete(server, group)</a></strong>
<dd>
<p>Deletes a group.</p>
</dd>
</li>
<dt><strong><a name="item_groupgetattributes">GroupGetAttributes(server, groupName, comment)</a></strong>
<dd>
<p>Gets the comment.</p>
</dd>
</li>
<dt><strong><a name="item_groupsetattributes">GroupSetAttributes(server, groupName, comment)</a></strong>
<dd>
<p>Sets the comment.</p>
</dd>
</li>
<dt><strong><a name="item_groupaddusers">GroupAddUsers(server, groupName, users)</a></strong>
<dd>
<p>Adds a user to a group.</p>
</dd>
</li>
<dt><strong><a name="item_groupdeleteusers">GroupDeleteUsers(server, groupName, users)</a></strong>
<dd>
<p>Deletes a users from a group.</p>
</dd>
</li>
<dt><strong><a name="item_groupismember">GroupIsMember(server, groupName, user)</a></strong>
<dd>
<p>Returns TRUE if user is a member of groupName.</p>
</dd>
</li>
<dt><strong><a name="item_groupgetmembers">GroupGetMembers(server, groupName, userArrayRef)</a></strong>
<dd>
<p>Fills userArrayRef with the members of groupName.</p>
</dd>
</li>
<dt><strong><a name="item_localgroupcreate">LocalGroupCreate(server, group, comment)</a></strong>
<dd>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?