This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ($cred -eq $null) | |
{ | |
$cred = Get-Credential | |
} | |
Write-Host "Connecting to Exchange Online" | |
$exchangeSession = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $cred -Authentication Basic -AllowRedirection | |
Import-PSSession $exchangeSession | Out-Null |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
param ( | |
[string]$Url, | |
$Credentials | |
) | |
if ($Credentials -eq $null) | |
{ | |
$Credentials = Get-Credential | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
param ( | |
[string]$GroupName, | |
$Credentials | |
) | |
if ($Credentials -eq $null) | |
{ | |
$Credentials = Get-Credential | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
param ( | |
[Parameter(Mandatory=$true)] | |
[string]$PublishSettingsFile, | |
[Parameter(Mandatory=$true)] | |
[string]$DeploymentBatch, | |
[Parameter(Mandatory=$true)] | |
[string]$WebAppUrl, | |
[switch]$Deploy | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
param ( | |
[Parameter(Mandatory=$true)] | |
[string]$Url, | |
[Parameter(Mandatory=$true)] | |
[string]$TranscriptPath, | |
[Parameter(Mandatory=$true)] | |
$Credentials, | |
[switch]$IgnoreRoot | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
param ( | |
[string]$UserMail | |
) | |
function Ensure-AzureADConnection | |
{ | |
try | |
{ | |
# $var = Get-AzureADTenantDetail | |
$var = Get-AzureADUser -Top 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace TranscriptTester | |
{ | |
class Program | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
var dlgOptions; | |
function setDlgOptions(pictureUrl) { | |
var htmlFragment = document.createElement("img"); | |
htmlFragment.setAttribute("src", pictureUrl); | |
htmlFragment.setAttribute("width", "800"); | |
htmlFragment.setAttribute("height", "600"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$field = Get-PnPField -Identity "MyChoiceField" | |
$ctx = Get-PnPContext | |
$fieldChoice = [Microsoft.SharePoint.Client.ClientContext].GetMethod("CastTo").MakeGenericMethod([Microsoft.SharePoint.Client.FieldChoice]).Invoke($ctx, $field) | |
$ctx.Load($fieldChoice) | |
Invoke-PnPQuery |
OlderNewer