16.01.2013 Views

Microsoft Sharepoint Products and Technologies Resource Kit eBook

Microsoft Sharepoint Products and Technologies Resource Kit eBook

Microsoft Sharepoint Products and Technologies Resource Kit eBook

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

386 Part V: Administration of Windows SharePoint Services<br />

Using the Comm<strong>and</strong> Line to Manage Users<br />

You can add a user account to your site by using the adduser operation. The<br />

adduser operation takes the url (of the site where you want to add the user), userlogin,<br />

useremail, username, <strong>and</strong> role parameters, plus the optional parameter siteadmin.<br />

You use the siteadmin parameter to specify that the user is the site collection<br />

administrator or owner of the site collection. Note that if you are using Active Directory<br />

account creation mode, you do not need to specify the userlogin parameter;<br />

you would use the useremail parameter to identify the user instead. (For more information<br />

about Active Directory Account creation mode, see Chapter 2, “Installing<br />

Windows SharePoint Services.”)<br />

For example, to add User1 as an administrator for http://My_Server/site1 in<br />

domain account mode, you would type<br />

stsadm.exe -o adduser –url http://My_Server/site1 –userlogin DOMAIN1\User1<br />

-useremail user1@domain.com -username "User 1" -role administrator<br />

You use the deleteuser operation to remove users from a site. The deleteuser<br />

operation takes the url <strong>and</strong> userlogin parameters. To remove User1 from<br />

http://server1/site1, you would type<br />

stsadm.exe -o deleteuser –url http://My_Server/site1<br />

–userlogin DOMAIN1\User1<br />

You can assign a user to a site group from the comm<strong>and</strong> line by using the userrole<br />

operation. The userrole operation takes the url, userlogin, role, <strong>and</strong> add or<br />

delete parameters. For example, to add the user User1 to the Contributor site group<br />

for site http://server1/site1, you would type<br />

stsadm.exe -o userrole –url http://My_Server/site1 –userlogin DOMAIN1\User1<br />

-role contributor -add<br />

Note that this does not remove the user from any site groups she was previously<br />

a member of.<br />

Configuring Antivirus Protection<br />

Windows SharePoint Services now allows you to help protect your users from<br />

uploading or downloading files that contain viruses. When you have installed an<br />

antivirus scanner that is compatible with Windows SharePoint Services, you can<br />

enable the antivirus protection feature for your server. When you enable the antivirus<br />

protection feature, files are checked for viruses when a user adds a document to<br />

a document library or list, or when a user views a document in a document library<br />

or list. If a virus is found, the scanner attempts to clean the file; if the file cannot be<br />

cleaned, the scanner blocks the file from being added or viewed.<br />

Consult your antivirus software vendor to find out whether they offer a virus<br />

scanner for use with Windows SharePoint Services <strong>and</strong> for information about installing<br />

the virus scanner. Or, for a list of antivirus software vendors that support antivirus

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!