@@ -24,6 +24,7 @@ _To contribute, check out our [guide here](#contributing)._
24
24
| [ DataTable] ( #datatable ) | _ Creates a DataTable_ |
25
25
| [ DateTimeWriteVerbose] ( #datetimewriteverbose ) | _ Write-Verbose with the time and date pre-pended to your message by @ThmsRynr_ |
26
26
| [ Error-Terminating] ( #error-terminating ) | _ Create a full terminating error by @omniomi_ |
27
+ | [ Exchange Online Connection] ( exchange-online-connection ) | _ Create a connection to Exchange Online by @vmsilvamolina_ |
27
28
| [ IfShouldProcess] ( #ifshouldprocess ) | _ Added If Should Process_ |
28
29
| [ MaxColumnLengthinDataTable] ( #maxcolumnlengthindatatable ) | _ Gets the max length of string columns in datatables_ |
29
30
| [ New Azure Resource Group] ( #new-azure-resource-group ) | _ Create an Azure Resource group by @vmsilvamolina_ |
@@ -177,6 +178,28 @@ Quickly add a fully defined error record and throw. by @omniomi
177
178
}
178
179
```
179
180
181
+ ### Exchange Online Connection
182
+
183
+ Connect to Exchange Online, by @vmsilvamolina
184
+
185
+ #### Snippet
186
+
187
+ ``` json
188
+ "Exchange Online Connection" : {
189
+ "prefix" : " ex-ExchangeOnlineConnection" ,
190
+ "body" : [
191
+ " #Set Execution Policy" ,
192
+ " Set-ExecutionPolicy RemoteSigned -Scope Process" ,
193
+ " #Define credential" ,
194
+ " \\ $UserCredential = Get-Credential" ,
195
+ " # Create the session" ,
196
+ " \\ $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential \\ $UserCredential -Authentication Basic -AllowRedirection" ,
197
+ " Import-PSSession \\ $Session -DisableNameChecking"
198
+ ],
199
+ "description" : " Connect to Exchange Online"
200
+ }
201
+ ```
202
+
180
203
### IfShouldProcess
181
204
182
205
Add If Should Process with easy tab inputs
0 commit comments