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
<# | |
.SYNOPSIS | |
When you run this script you onboard your SharePoint Online (SPO) tenant and your SharePoint Server Cloud SSA to cloud hybrid search. | |
This includes setting up server-to-server authentication between SharePoint Online and SharePoint Server. | |
.PARAMETER PortalUrl | |
SharePoint Online portal URL, for example 'https://contoso.sharepoint.com'. | |
.PARAMETER CloudSsaId | |
Name or ID (Guid) of the Cloud Search Service Application, created with the CreateCloudSSA script. | |
.PARAMETER Credential | |
Logon credential for admin account. Will prompt for credential if not specified. |
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
# Re-Enable NGen images | |
function Remove-IniFile { | |
param([string]$filePath) | |
$fileInfo = Get-Item -LiteralPath $filePath | |
$fileSize = $fileInfo.Length | |
$expectedSize = ($content.Length + 2) * 2 + 2 # Accounting for BOM and line endings | |
if ($fileSize -eq $expectedSize) { |
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
# Disable NGen Images | |
$content = "[.NET Framework Debugging Control]`r`nGenerateTrackingInfo=1`r`nAllowOptimize=0" | |
function Create-IniFile { | |
param([string]$filePath) | |
try { | |
Out-File -LiteralPath $filePath -InputObject $content -Force | |
$Script:written++ | |
return "" |
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
2.11.1.0 |
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
1.23.1121 |
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
' Name: Robust Office Inventory Scan - Version 1.9.3.3 | |
' Author: Microsoft Customer Support Services | |
' Copyright (c) Microsoft Corporation. All rights reserved. | |
' Script to create an inventory scan of installed Office applications | |
' Supported Office Families: 2000, 2002, 2003, 2007 | |
' 2010, 2013, 2016, 2019 | |
' 2021, O365 | |
Option Explicit | |
On Error Resume Next |
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
Get-SPTimerJob | ?{$_.schedule.description -eq "One-time"} |select displayname,server,locktype,lastruntime | fl |
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
Add-Type -AssemblyName System.speech | |
$PCTalk = New-Object System.Speech.Synthesis.SpeechSynthesizer | |
$TextToSpeech = @(" | |
This is the text which gets spoken by the computer, | |
Cheers ") | |
$PCTalk.Speak($TextToSpeech) |