Managing Service Applications in .NET framework

Make QR Code 2d barcode in .NET framework Managing Service Applications

Managing Service Applications
QR Code Decoder In Visual Studio .NET
Using Barcode Control SDK for .NET framework Control to generate, create, read, scan barcode image in Visual Studio .NET applications.
Denso QR Bar Code Creator In Visual Studio .NET
Using Barcode maker for .NET Control to generate, create Quick Response Code image in .NET applications.
Service application settings can be changed using the Set-ServiceApplication cmdlet You can set properties such as the associated application pool and application proxy group SharePoint 2010 also includes cmdlets that manage specific service applications Here, we ll use the Set-SPMetadataServiceApplication cmdlet to configure properties of our managed metadata service application Members of the Farm Administrators group have the rights to manage all service applications in a farm, but you can also grant additional users rights to manage a specific service application in SharePoint 2010 The users will be given limited access to the Central Administration site and will be able to manage settings related only to the specific service application In the next example, we use the AdministratorAccount parameter supported by the Set-SPMetadataServiceApplication cmdlet to grant the user powershell\sezel rights to manage our metadata service application
Scanning Denso QR Bar Code In .NET
Using Barcode recognizer for .NET framework Control to read, scan read, scan image in .NET framework applications.
Barcode Generation In VS .NET
Using Barcode encoder for .NET Control to generate, create barcode image in .NET framework applications.
PS > Get-SPServiceApplication -Name "MetadataServiceApp" | >> Set-SPMetadataServiceApplication -AdministratorAccount powershell\sezel
Barcode Scanner In .NET Framework
Using Barcode reader for .NET framework Control to read, scan read, scan image in .NET applications.
Create QR Code In Visual C#.NET
Using Barcode generation for VS .NET Control to generate, create QR-Code image in VS .NET applications.
18:
Drawing QR In VS .NET
Using Barcode creator for ASP.NET Control to generate, create QR Code JIS X 0510 image in ASP.NET applications.
QR Code Drawer In VB.NET
Using Barcode generation for .NET Control to generate, create QR Code ISO/IEC18004 image in .NET applications.
Managing Service Applications
Paint Data Matrix In .NET Framework
Using Barcode generation for Visual Studio .NET Control to generate, create DataMatrix image in .NET framework applications.
Bar Code Encoder In VS .NET
Using Barcode encoder for Visual Studio .NET Control to generate, create bar code image in Visual Studio .NET applications.
Figure 18-1
Encoding Bar Code In .NET
Using Barcode printer for .NET Control to generate, create bar code image in VS .NET applications.
Making C 2 Of 5 In .NET
Using Barcode encoder for .NET Control to generate, create 2 of 5 Industrial image in .NET applications.
Configuring service application associations in Central Administration
Barcode Printer In Visual Basic .NET
Using Barcode encoder for .NET Control to generate, create bar code image in Visual Studio .NET applications.
Code-39 Creator In None
Using Barcode drawer for Excel Control to generate, create Code 3/9 image in Microsoft Excel applications.
This example replaces the current permissions on the service application with the single value of powershell\sezel If you want to add a new permission and keep the old permissions, you can use the Add-SPMetadataSAPermission function, as follows:
UPC Code Encoder In Java
Using Barcode printer for Android Control to generate, create Universal Product Code version A image in Android applications.
Barcode Printer In None
Using Barcode generator for Microsoft Excel Control to generate, create bar code image in Excel applications.
function Add-SPMetadataSAPermission( [string]$serviceApplication, [string]$administratorAccount, [string]$fullAccessAccount, [string]$restrictedAccount ) { # Retrieve metadata service application $sa = Get-SPMetadataServiceApplication -Identity $serviceApplication # Store current access rules in variable $admins = $saGetAdministrationAccessControl()AccessRules $access = $saGetAccessControl()AccessRules
Barcode Reader In .NET
Using Barcode reader for VS .NET Control to read, scan read, scan image in .NET applications.
Generate Barcode In C#.NET
Using Barcode generator for VS .NET Control to generate, create barcode image in Visual Studio .NET applications.
PowerShell for Microsoft SharePoint 2010 Administrators
Decode Code 39 Extended In VB.NET
Using Barcode reader for .NET Control to read, scan read, scan image in .NET applications.
Decoding Data Matrix 2d Barcode In Visual Basic .NET
Using Barcode decoder for Visual Studio .NET Control to read, scan read, scan image in VS .NET applications.
# Set new access rules $sa | Set-SPMetadataServiceApplication ` -AdministratorAccount $administratorAccount ` -FullAccessAccount $fullAccessAccount ` -RestrictedAccount $restrictedAccount # Store access control in variable $adminAccessControl = $saGetAdministrationAccessControl() $accessControl = $saGetAccessControl() # Add old access rules $admins | ForEach-Object { $adminAccessControlAddAccessRule($_) } $access | ForEach-Object { $accessControlAddAccessRule($_) } # Set access control $saSetAdministrationAccessControl($adminAccessControl) $saSetAccessControl($accessControl) }
The function stores the service application s current permissions in a variable, and then it uses the Set-SPMetadataServiceApplication cmdlet to apply the new permissions Finally, the function adds the service application s previous permissions You can use the function by typing the following:
PS > Add-SPMetadataSAPermission -serviceApplication MetadataServiceApp ` >> -administratorAccount "powershell\nigo"
The Set-SPMetadataServiceApplication cmdlet also allows you to designate a site collection that should act as the content type hub A content type hub is a new feature in SharePoint 2010 It is a central location where you can manage and publish content types Subscribing to a content type hub allows Web applications to retrieve published or updated content types from a central location This means that you can easily reuse content types between Web applications or even between farms The following example demonstrates how to specify the content type hub URL for a managed metadata service application
PS > Get-SPServiceApplication -Name "MetadataServiceApp" | >> Set-SPMetadataServiceApplication -HubUri "http://nimaintranet"
Configuring a service application to use a content type hub also requires that you modify the corresponding service application proxy In the next example, we configure the managed metadata service application proxy so that it automatically consumes content types from a content type hub
PS > Get-SPServiceApplicationProxy | >> Where { $_DisplayName -eq "Metadata Service App Proxy" } | >> Set-SPMetadataServiceApplicationProxy -ContentTypeSyndicationEnabled
18:
Managing Service Applications
Removing Service Applications
To remove a service application from SharePoint 2010, you can use the RemoveSPServiceApplication cmdlet The cmdlet supports the RemoveData switch parameter, which is used to delete the databases and other data associated with the service application We remove our metadata service application as follows:
PS > Remove-SPServiceApplication ` >> -Identity (Get-SPServiceApplication -Name "MetadataServiceApp") -removedata
This command does not remove the application pool used by the service application proxy You can remove the application pool by using the RemoveSPServiceApplicationPool cmdlet Next, we remove our metadata service application pool
PS > Remove-SPServiceApplicationPool -Identity "Metadata AppPool"
Finally, we remove our metadata service application proxy using the RemoveSPServiceApplicationProxy cmdlet
PS > Get-SPServiceApplicationProxy | >> Where-Object { $_DisplayName -eq "Metadata Service App Proxy" } | >> Remove-SPServiceApplicationProxy -RemoveData
Copyright © OnBarcode.com . All rights reserved.