Additional Functionality in SharePoint 2010 in .NET framework

Create QR Code in .NET framework Additional Functionality in SharePoint 2010

Additional Functionality in SharePoint 2010
QR Code JIS X 0510 Scanner In .NET Framework
Using Barcode Control SDK for VS .NET Control to generate, create, read, scan barcode image in .NET framework applications.
Generating QR Code In VS .NET
Using Barcode printer for .NET Control to generate, create QR Code JIS X 0510 image in VS .NET applications.
New site collections can be created from Application Management and Site Collections in Central Administration However, it is not possible to import a list of sites or automate the creation of site collections through Central Administration SharePoint 2010 also has a Self-Service Site Collection Management feature, which allows users with the Use Self-Service Site Creation permission to create new site collections, as shown in Figure 11-2 The disadvantage of this feature is that the administrator loses control over the naming standards
QR Code Recognizer In VS .NET
Using Barcode scanner for VS .NET Control to read, scan read, scan image in .NET applications.
Barcode Drawer In .NET
Using Barcode creation for VS .NET Control to generate, create barcode image in .NET framework applications.
PowerShell for Microsoft SharePoint 2010 Administrators
Bar Code Scanner In VS .NET
Using Barcode scanner for .NET Control to read, scan read, scan image in VS .NET applications.
Creating Denso QR Bar Code In Visual C#
Using Barcode printer for VS .NET Control to generate, create QR Code ISO/IEC18004 image in .NET framework applications.
Figure 11-2
Quick Response Code Creator In .NET
Using Barcode drawer for ASP.NET Control to generate, create QR image in ASP.NET applications.
Generate Denso QR Bar Code In VB.NET
Using Barcode maker for VS .NET Control to generate, create QR Code image in .NET framework applications.
The Self-Service Site Collection creation form
Paint Linear Barcode In .NET
Using Barcode maker for VS .NET Control to generate, create Linear 1D Barcode image in VS .NET applications.
Encode UPC - 13 In .NET Framework
Using Barcode printer for Visual Studio .NET Control to generate, create UPC - 13 image in VS .NET applications.
Another feature available in SharePoint 2010 is Site Use Confirmation and Deletion, which allows administrators to set up rules for when sites should be deleted The settings page, shown in Figure 11-3, lets you specify how often a site owner will receive an e-mail to confirm that the site is still in use It is then possible to automatically delete the site if a confirmation is not received after a specific number of notifications
USS Code 128 Creation In VS .NET
Using Barcode encoder for .NET framework Control to generate, create Code 128 image in .NET framework applications.
Encoding Identcode In VS .NET
Using Barcode printer for .NET framework Control to generate, create Identcode image in .NET applications.
11:
Make 1D In Java
Using Barcode generation for Java Control to generate, create Linear 1D Barcode image in Java applications.
Barcode Drawer In Visual Basic .NET
Using Barcode maker for Visual Studio .NET Control to generate, create barcode image in .NET applications.
Working with Site Collections
UPC Code Printer In .NET Framework
Using Barcode maker for ASP.NET Control to generate, create UPC A image in ASP.NET applications.
Drawing Barcode In Java
Using Barcode creator for Java Control to generate, create bar code image in Java applications.
Figure 11-3
Decoding Code 39 Full ASCII In Java
Using Barcode reader for Java Control to read, scan read, scan image in Java applications.
Generating Code 128 In Java
Using Barcode printer for BIRT Control to generate, create Code 128B image in Eclipse BIRT applications.
The Site Use Confirmation and Deletion settings in Central Administration
Code 3/9 Printer In .NET Framework
Using Barcode printer for ASP.NET Control to generate, create Code 39 Full ASCII image in ASP.NET applications.
Painting Code128 In Objective-C
Using Barcode printer for iPhone Control to generate, create ANSI/AIM Code 128 image in iPhone applications.
Summary
In this chapter, we looked at how to create new site collections using Windows PowerShell You ve seen the convenience Windows PowerShell offers when performing repetitive tasks The first example showed how to work with Excel spreadsheets, and how easy it is to gather information from one source and use it to automate tasks in the Windows environment Using Windows PowerShell to enumerate through Excel spreadsheet, CSV files, or even a SQL Server database allows you to automate the creation of hundreds of site collections in a way that is not possible through Central Administration In the second example, we looked at how to connect to a SharePoint list and use the information stored in the list items to create new site collections SharePoint lists and list items will be covered in detail in s 14 and 15
This page intentionally left blank
Managing Sites
PowerShell for Microsoft SharePoint 2010 Administrators
s discussed in the previous chapter, SharePoint 2010 offers some functionality to automatically delete site collections that are not confirmed to be in use However, this is available only at the site collection level with the out-of-the box tools But what if we want to have the same kind of functionality for sites Imagine that we have thousands of sites within a site collection (which is often the case when working with meeting workspaces, for example) We want to know which sites have not been used for the last 180 days, and send an e-mail message to the people responsible for those sites For our solution, we will need to identify sites that have not been used within the time period, get the contact information for the people to receive e-mail, and send the e-mail
Validating Site Usage
The Get-SPWeb cmdlet allows us to work with sites and subsites in SharePoint 2010 When we use the Get-SPWeb cmdlet, an instance of the SPWeb class is returned The SPWeb class in SharePoint 2010 has the LastItemModifiedDate property, which we can use to check if anything has been changed in the site within a specific time span To begin, we need to create a DateTime object, which we will use to perform the comparison of dates against In this example, we create a DateTime object containing the date of 180 days ago
PS > $lastModified = (Get-Date)AddDays(-180)
First, we use the Get-Date cmdlet to get the current date, placing it within parentheses to make sure it is evaluated first Then we call the AddDays method on the resulting SystemDateTime object, passing it a negative value so that the corresponding number of days are subtracted, rather than added, from the current date We can then use the DateTime object stored in the lastModified variable and compare it to the LastItemModifiedDate to retrieve all subsites that have not been modified within the last 180 days
PS PS >> >> >> >> >> >> >> > $url = "http://nimaintranet" > $objSelected = Get-SPSite $url | Get-SPWeb -limit All | Where-Object { $_LastItemModifiedDate -le $lastModified } | Select-Object -Property Url, Title, Description, @{Name="Modified";Expression={$_LastItemModifiedDate}}, @{Name="email";Expression={$_RequestAccessEmail}}, @{Name="authorEmail";Expression={$_AuthorEmail}}, @{Name="inactive";Expression={ (Getdate)Subtract($($_LastItemModifiedDate))Days}}
12:
Copyright © OnBarcode.com . All rights reserved.