Se aplica a
Cliente de escritorio de Project Online Project Profesional 2021 Project Profesional 2019 Project Profesional 2016 Project Professional 2013

Para conectar Project Profesional a Project Web App, debe configurar su Project Web App en Project Profesional. Aunque puedes hacerlo en Project Profesional, también puedes hacerlo de forma rápida y automatizada usando Windows PowerShell.

Este script de Windows PowerShell creará las claves del Registro necesarias para conectar Project Profesional 2013, Project Profesional 2016 o Cliente de escritorio de Project Online a Project Web App.

Guarde el script siguiente en un archivo denominado CreateAccounts.ps1.

#
# This script will create the account for Project Pro for O365 to connect to Project Online. 
# 
# Execute this script with two parameters: the account name and PWA URL
#
# ./CreateAccount.ps1 PWA https://contoso.sharepoint.com/sites/pwa
#
############################################################################

Param(
  [string]$accountName,
  [string]$pwaURL
)

function CreateAccount ($keyPath, $accountName, $pwaURL)  {

    $guid = [System.Guid]::NewGuid()

    New-Item -Path "$keyPath$accountName"
    New-ItemProperty -Path "$keyPath$accountName" -Name Name -PropertyType String -Value $accountName
    New-ItemProperty -Path "$keyPath$accountName" -Name GUID -PropertyType String -Value "{$guid}"
    New-ItemProperty -Path "$keyPath$accountName" -Name Path -PropertyType String -Value $pwaURL
}


function CreateProjectOnlineAccount ($accountName, $pwaURL)
{
    $15keyPath = "HKCU:\Software\Microsoft\Office\15.0\MS Project\Profiles\"
    $16keyPath = "HKCU:\Software\Microsoft\Office\16.0\MS Project\Profiles\"

    If (Test-Path($15keyPath)) {
  
        CreateAccount $15keyPath $accountName $pwaURL
    }


    If (Test-Path($16keyPath)) {
        CreateAccount $16keyPath $accountName $pwaURL
    }
}

CreateProjectOnlineAccount $accountName $pwaURL 

Cuando ejecute el script, pase dos parámetros:

  • El nombre que desea asignar a la cuenta en Project Profesional

  • La dirección URL del sitio de Project Web App

Para ejecutar el script, abra una ventana de comandos Windows PowerShell como administrador y, a continuación, ejecute el script, pasando los dos parámetros.

Por ejemplo:

./CreateAccount.ps1 PWA https://contoso.sharepoint.com/sites/pwa

¿Necesita más ayuda?

¿Quiere más opciones?

Explore las ventajas de las suscripciones, examine los cursos de aprendizaje, aprenda a proteger su dispositivo y mucho más.