Project Professional 연결하려면 Project Web App 에서 Project Web AppProject Professional. 에서 이 작업을 Project Professional 을 사용하여 빠르고 자동화된 Windows PowerShell.
이 Windows PowerShell 스크립트는 Project Professional 2013, Project Professional 2016 또는 에 연결하기 위해 Project Online 데스크톱 클라이언트Project Web App.
다음 스크립트를 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
스크립트를 실행할 때 다음 두 매개 변수를 전달합니다.
-
계정에서 계정을 제공하려는 Project Professional
-
사이트의 URL Project Web App
스크립트를 실행하기 위해 관리자로 Windows PowerShell 명령 창을 열고 스크립트를 실행하여 두 매개 변수를 전달합니다.
예:
./CreateAccount.ps1 PWA https://contoso.sharepoint.com/sites/pwa