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
echo select disk 0 > diskpart%ID%.txt | |
echo clean >> diskpart%ID%.txt | |
echo ** Creating system reserved partition... | |
echo create partition primary size=500 >> diskpart%ID%.txt | |
echo select partition 1 >> diskpart%ID%.txt | |
echo active >> diskpart%ID%.txt | |
echo format quick fs=ntfs >> diskpart%ID%.txt | |
echo assign letter="r" >> diskpart%ID%.txt |
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 | |
Gets the SharePoint License Key for 2007, 2010, or 2013 | |
.DESCRIPTION | |
Gets the SharePoint License Key for 2007, 2010, or 2013. | |
.PARAMETER version | |
Version of SharePoint installed. |
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(-not (Get-PSSnapin "Microsoft.SharePoint.PowerShell" -ErrorAction SilentlyContinue)){Add-PSSnapin "Microsoft.SharePoint.PowerShell"} | |
# update SharePoint cache token lifetime | |
$SPContentService = [Microsoft.SharePoint.Administration.SPWebService]::ContentService | |
$SPContentService.TokenTimeout = (New-TimeSpan -minutes 5) | |
$SPContentService.Update() | |
# udpate SharePoint claims token lifetime |