domingo, 17 de julio de 2016

Parte 4–Sharepoint 2016 - Sharepoint Web Services Default Application Pool

Indice de Instalación de Sharepoint 2016

A continuación se crea el Application Pool para los services applications. Puedes crear N cuentas dependiendo del tipo de seguridad que quieres implementar para tus services applications.

Descargar Script

Add-PSSnapin Microsoft.SharePoint.PowerShell -erroraction SilentlyContinue
$AppPoolName = "SharePoint Web Services Default"
$AppPoolUserName = "CONTOSO\svcspsvcapps"
$SAAppPool = Get-SPServiceApplicationPool -Identity $AppPoolName -EA 0
if($SAAppPool -eq $null)
{
    $AppPoolAccount = Get-SPManagedAccount -Identity $AppPoolUserName -EA 0
    if($AppPoolAccount -eq $null)
    {
        $AppPoolCred = Get-Credential $AppPoolUserName
        $AppPoolAccount = New-SPManagedAccount -Credential $AppPoolCred -EA 0
    }
    $AppPoolAccount = Get-SPManagedAccount -Identity $AppPoolUserName -EA 0
    if($AppPoolAccount -eq $null)
    {
        Write-Host "Cannot create or find the managed account $appPoolUserName, please ensure the account exists."
        Exit -1
    }
    New-SPServiceApplicationPool -Name $AppPoolName -Account $AppPoolAccount -EA 0 > $null
    Write-Host "Se ha creado correctamente la cuenta default de app pool"
}
Else
{
    Write-Host "Fallo la creación de la cuenta"
}

1 comentario:

  1. Hi guys,
    Thank you so much for this wonderful article! Here we all can learn a lot of useful things and this is not only my opinion!
    Even BLNCK corp. and http://www.tzunami.com confirmed it!

    ResponderEliminar