full_path
stringlengths
31
232
filename
stringlengths
4
167
content
stringlengths
0
48.3M
PowerShellCorpus/Github/sskoklev_Structure2/BSL/Common/Set-VolumeLabel.ps1
Set-VolumeLabel.ps1
# Set-VolumeLabel.ps1 ######################################################################### # Author: Stiven Skoklevski, # Rename the disk label. # Eg of parameter: # $DISKLABELS = "E;Application,F;PageFile," # The above example will set Drive E label to Appplication and Drive F label to Pagefile ######...
PowerShellCorpus/Github/sskoklev_Structure2/BSL/Common/Execute-InstallSoftwarePatches.ps1
Execute-InstallSoftwarePatches.ps1
Param( [string] $scriptPath ) # Author: Stiven Skoklevski function Execute-InstallSoftwarePatches([xml] $xmlinput) { $nodes = $xmlinput.SelectNodes("//InstallSet/Install") if (([string]::IsNullOrEmpty($nodes))) { log "INFO: No patches to install in: '$inputFile'" return 0 ...
PowerShellCorpus/Github/sskoklev_Structure2/BSL/Common/Logging.ps1
Logging.ps1
######################################################################### # Author: Marina Krynina, CSC # Updates: # 2014-11-12 Added header block # Added echo in the log function # 2015-01-22 Replaced "echo" with Write-Host as "echo" pollutes return codes ######################...
PowerShellCorpus/Github/sskoklev_Structure2/BSL/Common/debug_ExtractAppFiles.ps1
debug_ExtractAppFiles.ps1
# MWS2R2 - Extract App Files ############################################################### # Author: Marina Krynina # Desc: Extracts application files (ISO, ZIP) ############################################################################################ # Mandatory heading # Load Common functions . .\Globa...
PowerShellCorpus/Github/sskoklev_Structure2/BSL/Common/Execute-InstallSoftwarePreRequisites.ps1
Execute-InstallSoftwarePreRequisites.ps1
Param( [string] $scriptPath ) # Author: Marina Krynina function Execute-InstallSoftwarePrereqs([xml] $xmlinput) { $nodes = $xmlinput.SelectNodes("//InstallSet/Install") if (([string]::IsNullOrEmpty($nodes))) { log "INFO: No prerequisites to install configured in: '$inputFile'" ...
PowerShellCorpus/Github/sskoklev_Structure2/BSL/Common/New-RandomPassword.ps1
New-RandomPassword.ps1
function New-RandomPassword { <# .Synopsis Generates one or more complex passwords designed to fulfill the requirements for Active Directory .DESCRIPTION Generates one or more complex passwords designed to fulfill the requirements for Active Directory .EXAMPLE New-RandomPassw...
PowerShellCorpus/Github/sskoklev_Structure2/BSL/Common/Install-SoftwarePatches.ps1
Install-SoftwarePatches.ps1
Param( [string] $scriptPath, [string] $installFile, [string] $arguments ) # Author: Stiven Skoklevski ############################################################################################ # Main ############################################################################################ # Load ...
PowerShellCorpus/Github/sskoklev_Structure2/BSL/Common/Set-PageFile.ps1
Set-PageFile.ps1
# Set-PageFile.ps1 ######################################################################### # Author: Stiven Skoklevski, # Remove the existing PageFile and replace with new PageFile as per parameters # Reboot is not required if moving to new drive for first time. # If updating existing PageFile configuration than...
PowerShellCorpus/Github/sskoklev_Structure2/BSL/Common/Set-EnvironmentVariables.ps1
Set-EnvironmentVariables.ps1
# Set-EnvironmentVariables.ps1 ######################################################################### # Author: Marina Krynina, # Set environment variables. # Eg of parameter: # $ENVVARIABLES = "AppDrive~E:|LogDrive~L:|" # The above example will create AppDrive machine environment variable # with va...
PowerShellCorpus/Github/sskoklev_Structure2/BSL/Common/debug_ExecuteSoftwarePrereqs.ps1
debug_ExecuteSoftwarePrereqs.ps1
# Author: Marina Krynina ############################################################################################ try { write-host "INFO: Start Execute-CommonBase" # get current script location $scriptPath = split-path -parent $MyInvocation.MyCommand.Definition . .\Execute-InstallSof...
PowerShellCorpus/Github/sskoklev_Structure2/BSL/Common/Get-IniContent.ps1
Get-IniContent.ps1
Function Get-IniContent { <# .Synopsis Gets the content of an INI file .Description Gets the content of an INI file and returns it as a hashtable .Notes Author : Oliver Lipkau <oliver@lipkau.net> Blog : http://oliver.lipkau....
PowerShellCorpus/Github/sskoklev_Structure2/BSL/Common/debug_GetAppFiles.ps1
debug_GetAppFiles.ps1
# MWS2 - Get App Files ############################################################## # Author: Marina Krynina # Desc: Deploys installation files onto the target server ############################################################################################ # Load Common functions . .\GlobalRepository.ps1 ...
PowerShellCorpus/Github/sskoklev_Structure2/BSL/Common/SSLManagementUtility.ps1
SSLManagementUtility.ps1
# =================================================================================== # Author: Marina Krynina, CSC # Func: GenerateSelfSignedCertificate # Desc: Generates self-signed certificate # =================================================================================== Function GenerateSelfSignedCertif...
PowerShellCorpus/Github/sskoklev_Structure2/BSL/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/BSL/Common/ExecuteWindowsUsersV2.ps1
ExecuteWindowsUsersV2.ps1
################################################################################################# # Author: Stiven Skoklevski/Denis Gittard # Desc: Functions to support preparation of Windows Users ################################################################################################# . .\FilesUtility.ps1...
PowerShellCorpus/Github/sskoklev_Structure2/BSL/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/BSL/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/BSL/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/BSL/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/BSL/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/BSL/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/BSL/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/BSL/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/BSL/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/BSL/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/BSL/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/BSL/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/BSL/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/BSL/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/BSL/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/BSL/OfficeWebApps2013/debug_ConfigureOWA2013.ps1
debug_ConfigureOWA2013.ps1
# MWS2R2 - OWA 2013 Configure ################################################################## # Author: Marina Krynina ################################################################################################# # \USER_PROFILE # \Install # \Config # \InstallMedia # \OWA2013S...
PowerShellCorpus/Github/sskoklev_Structure2/BSL/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/BSL/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/BSL/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/BSL/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/BSL/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/BSL/OfficeWebApps2013/ManualPatchingScripts/OfficeWebApps_StopServices.ps1
OfficeWebApps_StopServices.ps1
#Stop Services Set-Service -Name "IISADMIN" -startuptype Disabled iisreset -stop -noforce
PowerShellCorpus/Github/sskoklev_Structure2/BSL/OfficeWebApps2013/ManualPatchingScripts/OfficeWebApps_JoinFarm.ps1
OfficeWebApps_JoinFarm.ps1
Import-Module OfficeWebApps New-OfficeWebAppsMachine –MachineToJoin DEVAPPSYD005W.devraus01.cscmws.com
PowerShellCorpus/Github/sskoklev_Structure2/BSL/OfficeWebApps2013/ManualPatchingScripts/OfficeWebApps_RemoveOfficeWebAppsMachine.ps1
OfficeWebApps_RemoveOfficeWebAppsMachine.ps1
Import-Module OfficeWebApps Remove-OfficeWebAppsMachine
PowerShellCorpus/Github/sskoklev_Structure2/BSL/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/BSL/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/BSL/OfficeWebApps2013/ManualPatchingScripts/OfficeWebApps_CheckFarm.ps1
OfficeWebApps_CheckFarm.ps1
Import-Module OfficeWebApps (Get-OfficeWebAppsFarm).Machines
PowerShellCorpus/Github/sskoklev_Structure2/BSL/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/BSL/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/BSL/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/BSL/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/BSL/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/BSL/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/BSL/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/BSL/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/Production/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/Production/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/Production/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/Production/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/Production/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/Production/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/Production/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/Production/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/Production/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/Production/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/Production/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/Production/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/Production/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/Production/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/Production/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/Production/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/Production/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/Production/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/Production/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/Production/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/Production/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/Production/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/Production/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/Production/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/Production/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/Production/OfficeOnline/Install/Execute-OfcOnline-Install.ps1
Execute-OfcOnline-Install.ps1
Param( [string] $scriptPath ) ############################################################################################ # Author: Marina Krynina ################################################################################################# #################################################################...
PowerShellCorpus/Github/sskoklev_Structure2/Production/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/Production/OfficeOnline/Config/OfcOnline-Config.ps1
OfcOnline-Config.ps1
Param( [string] $scriptPath, [string] $inputFile ) ################################################################################################# # Author: Marina Krynina # Desc: Configure ConfigureOfficeOnline ##########################################################################################...
PowerShellCorpus/Github/sskoklev_Structure2/Production/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/Production/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/Production/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/Production/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/Production/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/Production/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/Production/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/Production/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/Production/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/Production/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/Production/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/Production/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/Production/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/Production/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/Production/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/Production/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/Production/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/Production/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/Production/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/Production/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/Production/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/Production/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...