Skip to content

Instantly share code, notes, and snippets.

View westerdaled's full-sized avatar
🏠
Working from home

Daniel Westerdale westerdaled

🏠
Working from home
View GitHub Profile
@westerdaled
westerdaled / Enable-SPOSIteExternalSharing.PS1
Created August 19, 2019 12:26
Enable External Sharing on a SharePoint Online Site
$tenant = "yourTenant"
$tenantUrl = "https://{0}.sharepoint.com/" -f $tenant
$siteTitle = "siteToShareTitle"
$siteToShareUrl = "https://{0}.sharepoint.com/sites/{1}" -f $tenant, $siteTitle
$adminSiteUrl = "https://{0}-admin.sharepoint.com/" -f $tenant
@westerdaled
westerdaled / settings.json
Last active March 26, 2020 21:56
Visual Studio Code User Settings ( %APPDATA%\Code\User\settings.json)
"window.zoomLevel": 0,
//"terminal.integrated.shell.windows": "C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",
"terminal.integrated.shell.windows": "C:/Program Files/PowerShell/7/pwsh.exe",
"shellLauncher.shells.windows": [{
"shell": "C:/Program Files/PowerShell/7/pwsh.exe",
"label": "PowerShell 7 Core"
},
{
"shell": "C:/Windows/system32/WindowsPowerShell/v1.0/powershell.exe",
if ($env:TERM_PROGRAM -eq "vscode") {
Set-PSReadLineKeyHandler -Chord 'Ctrl+w' -Function BackwardKillWord
Set-PSReadLineKeyHandler -Chord 'Alt+D' -Function KillWord
Set-PSReadLineKeyHandler -Chord 'Ctrl+@' -Function MenuComplete
}
#
# SharePoint must be configured to allow Remote Endpoint intranet calls to local web services by using the following Windows PowerShell commands.
#
Add-PSSnapin Microsoft.sharepoint.powershell
$f = Get-SPFarm
$f.Properties.DisableIntranetCalls = $false
$f.Properties.DisableIntranetCallsFromApps = $false
$f.Update()