View AutoSpSourceBuilderDsc.ps1
This file contains 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
Configuration AutoSpSourceBuilderDsc { | |
param ( | |
# SharePoint Patch Name - As Defined by AutoSPSourceBuilder | |
[Parameter()] | |
[System.String] | |
$SharePointPatchName, | |
# SharePoint Version (2013 or 2016) | |
[Parameter(Mandatory = $true)] | |
[Int] |
View ScriptResourceHyper-V.ps1
This file contains 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 Hyper-V | |
{ | |
GetScript = { | |
Write-Verbose "Get current status for Microsoft-Hyper-V Feature" | |
$hyperVFeatureState = Get-WindowsOptionalFeature -FeatureName Microsoft-Hyper-V -Online -ErrorAction SilentlyContinue | |
return @{ | |
Result = $hyperVFeatureState | |
} | |
} |
View TweetDeckSPFxFilter.txt
This file contains 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
#SPFx -#art -#artist -#artistreborn -#behindthescenes -#blood -#Elementary -#hollywood -#LED -#makeup -#makeupeffects -#makeupfx -#mua -#mufx -#pyro -#pyrotechnics -#sfx -#SharpFX -#specialeffects -#specialeffectsmakeup -#specialfx -#specialfxmakeup -#specialmakeupeffects -#specialmakeupfx -#spfmakeup -#spfxmua -#tv -#wounds -from:webpart_o_matic |
View SqlServerAlias.New.ps1
This file contains 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
$ConfigurationData.NonNodeData.SqlServerAlias.Keys | ForEach-Object -Process { | |
SqlAlias $ConfigurationData.NonNodeData.SqlServerAlias[$_].Name | |
{ | |
Name = $ConfigurationData.NonNodeData.SqlServerAlias[$_].Name | |
ServerName = $ConfigurationData.NonNodeData.SqlServerAlias[$_].ServerName | |
Protocol = $ConfigurationData.NonNodeData.SqlServerAlias[$_].Protocol | |
UseDynamicTcpPort = $ConfigurationData.NonNodeData.SqlServerAlias[$_].UseDynamicTcpPort | |
TcpPort = $ConfigurationData.NonNodeData.SqlServerAlias[$_].TcpPort | |
Ensure = 'Present' |
View ConfigurationData.New.psd1
This file contains 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
@{ | |
AllNodes = @( | |
@{ | |
NodeName = "*" | |
PSDscAllowPlainTextPassword = $true | |
PSDscAllowDomainUser = $true | |
ServerRole = "invalid" | |
}, | |
@{ | |
NodeName = "SharePointServer" |
View SqlServerAlias.Old.ps1
This file contains 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
$ConfigurationData.NonNodeData.SqlServerAlias | ForEach-Object -Process { | |
SqlAlias $_.Name | |
{ | |
Name = $_.Name | |
ServerName = $_.ServerName | |
Protocol = $_.Protocol | |
UseDynamicTcpPort = $_.UseDynamicTcpPort | |
TcpPort = $_.TcpPort | |
Ensure = 'Present' |
View ConfigurationData.Old.psd1
This file contains 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
@{ | |
AllNodes = @( | |
@{ | |
NodeName = "*" | |
PSDscAllowPlainTextPassword = $true | |
PSDscAllowDomainUser = $true | |
ServerRole = "invalid" | |
}, | |
@{ | |
NodeName = "SharePointServer" |
View Get-SPUserProfilePropertyMapping.ps1
This file contains 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-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue | |
$caURL = (Get-SPWebApplication -IncludeCentralAdministration | Where-Object -FilterScript { | |
$_.IsAdministrationWebApplication -eq $true | |
}).Url | |
$context = Get-SPServiceContext -Site $caURL | |
$userProfileConfigManager = New-Object -TypeName "Microsoft.Office.Server.UserProfiles.UserProfileConfigManager" ` | |
-ArgumentList $context | |
$connection = $userProfileConfigManager.ConnectionManager["AD"] | |
if($connection.Type -eq "ActiveDirectoryImport") |
NewerOlder