Skip to content

Instantly share code, notes, and snippets.

View spjeff's full-sized avatar

Jeff Jones spjeff

View GitHub Profile
@wictorwilen
wictorwilen / officeroadmap-bloghelper.ps1
Created August 1, 2016 06:29
Office 365 Roadmap site script
## Import a diff file
$d = Import-Clixml .\diff2016-05-20.xml
## Write some Html stuff
$d | ?{$_.SideIndicator -eq "=>"} | % {
Write-Host "<li><b>$($_.outerText):</b> </li>"
}
@vgrem
vgrem / Activate-JQuery.ps1
Created September 24, 2014 21:09
Enable jQuery in Office 365
param(
[string]$SiteUrl,
[string]$UserName,
[string]$Password
)
. ".\UserCustomActions.ps1"
<#
.SYNOPSIS
@vgrem
vgrem / UserCustomActions.ps1
Created September 24, 2014 20:43
How to utilize User Custom Actions using SharePoint CSOM
[System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint.Client")
[System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint.Client.Runtime")
Function Get-SPOCredentials([string]$UserName,[string]$Password)
{
if([string]::IsNullOrEmpty($Password)) {
$SecurePassword = Read-Host -Prompt "Enter the password" -AsSecureString
}
@vgrem
vgrem / Activate-GoogleAnalytics.ps1
Last active July 18, 2016 15:05
Activate Google Analytics in SharePoint Online site
param(
[string]$SiteUrl,
[string]$UserName,
[string]$Password
)
. ".\UserCustomActions.ps1"
<#
.SYNOPSIS