train-pwsh 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/train-pwsh/connection.rb +4 -4
- data/lib/train-pwsh/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f2abb2512b0e08cfc8c62921943decbd47cc7ba52320755483be12c7c74392e2
|
4
|
+
data.tar.gz: 6211655d9ae40fa13982f34f6e456f451b3e47a81d31f8cb7d791085b0dc41aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 253d3d3fc36100ba90563ec290ffd81bf50670065abd029657277ab49feb4d279ddadf21625366fd8c5de27a871f7484a995c580ae43438df44ef4938f75fb50
|
7
|
+
data.tar.gz: 97952ce6382936fe1bd6c9457a979537b57ec91f418b9048c526a9e10d607ef4a5713b7ffbbafa75a5a5bdede35abc82476e4c008996e292666e6dcf8216f97a
|
@@ -98,14 +98,14 @@ module TrainPlugins
|
|
98
98
|
$organization = '#{@organization}'
|
99
99
|
|
100
100
|
#Connect to Graph module
|
101
|
-
If($null -eq (get-module -listavailable -name "microsoft.graph")){install-module microsoft.graph}
|
101
|
+
If($null -eq (get-module -listavailable -name "microsoft.graph")){install-module microsoft.graph -Force -AllowClobber}
|
102
102
|
If($null -eq (get-module -name "microsoft.graph")){import-module microsoft.graph}
|
103
103
|
$password = ConvertTo-SecureString -String $clientSecret -AsPlainText -Force
|
104
104
|
$ClientSecretCredential = New-Object -TypeName System.Management.Automation.PSCredential($client_id,$password)
|
105
105
|
Connect-MgGraph -TenantId $tenantid -ClientSecretCredential $ClientSecretCredential -NoWelcome
|
106
106
|
|
107
107
|
#Connect to Exchange module
|
108
|
-
If($null -eq (get-module -listavailable -name "ExchangeOnlineManagement")){install-module ExchangeOnlineManagement}
|
108
|
+
If($null -eq (get-module -listavailable -name "ExchangeOnlineManagement")){install-module ExchangeOnlineManagement -Force -AllowClobber}
|
109
109
|
If($null -eq (get-module -name "ExchangeOnlineManagement")){import-module ExchangeOnlineManagement}
|
110
110
|
$password = ConvertTo-SecureString -String $clientSecret -AsPlainText -Force
|
111
111
|
$ClientSecretCredential = New-Object -TypeName System.Management.Automation.PSCredential($client_id,$password)
|
@@ -131,13 +131,13 @@ module TrainPlugins
|
|
131
131
|
$sharepoint_admin_url = '#{@sharepoint_admin_url}'
|
132
132
|
|
133
133
|
#Connect to Teams module
|
134
|
-
If($null -eq (get-module -listavailable -name "MicrosoftTeams")){install-module MicrosoftTeams}
|
134
|
+
If($null -eq (get-module -listavailable -name "MicrosoftTeams")){install-module MicrosoftTeams -Force -AllowClobber}
|
135
135
|
If($null -eq (get-module -name "MicrosoftTeams")){import-module MicrosoftTeams}
|
136
136
|
$cert = New-Object System.Security.Cryptography.X509Certificates.X509Certificate2($certificate_path,$certificate_password)
|
137
137
|
Connect-MicrosoftTeams -Certificate $cert -ApplicationId $client_id -TenantId $tenantid > $null
|
138
138
|
|
139
139
|
#Connect to PnP module
|
140
|
-
If($null -eq (get-module -listavailable -name "PnP.PowerShell")){install-module PnP.PowerShell}
|
140
|
+
If($null -eq (get-module -listavailable -name "PnP.PowerShell")){install-module PnP.PowerShell -Force -AllowClobber}
|
141
141
|
If($null -eq (get-module -name "PnP.PowerShell")){import-module PnP.PowerShell}
|
142
142
|
$password = (ConvertTo-SecureString -AsPlainText $certificate_password -Force)
|
143
143
|
Connect-PnPOnline -Url $sharepoint_admin_url -ClientId $client_id -CertificatePath $certificate_path -CertificatePassword $password -Tenant $tenantid
|
data/lib/train-pwsh/version.rb
CHANGED