full_path stringlengths 31 232 | filename stringlengths 4 167 | content stringlengths 0 48.3M |
|---|---|---|
PowerShellCorpus/Github/sskoklev_Structure2/POC/Common/SSLManagementUtility.ps1 | SSLManagementUtility.ps1 | # ===================================================================================
# Author: Marina Krynina, CSC
# Func: GenerateSelfSignedCertificate
# Desc: Generates self-signed certificate
# ===================================================================================
Function GenerateSelfSignedCertif... |
PowerShellCorpus/Github/sskoklev_Structure2/POC/Common/Construct-URL.ps1 | Construct-URL.ps1 | # ===================================================================================
# Author: Marina Krynina, CSC
# Func: ConstructURL
# Desc: if SSL ==> https://$urlbit.$suffix
# if not ==> http://$urlbit.$suffix
# ===================================================================================
functi... |
PowerShellCorpus/Github/sskoklev_Structure2/POC/Common/ExecuteWindowsUsersV2.ps1 | ExecuteWindowsUsersV2.ps1 | #################################################################################################
# Author: Stiven Skoklevski/Denis Gittard
# Desc: Functions to support preparation of Windows Users
#################################################################################################
. .\FilesUtility.ps1... |
PowerShellCorpus/Github/sskoklev_Structure2/POC/Common/debug_Assign-ReplicateDirChanges.ps1 | debug_Assign-ReplicateDirChanges.ps1 | # MWS2R2 -Assign Replicate Dir Changes ##################################################################
# Author: Marina Krynina
#################################################################################################
try
{
write-host "INFO: Attempting to assign Replicate Directory Changes permission t... |
PowerShellCorpus/Github/sskoklev_Structure2/POC/Common/ConfigFiles/admin-GetFeatures.ps1 | admin-GetFeatures.ps1 | # The commands below retun 3 columns.
# The column used to populate the WindowsFeatures.xml file is 'Name'
# Get a list of all available features
Get-WindowsFeature
# Get a list of features that are already installed
Get-WindowsFeature | Where Installed
# Get a list of features that start with the letters A... |
PowerShellCorpus/Github/sskoklev_Structure2/POC/Common/TestFramework/HTMLGenerator.ps1 | HTMLGenerator.ps1 | ############################################################################################
# Author: Marina Krynina
# Desc: Set functions to support creating of a HTML file.
# Currently used in Unit Testing Framework
# Updates:
# - Stiven Skoklevski: load dll for non-web servers
##############################... |
PowerShellCorpus/Github/sskoklev_Structure2/POC/Common/TestFramework/Execute-UnitTest-Server.ps1 | Execute-UnitTest-Server.ps1 | Param(
[string] $scriptPath
)
############################################################################################
# Author: Marina Krynina
# Desc: Executes Unit testing Server Side - Common
############################################################################################
# \USER_PROFILE
# ... |
PowerShellCorpus/Github/sskoklev_Structure2/POC/Common/TestFramework/UnitTest-Server-Common-IIS.ps1 | UnitTest-Server-Common-IIS.ps1 | Param(
[string] $scriptPath,
[string] $testFolder
)
############################################################################################
# Author: Marina Krynina
# Desc: Server side Unit testing - Common IIS
###########################################################################################... |
PowerShellCorpus/Github/sskoklev_Structure2/POC/Common/TestFramework/UnitTest-Common-Utilities.ps1 | UnitTest-Common-Utilities.ps1 | ############################################################################################
# Author: Marina Krynina
# Desc: Server side Unit testing - Common
# Updates:
# Added windows features - Stiven
# Added Check-WebPage - Stiven
#############################################################... |
PowerShellCorpus/Github/sskoklev_Structure2/POC/Common/TestFramework/UnitTest-Server-Template.ps1 | UnitTest-Server-Template.ps1 | Param(
[string] $scriptPath,
[string] $testFolder
)
############################################################################################
# Author: Marina Krynina
# Desc: Server side Unit testing - Template and Sample
#################################################################################... |
PowerShellCorpus/Github/sskoklev_Structure2/POC/Common/TestFramework/UnitTest-Server-Common.ps1 | UnitTest-Server-Common.ps1 | Param(
[string] $scriptPath,
[string] $testFolder
)
############################################################################################
# Author: Marina Krynina
# Desc: Server side Unit testing - Common
# Updates:
# Added windows features - Stiven
######################################... |
PowerShellCorpus/Github/sskoklev_Structure2/POC/Common/TestFramework/Debug/UnitTest-Server-Common - ORIG.ps1 | UnitTest-Server-Common - ORIG.ps1 | Param(
[string] $scriptPath,
[string] $testFolder
)
############################################################################################
# Author: Marina Krynina
# Desc: Server side Unit testing - Common
############################################################################################
... |
PowerShellCorpus/Github/sskoklev_Structure2/POC/Common/TestFramework/Debug/Execute-UnitTest-Server.ps1 | Execute-UnitTest-Server.ps1 | Param(
[string] $scriptPath
)
############################################################################################
# Author: Marina Krynina
# Desc: Executes Unit testing Server Side - Common
############################################################################################
# \USER_PROFILE
# ... |
PowerShellCorpus/Github/sskoklev_Structure2/POC/Common/TestFramework/Debug/debug_ExecutUnitTestServer.ps1 | debug_ExecutUnitTestServer.ps1 | # Script: Server side testing - Common
# Author: Marina Krynina
#################################################################################################
# \USER_PROFILE
# \TestResults
# \Logs
try
{
$scriptPath = "c:\users\mkrynina"
. .\LoggingV2.ps1 $true $scriptPath "Execute-U... |
PowerShellCorpus/Github/sskoklev_Structure2/POC/Common/TestFramework/Debug/UnitTest-Server-Common - SS.ps1 | UnitTest-Server-Common - SS.ps1 | Param(
[string] $scriptPath,
[string] $testFolder
)
############################################################################################
# Author: Marina Krynina
# Desc: Server side Unit testing - Common
############################################################################################
... |
PowerShellCorpus/Github/sskoklev_Structure2/POC/Common/TestFramework/Debug/UnitTest-Server-Common.BK.ps1 | UnitTest-Server-Common.BK.ps1 | Param(
[string] $scriptPath,
[string] $testFolder
)
############################################################################################
# Author: Marina Krynina
# Desc: Server side Unit testing - Common
############################################################################################
... |
PowerShellCorpus/Github/sskoklev_Structure2/POC/OfficeWebApps2013/debug_InstallWAC2013Update.ps1 | debug_InstallWAC2013Update.ps1 | # MWS2R3 - Install a Office Web Apps update ###############################################################
# Author: Marina Krynina
# Desc: installs an update
############################################################################################
# \USER_PROFILE
# \Install
# \Config
# \Insta... |
PowerShellCorpus/Github/sskoklev_Structure2/POC/OfficeWebApps2013/debug_InstallOWA2013.ps1 | debug_InstallOWA2013.ps1 | # Script: InstallOWA2013
# Author: Marina Krynina, CSC
#################################################################################################
# \USER_PROFILE
# \Install
# \Config
# \InstallMedia
# \Logs
try
{
Write-host "INFO: Starting script execution"
# $scriptPath... |
PowerShellCorpus/Github/sskoklev_Structure2/POC/OfficeWebApps2013/debug_ConfigureOWA2013.ps1 | debug_ConfigureOWA2013.ps1 | # MWS2R2 - OWA 2013 Configure ##################################################################
# Author: Marina Krynina
#################################################################################################
# \USER_PROFILE
# \Install
# \Config
# \InstallMedia
# \OWA2013S... |
PowerShellCorpus/Github/sskoklev_Structure2/POC/OfficeWebApps2013/debug_RemoveWAC2013Server.ps1 | debug_RemoveWAC2013Server.ps1 | #########################################################
# Script: debug_RemoveWAC2013Server ####################
# Author: Kulothunkan Palasundram
# Desc: Removes a server from the Office Web Apps Farm
#########################################################
# \USER_PROFILE
# \Install
# \Con... |
PowerShellCorpus/Github/sskoklev_Structure2/POC/OfficeWebApps2013/Test/unitTest_OfficeWebApps.ps1 | unitTest_OfficeWebApps.ps1 | Function WriteLine
{
log ""
log "------------------------------------------------------------------------------------------------------------"
}
Function GetFromNode([System.Xml.XmlElement]$node, [string] $item)
{
$value = $node.GetAttribute($item)
If ($value -eq "")
{
$child = $... |
PowerShellCorpus/Github/sskoklev_Structure2/POC/OfficeWebApps2013/Install/Install-WAC2013Update.ps1 | Install-WAC2013Update.ps1 | Param(
[string] $scriptPath,
[string] $patchLocation,
[string] $patches
)
function Stop-Services()
{
#######################
##Stop Other Services##
#######################
Set-Service -Name "IISADMIN" -startuptype Disabled
log "INFO: Gracefully stopping IIS W3WP P... |
PowerShellCorpus/Github/sskoklev_Structure2/POC/OfficeWebApps2013/Install/Execute-InstallWAC2013Update.ps1 | Execute-InstallWAC2013Update.ps1 | Param(
[string] $scriptPath
)
#################################################################################################
# Author: Marina Krynina
# Desc: Functions to support installation of SharePoint updates
############################################################################################... |
PowerShellCorpus/Github/sskoklev_Structure2/POC/OfficeWebApps2013/Install/Install-OWA2013.ps1 | Install-OWA2013.ps1 | ############################################################################################
# Author: Marina Krynina
# Desc: Functions to support installation of SharePoint 2013
# Updates:
# 2015-11-12
#################################################################################################
###... |
PowerShellCorpus/Github/sskoklev_Structure2/POC/OfficeWebApps2013/ManualPatchingScripts/OfficeWebApps_StopServices.ps1 | OfficeWebApps_StopServices.ps1 | #Stop Services
Set-Service -Name "IISADMIN" -startuptype Disabled
iisreset -stop -noforce
|
PowerShellCorpus/Github/sskoklev_Structure2/POC/OfficeWebApps2013/ManualPatchingScripts/OfficeWebApps_JoinFarm.ps1 | OfficeWebApps_JoinFarm.ps1 | Import-Module OfficeWebApps
New-OfficeWebAppsMachine –MachineToJoin DEVAPPSYD005W.devraus01.cscmws.com
|
PowerShellCorpus/Github/sskoklev_Structure2/POC/OfficeWebApps2013/ManualPatchingScripts/OfficeWebApps_RemoveOfficeWebAppsMachine.ps1 | OfficeWebApps_RemoveOfficeWebAppsMachine.ps1 | Import-Module OfficeWebApps
Remove-OfficeWebAppsMachine |
PowerShellCorpus/Github/sskoklev_Structure2/POC/OfficeWebApps2013/ManualPatchingScripts/OfficeWebApps_CreateNewFarm.ps1 | OfficeWebApps_CreateNewFarm.ps1 | Import-Module OfficeWebApps
New-OfficeWebAppsFarm -CacheLocation "E:\Program Files\Microsoft\OfficeWebApps\Working\d\" -CacheSizeInGB 15 -CertificateName "MWS2R2 OfficeApps" -InternalURL "officeapps.mwsaust.net" -ExternalUrl "officeapps.mwsaust.net" -LogLocation "L:\LogFiles\OfficeWebApps\ULS" -LogRetent... |
PowerShellCorpus/Github/sskoklev_Structure2/POC/OfficeWebApps2013/ManualPatchingScripts/OfficeWebApps_StartServices.ps1 | OfficeWebApps_StartServices.ps1 | #Start Services
Set-Service -Name "IISADMIN" -startuptype Automatic
$iissrv = get-service "IISADMIN"
$iissrv.start()
|
PowerShellCorpus/Github/sskoklev_Structure2/POC/OfficeWebApps2013/ManualPatchingScripts/OfficeWebApps_CheckFarm.ps1 | OfficeWebApps_CheckFarm.ps1 | Import-Module OfficeWebApps
(Get-OfficeWebAppsFarm).Machines |
PowerShellCorpus/Github/sskoklev_Structure2/POC/OfficeWebApps2013/ManualPatchingScripts/OfficeWebApps_CheckVersion.ps1 | OfficeWebApps_CheckVersion.ps1 | Import-Module OfficeWebApps
(Invoke-WebRequest https://OfficeApps.MWSAust.NET/op/servicebusy.htm).Headers["X-OfficeVersion"] |
PowerShellCorpus/Github/sskoklev_Structure2/POC/OfficeWebApps2013/Config/Configure-OWA2013.ps1 | Configure-OWA2013.ps1 | Param(
[string] $scriptPath,
[string] $inputFile
)
#################################################################################################
# Author: Marina Krynina
# Desc: Functions to import SSL certificates. This function is obsolete
###########################################################... |
PowerShellCorpus/Github/sskoklev_Structure2/POC/OfficeWebApps2013/Config/Remove-WAC2013Server.ps1 | Remove-WAC2013Server.ps1 |
############################################################################################
# Main
############################################################################################
# Load Common functions
. .\FilesUtility.ps1
. .\PlatformUtils.ps1
. .\VariableUtility.ps1
. .\LaunchProcess.ps1
Set-Locatio... |
PowerShellCorpus/Github/sskoklev_Structure2/POC/OfficeWebApps2013/Config/admin_GetWACVersion.ps1 | admin_GetWACVersion.ps1 | (Invoke-WebRequest https://OfficeAppsclient0.mwsaust.net/m/met/participant.svc/jsonAnonymous/BroadcastPing).Headers["X-OfficeVersion"] |
PowerShellCorpus/Github/sskoklev_Structure2/POC/OfficeWebApps2013/Config/Execute-RemoveWAC2013Server.ps1 | Execute-RemoveWAC2013Server.ps1 | Param(
[string] $scriptPath
)
###############################################################################
# Author: Kulothunkan Palasundram
# Desc: Functions to support removal of office web apps server from farm
# Main
###############################################################################
# Loa... |
PowerShellCorpus/Github/sskoklev_Structure2/POC/OfficeWebApps2013/Config/Execute-OWA2013Configuration.ps1 | Execute-OWA2013Configuration.ps1 | # MWS2R2 - OWA 2013 Configure ##########################################################################################
# Author: Marina Krynina
# Desc: The script is based on the script provided by ServiceMesh
# Updates:
# 2015-01-16 Configures OWA farm
#####################################################... |
PowerShellCorpus/Github/sskoklev_Structure2/POC/OfficeWebApps2013/Config/admin_CreateSelfSignedCert.ps1 | admin_CreateSelfSignedCert.ps1 | # Client 0
New-SelfSignedCertificate -DnsName OfficeAppsClient0.mwsaust.net,devappsyd015w.devraus01.cscmws.com -CertStoreLocation Cert:\LocalMachine\My
# Demo
New-SelfSignedCertificate -DnsName OfficeApps.mwsaust.net,devappsyd005w.devraus01.cscmws.com,devappsyd006w.devraus01.cscmws.com -CertStoreLocation Cert:\Loc... |
PowerShellCorpus/Github/sskoklev_Structure2/POC/OfficeWebApps2013/TestFramework/UnitTest-Server-OfficeWebApps.ps1 | UnitTest-Server-OfficeWebApps.ps1 | Param(
[string] $scriptPath,
[string] $testFolder
)
############################################################################################
# Author: Marina Krynina
# Desc: Server side Unit testing - Office Web Apps
#####################################################################################... |
PowerShellCorpus/Github/sskoklev_Structure2/BSL/AirWatch/debug_Execute-AirWatch-Install-DB.ps1 | debug_Execute-AirWatch-Install-DB.ps1 | # Author: Marina Krynina
############################################################################################
try
{
write-host "INFO: Start Execute-AirWatch-Install"
# get current script location
$scriptPath = split-path -parent $MyInvocation.MyCommand.Definition
# Agility Variable... |
PowerShellCorpus/Github/sskoklev_Structure2/BSL/AirWatch/debug_ServerTest-AirWatch.ps1 | debug_ServerTest-AirWatch.ps1 | # Script: Server side testing - AirWatch
# Author: Marina Krynina
#################################################################################################
# \USER_PROFILE
# \TestResults
# \Logs
try
{
$scriptPath = split-path -parent $MyInvocation.MyCommand.Definition
. .\Log... |
PowerShellCorpus/Github/sskoklev_Structure2/BSL/AirWatch/AW-INSTALL-Reports.ps1 | AW-INSTALL-Reports.ps1 | # Author: Marina Krynina
############################################################################################
Param(
[string] $scriptPath
)
# Author: Marina Krynina
############################################################################################
Set-Location -Path $scriptPath
write-host "$scri... |
PowerShellCorpus/Github/sskoklev_Structure2/BSL/AirWatch/debug_Execute-Run-PSScript.ps1 | debug_Execute-Run-PSScript.ps1 | # Author: Marina Krynina
############################################################################################
try
{
write-host "INFO: Start Execute-AirWatch-Scripts"
# get current script location
$scriptPath = split-path -parent $MyInvocation.MyCommand.Definition
# Agility Variable... |
PowerShellCorpus/Github/sskoklev_Structure2/BSL/AirWatch/debug_Execute-AirWatch-Install-RPT.ps1 | debug_Execute-AirWatch-Install-RPT.ps1 | # Author: Marina Krynina
############################################################################################
try
{
write-host "INFO: Start Execute-AirWatch-Install"
# get current script location
$scriptPath = split-path -parent $MyInvocation.MyCommand.Definition
# Agility Variable... |
PowerShellCorpus/Github/sskoklev_Structure2/BSL/AirWatch/debug_Execute-AirWatch-Install.ps1 | debug_Execute-AirWatch-Install.ps1 | # Author: Marina Krynina
############################################################################################
try
{
write-host "INFO: Start Execute-AirWatch-Install"
# get current script location
$scriptPath = split-path -parent $MyInvocation.MyCommand.Definition
# Agility Variable... |
PowerShellCorpus/Github/sskoklev_Structure2/BSL/AirWatch/AirWatch-Manage-ReportingService.ps1 | AirWatch-Manage-ReportingService.ps1 | Param(
[string] $scriptPath,
[string] $action,
[string] $INSTALLSET_XML = "ConfigFiles\AirWatch-Install.xml"
)
# Author: Marina Krynina
# ===================================================================================
#################################################################################... |
PowerShellCorpus/Github/sskoklev_Structure2/BSL/AirWatch/debug_Execute-AirWatch-Install-APP.ps1 | debug_Execute-AirWatch-Install-APP.ps1 | # Author: Marina Krynina
############################################################################################
try
{
write-host "INFO: Start Execute-AirWatch-Install"
# get current script location
$scriptPath = split-path -parent $MyInvocation.MyCommand.Definition
# Agility Variable... |
PowerShellCorpus/Github/sskoklev_Structure2/BSL/AirWatch/_admin_ReplaceDataInConfigFiles.ps1 | _admin_ReplaceDataInConfigFiles.ps1 | #########################################################################
# Author: Marina Krynina, Stiven Skoklevski, CSC
# Find and replace the a given substring with a new value
#########################################################################
function UpdateConfigFiles([string]$inputFile)
{
[xml]... |
PowerShellCorpus/Github/sskoklev_Structure2/BSL/AirWatch/_admin-ServerTest.ps1 | _admin-ServerTest.ps1 | # Installed >NET Framework version and release
# release 378675 or 378758 = .NET 4.5.1
# release 379893 = .NET 4.5.2
Get-ChildItem 'Microsoft.Powershell.Core\Registry::HKLM\SOFTWARE\Microsoft\NET Framework Setup\NDP' -recurse |
get-ItemProperty -name Version, Release -EA 0 |
Where {$_.PSChildName -match '^(?!S)\p{... |
PowerShellCorpus/Github/sskoklev_Structure2/BSL/AirWatch/ConfigFiles/AirWatch-Variables.ps1 | AirWatch-Variables.ps1 | # ============== COMMON ======================================================================
# run script but do not execute installs
$TEST = $false
#do not use lLevated Task, just load the script for debugging
$DEBUG = $false
$ADMIN = "agilitydeploy"
$DBSERVER = ""
$DBINSTANCE = ""
$SQLALIAS = "AIRWATCH_... |
PowerShellCorpus/Github/sskoklev_Structure2/BSL/AirWatch/Install/Execute-Run-PSScript.ps1 | Execute-Run-PSScript.ps1 | Param(
[string] $scriptPath
)
# Author: Marina Krynina
function RunPSScripts([xml] $xmlinput)
{
$nodes = $xmlinput.SelectNodes("//ScriptsSet/Script")
if (([string]::IsNullOrEmpty($nodes)))
{
log "INFO: No script to run is configured in: '$inputFile'"
return 0
}
$rv... |
PowerShellCorpus/Github/sskoklev_Structure2/BSL/AirWatch/Install/Execute-AirWatch-Install.ps1 | Execute-AirWatch-Install.ps1 | Param(
[string] $scriptPath,
[string] $installOption
)
# Author: Marina Krynina
# ===================================================================================
# Desc: Updates the config file(s) with derived values
# =================================================================================... |
PowerShellCorpus/Github/sskoklev_Structure2/BSL/AirWatch/Install/Kill-AirWatch-Popups.ps1 | Kill-AirWatch-Popups.ps1 | Param(
[string] $scriptPath
)
. .\LoggingV3.ps1 $true $scriptPath "Wait-And-Stop-AirWatchPopup.ps1"
$parentProcessMainTitle = "AirWatch Reports"
$popupTitle = "AirWatch Reports - InstallShield Wizard"
Start-Sleep 60
While ((get-process | where {($_.mainWindowTitle).ToUpper() -eq ($parentProcessMainTitl... |
PowerShellCorpus/Github/sskoklev_Structure2/BSL/AirWatch/Install/AirWatch-Install.ps1 | AirWatch-Install.ps1 | Param(
[string] $scriptPath,
[string] $installFile,
[string] $arguments,
[string] $parameters,
[string] $AWRSEXE,
[string] $AWRSSVCLOCATION,
[string] $AWRSLOCATION
)
# Author: Marina Krynina
###########################################################################################... |
PowerShellCorpus/Github/sskoklev_Structure2/BSL/AirWatch/Install/Set-RegistryServicesStartTimeout.ps1 | Set-RegistryServicesStartTimeout.ps1 | Param(
[string]$curLocation,
$timeout
)
# Author: Marina Krynina
############################################################################################
# Main
############################################################################################
# Load Common functions
$scriptPath = $curLocatio... |
PowerShellCorpus/Github/sskoklev_Structure2/BSL/AirWatch/TestFramework/ServerTest-AirWatch.ps1 | ServerTest-AirWatch.ps1 | Param(
[string] $scriptPath,
[string] $testFolder
)
############################################################################################
# Author: Marina Krynina
# Desc: Server side testing - AirWatch
############################################################################################
f... |
PowerShellCorpus/Github/sskoklev_Structure2/BSL/OfficeOnline/debug_Execute-OfcOnline-RemoveServerFromFarm.ps1 | debug_Execute-OfcOnline-RemoveServerFromFarm.ps1 | # Author: Marina Krynina
try
{
$scriptPath = split-path -parent $MyInvocation.MyCommand.Definition
write-host "INFO: Start Execute-OfcOnline-RemoveServerFromFarm"
. .\Config\Execute-OfcOnline-RemoveServerFromFarm.ps1 $scriptPath
exit 0
}
catch
{
$ex = $_.Exception | format-list ... |
PowerShellCorpus/Github/sskoklev_Structure2/BSL/OfficeOnline/debug_Execute-OfcOnline-Install.ps1 | debug_Execute-OfcOnline-Install.ps1 | try
{
$scriptPath = split-path -parent $MyInvocation.MyCommand.Definition
write-host "INFO: Start Execute-OfcOnline-Install"
# Agility Variables - set default
$DEBUG = $true
$VARIABLES = "ConfigFiles\Variables-OfcOnline.ps1"
. .\Install\Execute-OfcOnline-Install.ps1 $scriptPath
... |
PowerShellCorpus/Github/sskoklev_Structure2/BSL/OfficeOnline/debug_Execute-OfcOnline-Update-Install.ps1 | debug_Execute-OfcOnline-Update-Install.ps1 | # Author: Marina Krynina
try
{
$scriptPath = split-path -parent $MyInvocation.MyCommand.Definition
write-host "INFO: Start Execute-OfcOnline-Update-Install"
# Agility Variables - set default
$DEBUG = $true
$VARIABLES = "ConfigFiles\Variables-OfcOnline.ps1"
. .\Install\Execute-Of... |
PowerShellCorpus/Github/sskoklev_Structure2/BSL/OfficeOnline/debug_Execute-OfcOnline-Config.ps1 | debug_Execute-OfcOnline-Config.ps1 | # Office Online Configure
# Author: Marina Krynina
#################################################################################################
try
{
$scriptPath = split-path -parent $MyInvocation.MyCommand.Definition
write-host "INFO: Start Execute-OfcOnline-Config"
# Agility Variables... |
PowerShellCorpus/Github/sskoklev_Structure2/BSL/OfficeOnline/ConfigFiles/Variables-OfcOnline.ps1 | Variables-OfcOnline.ps1 | $ADMIN = "agilitydeploy"
$USE_SSL = "true"
#region Configure Product
$PRIMARY_SERVER = "OWA-01"
$EDITING_ENABLED = "false"
$SSLOFFLOADED = "true"
# IMPORTANT: the certificate friendly name. This must match the CERTS_XML.xml
# It must exists in the Personal store. Otherwise, configuration will fail
$CERTIFICATE_... |
PowerShellCorpus/Github/sskoklev_Structure2/BSL/OfficeOnline/ConfigFiles/GSA/Variables-OfcOnline.ps1 | Variables-OfcOnline.ps1 | $ADMIN = "agilitydeploy"
$USE_SSL = "true"
#region Configure Product
$PRIMARY_SERVER = "OWA-01"
$EDITING_ENABLED = "false"
$SSLOFFLOADED = "true"
# IMPORTANT: the certificate friendly name. This must match the CERTS_XML.xml
# It must exists in the Personal store. Otherwise, configuration will fail
$CERTIFICATE_... |
PowerShellCorpus/Github/sskoklev_Structure2/BSL/OfficeOnline/Install/Execute-OfcOnline-Update-Install.ps1 | Execute-OfcOnline-Update-Install.ps1 | Param(
[string] $scriptPath
)
#################################################################################################
# Author: Marina Krynina
# Desc: Functions to support installation of Office Online updates
##########################################################################################... |
PowerShellCorpus/Github/sskoklev_Structure2/BSL/OfficeOnline/Install/OfcOnline-Update-Install.ps1 | OfcOnline-Update-Install.ps1 | Param(
[string] $scriptPath,
[string] $patchLocation,
[string] $patches
)
# Author: Marina Krynina
############################################################################################
# Main
############################################################################################
Se... |
PowerShellCorpus/Github/sskoklev_Structure2/BSL/OfficeOnline/Install/Execute-OfcOnline-Install.ps1 | Execute-OfcOnline-Install.ps1 | Param(
[string] $scriptPath
)
############################################################################################
# Author: Marina Krynina
#################################################################################################
#################################################################... |
PowerShellCorpus/Github/sskoklev_Structure2/BSL/OfficeOnline/Config/Execute-OfcOnline-Config.ps1 | Execute-OfcOnline-Config.ps1 | Param(
[string] $scriptPath
)
# Office Online Config
# Author: Marina Krynina
############################################################################################
function UpdateInputFile ([string] $inputFile)
{
if ((ifFileExists( $inputFile)) -ne $true)
{
throw "ERROR: $inputFile is mi... |
PowerShellCorpus/Github/sskoklev_Structure2/BSL/OfficeOnline/Config/OfcOnline-Config.ps1 | OfcOnline-Config.ps1 | Param(
[string] $scriptPath,
[string] $inputFile
)
#################################################################################################
# Author: Marina Krynina
# Desc: Configure ConfigureOfficeOnline
##########################################################################################... |
PowerShellCorpus/Github/sskoklev_Structure2/BSL/OfficeOnline/Config/OfcOnline-RemoveServerFromFarm.ps1 | OfcOnline-RemoveServerFromFarm.ps1 | Param(
[string] $scriptPath
)
############################################################################################
# Main
############################################################################################
Set-Location -Path $scriptPath
. .\LoggingV3.ps1 $true $scriptPath "OfcOnline-RemoveSer... |
PowerShellCorpus/Github/sskoklev_Structure2/BSL/OfficeOnline/Config/Execute-OfcOnline-RemoveServerFromFarm.ps1 | Execute-OfcOnline-RemoveServerFromFarm.ps1 | Param(
[string] $scriptPath
)
###############################################################################
# Author: Kulothunkan Palasundram
# Updated: Marina Krynina
# Desc: Functions to support removal of office web apps server from farm
# Main
###########################################################... |
PowerShellCorpus/Github/sskoklev_Structure2/BSL/OfficeOnline/Config/admin_CreateSelfSignedCert.ps1 | admin_CreateSelfSignedCert.ps1 | # Sandpit
New-SelfSignedCertificate -DnsName OfficeOnline.mwsaust.net,sndappsyd105w.sandpit.cscmws.com,sndappsyd106w.sandpit.cscmws.com -CertStoreLocation Cert:\LocalMachine\My |
PowerShellCorpus/Github/sskoklev_Structure2/BSL/SharePoint2016/debug_Execute-SP2016-Install.ps1 | debug_Execute-SP2016-Install.ps1 | # Author: Marina Krynina
try
{
$scriptPath = split-path -parent $MyInvocation.MyCommand.Definition
write-host "INFO: Start Execute-SP2016-PreReqs-Install"
# Agility Variables - set default
if ([string]::IsNullOrEmpty($VARIABLES))
{
write-host "INFO: VARIABLES file is not set... |
PowerShellCorpus/Github/sskoklev_Structure2/BSL/SharePoint2016/debug_Execute-SP2016-PSConfig.ps1 | debug_Execute-SP2016-PSConfig.ps1 | Param(
[string] $scriptPath,
[string] $ver = "2016"
)
# Script: SharePoint 2016 Install
# Author: Marina Krynina
#################################################################################################
try
{
Write-host "INFO: Starting script execution"
$scriptPath = split-path -pare... |
PowerShellCorpus/Github/sskoklev_Structure2/BSL/SharePoint2016/debug_Execute-SP2016-Config-ServiceApps.ps1 | debug_Execute-SP2016-Config-ServiceApps.ps1 | # Author: Marina Krynina
try
{
$scriptPath = split-path -parent $MyInvocation.MyCommand.Definition
write-host "INFO: Start Execute-SP2016-Config"
# Agility Variables - set default
if ([string]::IsNullOrEmpty($VARIABLES))
{
write-host "INFO: VARIABLES file is not set, setting... |
PowerShellCorpus/Github/sskoklev_Structure2/BSL/SharePoint2016/debug_ExecutUnitTestServer.ps1 | debug_ExecutUnitTestServer.ps1 | # Script: Server side testing - Common
# Author: Marina Krynina
#################################################################################################
# \USER_PROFILE
# \TestResults
# \Logs
try
{
$scriptPath = split-path -parent $MyInvocation.MyCommand.Definition
. .\Logging... |
PowerShellCorpus/Github/sskoklev_Structure2/BSL/SharePoint2016/debug_Execute-SP2016-PreReqs-Install.ps1 | debug_Execute-SP2016-PreReqs-Install.ps1 | # Author: Marina Krynina
try
{
$scriptPath = split-path -parent $MyInvocation.MyCommand.Definition
write-host "INFO: Start Execute-SP2016-PreReqs-Install"
# Agility Variables - set default
if ([string]::IsNullOrEmpty($VARIABLES))
{
write-host "INFO: VARIABLES file is not set... |
PowerShellCorpus/Github/sskoklev_Structure2/BSL/SharePoint2016/debug_Execute-SP2016-Update-Install.ps1 | debug_Execute-SP2016-Update-Install.ps1 | # Author: Marina Krynina
try
{
$scriptPath = split-path -parent $MyInvocation.MyCommand.Definition
write-host "INFO: Start Execute-SP2016-PreReqs-Install"
# Agility Variables - set default
if ([string]::IsNullOrEmpty($VARIABLES))
{
write-host "INFO: VARIABLES file is not set... |
PowerShellCorpus/Github/sskoklev_Structure2/BSL/SharePoint2016/admin_CreateDNSRecords.ps1 | admin_CreateDNSRecords.ps1 | # IMPORTANT: The script should be executed on DNS server
# Author: Marina Krynina
###########################################
# Create DNS records
###########################################
function CreateDNSRecords([string] $inputFile)
{
# Get the xml Data
$xml = [xml](Get-Content $inputFile)
$nodes... |
PowerShellCorpus/Github/sskoklev_Structure2/BSL/SharePoint2016/debug_Execute-SP2016-Config-MinRoles.ps1 | debug_Execute-SP2016-Config-MinRoles.ps1 | # Author: Marina Krynina
try
{
$scriptPath = split-path -parent $MyInvocation.MyCommand.Definition
write-host "INFO: Start Execute-SP2016-Config"
# Agility Variables - set default
if ([string]::IsNullOrEmpty($VARIABLES))
{
write-host "INFO: VARIABLES file is not set, setting... |
PowerShellCorpus/Github/sskoklev_Structure2/BSL/SharePoint2016/ConfigFiles/Variables-SP2016-Sandpit.ps1 | Variables-SP2016-Sandpit.ps1 | Param(
[string] $serverRole = ""
)
function Get-ServersList ([string] $shortNames)
{
$servers = $shortNames -split ","
$serversList = ""
if ($servers.Count -ne 0)
{
foreach ($server in $servers)
{
$server = $server.Trim()
$srv = ([string](Get-ServerNam... |
PowerShellCorpus/Github/sskoklev_Structure2/BSL/SharePoint2016/ConfigFiles/admin_Get-Password.ps1 | admin_Get-Password.ps1 | .\PlatformUtils.ps1
. .\GlobalRepository.ps1
#get-serviceAccountPassword "svc_sql"
$pwd =(get-globalvariable("ServiceAccount\svc_sql")).value
Write-Host $pwd |
PowerShellCorpus/Github/sskoklev_Structure2/BSL/SharePoint2016/Install/Execute-SP2016-Install.ps1 | Execute-SP2016-Install.ps1 | Param(
[string] $scriptPath
)
############################################################################################
# Author: Marina Krynina
# Desc: Functions to support installation of SharePoint 2016
#################################################################################################
... |
PowerShellCorpus/Github/sskoklev_Structure2/BSL/SharePoint2016/Install/SP2016-Update-Install.ps1 | SP2016-Update-Install.ps1 | Param(
[string] $scriptPath,
[string] $patchLocation,
[string] $patches
)
$global:srchctr = 1
$global:srch4srvctr = 1
$global:srch5srvctr = 1
# Author: Marina Krynina
# based on script provided by Russ Maxwell (russmax@microsoft.com)
############################################... |
PowerShellCorpus/Github/sskoklev_Structure2/BSL/SharePoint2016/Install/Execute-SP2016-PreReqs-Install.ps1 | Execute-SP2016-PreReqs-Install.ps1 | Param(
[string] $scriptPath,
[string] $ver = "2016"
)
############################################################################################
# Author: Marina Krynina
# Desc: Functions to support installation of SharePoint 2016 pre-requisites
########################################################... |
PowerShellCorpus/Github/sskoklev_Structure2/BSL/SharePoint2016/Install/SP2016-Install.ps1 | SP2016-Install.ps1 | Param(
[string] $scriptPath,
[string] $setupPath,
[string] $targetConfigFile,
[string] $VARIABLES
)
# Author: Marina Krynina
# credits to AutoSpInstaller
Function Get-SharePointInstall
{
# New(er), faster way courtesy of SPRambler (https://www.codeplex.com/site/users/view/SpRambler)
i... |
PowerShellCorpus/Github/sskoklev_Structure2/BSL/SharePoint2016/Install/Execute-SP2016-Update-Install.ps1 | Execute-SP2016-Update-Install.ps1 | Param(
[string] $scriptPath
)
#################################################################################################
# Author: Marina Krynina
# Desc: Functions to support installation of SharePoint updates
############################################################################################... |
PowerShellCorpus/Github/sskoklev_Structure2/BSL/SharePoint2016/Config/Configure-WebApps.ps1 | Configure-WebApps.ps1 | Param(
[string] $scriptPath,
[string] $ver = ""
)
############################################################################################
# Main
# Author: Marina Krynina
############################################################################################
Set-Location -Path $scriptPath
# Lo... |
PowerShellCorpus/Github/sskoklev_Structure2/BSL/SharePoint2016/Config/SP2016-PSConfigUI.ps1 | SP2016-PSConfigUI.ps1 | Param(
[string] $scriptPath
)
############################################################################################
# Main
# Author: Marina Krynina
############################################################################################
Set-Location -Path $scriptPath
# Load Common functions
. .\F... |
PowerShellCorpus/Github/sskoklev_Structure2/BSL/SharePoint2016/Config/SP2016-Config.ps1 | SP2016-Config.ps1 | Param(
[string] $scriptPath,
[string] $inputFile,
[string] $configOption,
[string] $VARIABLES
)
############################################################################################
# Main
# Author: Marina Krynina
###########################################################################... |
PowerShellCorpus/Github/sskoklev_Structure2/BSL/SharePoint2016/Config/Configure-UserProfiles.ps1 | Configure-UserProfiles.ps1 | Param(
[string] $scriptPath,
[string] $inputFile
)
############################################################################################
# Main
# Author: Marina Krynina
# Desc: Creates sUser Profile Service Application on the local server.
# Starts User profile Synch Service on a synch serv... |
PowerShellCorpus/Github/sskoklev_Structure2/BSL/SharePoint2016/Config/Configure-SP2016-Functions.ps1 | Configure-SP2016-Functions.ps1 | ###################################################################################################################
# MK: search for MK to see what was changed
# Replaced all Write-Host with log
# Removed code that is NOT related to Windows 2012 or 2012 R2
# eg: If (!($remoteQueryOS.Version.Contains("6.... |
PowerShellCorpus/Github/sskoklev_Structure2/BSL/SharePoint2016/Config/Execute-SP2016-Config.ps1 | Execute-SP2016-Config.ps1 | Param(
[string] $scriptPath,
[string] $configOption
)
function CheckForError
{
# check if error.txt exists. if yes, read it and throw exception
# This is done to get an error code from the scheduled task.
$errorFile = "$scriptPath\error.txt"
if (CheckFileExists($errorFile))
{
$... |
PowerShellCorpus/Github/sskoklev_Structure2/BSL/SharePoint2016/Config/Execute-SP2016-PSConfigUI.ps1 | Execute-SP2016-PSConfigUI.ps1 | Param(
[string] $scriptPath
)
# Script: Run PSCONFIGUI
# Author: Marina Krynina
Set-Location -Path $scriptPath
# Load Common functions
. .\PlatformUtils.ps1
. .\LaunchProcess.ps1
. .\LoggingV3.ps1 $true $scriptPath "Execute-SP2016-PSConfigUI.ps1"
try
{
if ([string]::IsNullOrEmpty($VARIABLES) -eq $t... |
PowerShellCorpus/Github/sskoklev_Structure2/BSL/SharePoint2016/TestFramework/UnitTest-Server-SharePoint.ps1 | UnitTest-Server-SharePoint.ps1 | Param(
[string] $scriptPath,
[string] $testFolder
)
############################################################################################
# Author: Marina Krynina
# Desc: Server side Unit testing - SharePoint
##########################################################################################... |
PowerShellCorpus/Github/sskoklev_Structure2/BSL/SharePoint2016/TestFramework/Get-SPSearchTopologyState.ps1 | Get-SPSearchTopologyState.ps1 | # Modified by Marina Krynina to include in the Unit Test results
## SharePoint Server: PowerShell Script To Check Details On A Farms Search Service Application Topology ##
<#
.SYNOPSIS
The purpose of this SharePoint 2013 script is to present the status of the Search
Service Application, with ... |
PowerShellCorpus/Github/sskoklev_Structure2/BSL/SQL2012SP2Ent/debug_ConfigureSharedDisk.ps1 | debug_ConfigureSharedDisk.ps1 | # get current script location
$scriptPath = split-path -parent $MyInvocation.MyCommand.Definition
$scriptName = $MyInvocation.MyCommand.Name
. .\LoggingV2.ps1 $true $scriptPath $scriptName
$XMLFILENAME = 'Install\Cluster\SharedDiskConfigSharedDB.xml'
$MWSREGISTRYXMLFILENAME = 'Install\MWSRegistry.xml'
$NUMBE... |
PowerShellCorpus/Github/sskoklev_Structure2/BSL/SQL2012SP2Ent/debug_ConfigureWindowsCluster.ps1 | debug_ConfigureWindowsCluster.ps1 | # get current script location
$scriptPath = split-path -parent $MyInvocation.MyCommand.Definition
$scriptName = $MyInvocation.MyCommand.Name
. .\LoggingV2.ps1 $true $scriptPath $scriptName
$SHAREDWINDOWSCLUSTERXMLFILENAME = 'Install\Cluster\WindowsClusterSharedDB.xml'
$MWSREGISTRYXMLFILENAME = 'Install\MWSRegistr... |
PowerShellCorpus/Github/sskoklev_Structure2/BSL/SQL2012SP2Ent/debug_Configure-SQL.ps1 | debug_Configure-SQL.ps1 | # get current script location
$scriptPath = split-path -parent $MyInvocation.MyCommand.Definition
$scriptName = $MyInvocation.MyCommand.Name
. .\LoggingV2.ps1 $true $scriptPath $scriptName
$SQLUSERSXMLFILE = 'config\SQLUsers_SharedDB.xml'
$SQLPORTSXMLFILE = 'config\SQLPorts_SharedDB.xml'
$GENERICSERVICEXMLFILE = '... |
PowerShellCorpus/Github/sskoklev_Structure2/BSL/SQL2012SP2Ent/debug_ApplySCCMRequirements.ps1 | debug_ApplySCCMRequirements.ps1 | # get current script location
$scriptPath = split-path -parent $MyInvocation.MyCommand.Definition
$scriptName = $MyInvocation.MyCommand.Name
. .\LoggingV2.ps1 $true $scriptPath $scriptName
# . .\Install\ApplySCCMRequirements.ps1 $scriptPath
. .\ExecuteApplySCCMRequirements.ps1 # $scriptPath
|
PowerShellCorpus/Github/sskoklev_Structure2/BSL/SQL2012SP2Ent/debug_CreateClusterADObjects.ps1 | debug_CreateClusterADObjects.ps1 | # get current script location
$scriptPath = split-path -parent $MyInvocation.MyCommand.Definition
$scriptName = $MyInvocation.MyCommand.Name
. .\LoggingV2.ps1 $true $scriptPath $scriptName
$CLUSTERNAMES = "CLN-996;CLN-997;CLN-998;CLN-999;CLN-999"
$CLUSTERNAMES = "CLN-996"
. .\ExecuteCreateClusterADObjects.ps1 ... |
PowerShellCorpus/Github/sskoklev_Structure2/BSL/SQL2012SP2Ent/debug_Install-SQL2012.ps1 | debug_Install-SQL2012.ps1 | # get current script location
$scriptPath = split-path -parent $MyInvocation.MyCommand.Definition
$scriptName = $MyInvocation.MyCommand.Name
. .\LoggingV2.ps1 $true $scriptPath $scriptName
$USER = 'agilitydeploy'
$SQLINSTALLCONFIG_XML = 'install\SQL2012SP2Ent_SHARED_Secondary.xml'
$MWSREGISTRYXMLFILENAME = 'instal... |
PowerShellCorpus/Github/sskoklev_Structure2/BSL/SQL2012SP2Ent/debug_Set-VolumeLabel.ps1 | debug_Set-VolumeLabel.ps1 | # get current script location
$scriptPath = split-path -parent $MyInvocation.MyCommand.Definition
$scriptName = $MyInvocation.MyCommand.Name
. .\Logging.ps1 $true $scriptPath $scriptName
$DISKLABELS = "E;Application,F;PageFile,"
. .\Set-VolumeLabel.ps1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.