-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathArquivamentoFaturamento.ps1
26 lines (22 loc) · 1.08 KB
/
ArquivamentoFaturamento.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
$UserId = ""
$UserEmail = $env:USERNAME + "@trust.group"
$SiteId = "{b0538071-d508-4de6-a461-54cf8e4816d0}"
$isSiteAdmin = "1"
$WebId = "{87bcb753-c805-42d9-bad0-aa9bc035f0e8}"
$WebTitle = ""
$WebTemplate = "64"
$WebLogoUrl = "/sites/TrustGroup19/_api/GroupService/GetGroupImage?id='d22aa4cd-10b7-4dbb-9ff0-011c010f5f2e'&hash=638334216242572433"
$webUrl = "https://trustlog.sharepoint.com/sites/TrustGroup19"
$onPrem = "0"
$LibraryType = "3"
$ListId = "74c1c46d-2155-4ac8-99f2-2c2058aaa829"
$ListTitle = "Arquivamento Faturamento"
$Scope = "OPENLIST"
Do {
$ODStatus = Get-Process onedrive -ErrorAction SilentlyContinue
If ($ODStatus) {
$odopen = "odopen://sync/?userId=" + $UserId + "&userEmail=" + $UserEmail + "&isSiteAdmin=" + $isSiteAdmin + "&siteId=" + $SiteId + "&webId=" + $WebId + "&webTitle=" + $WebTitle + "&webTemplate=" + $WebTemplate + "&webLogoUrl=" + $WebLogoUrl + "&webUrl=" + $webUrl + "&onPrem=" + $onPrem + "&libraryType=" + $LibraryType + "&listId=" + $ListId + "&listTitle=" + $ListTitle + "&scope=" + $Scope
Start-Process $odopen
}
}
Until ($ODStatus)