full_path stringlengths 31 232 | filename stringlengths 4 167 | content stringlengths 0 48.3M |
|---|---|---|
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Source/Server/PackageManagement/Install-NugetPackageProvider.ps1 | Install-NugetPackageProvider.ps1 | <#
# Copyright (c) 2014 All Rights Reserved by the SDL Group.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Source/Server/ISHServer/Copy-ISHCD.ps1 | Copy-ISHCD.ps1 | <#
# Copyright (c) 2014 All Rights Reserved by the SDL Group.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Source/Server/ISHServer/Set-ISHAntennaHouseLicense.ps1 | Set-ISHAntennaHouseLicense.ps1 | <#
# Copyright (c) 2014 All Rights Reserved by the SDL Group.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Source/Server/ISHServer/Install-ISHServerPrerequisites.ps1 | Install-ISHServerPrerequisites.ps1 | <#
# Copyright (c) 2014 All Rights Reserved by the SDL Group.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Source/Server/ISHServer/Upload-ISHServerPrerequisites.ps1 | Upload-ISHServerPrerequisites.ps1 | <#
# Copyright (c) 2014 All Rights Reserved by the SDL Group.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Source/Server/ISHServer/Initialize-ISHServerOSUserRegion.ps1 | Initialize-ISHServerOSUserRegion.ps1 | <#
# Copyright (c) 2014 All Rights Reserved by the SDL Group.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Source/Server/ISHServer/Get-ISHServerPrerequisites.ps1 | Get-ISHServerPrerequisites.ps1 | <#
# Copyright (c) 2014 All Rights Reserved by the SDL Group.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Source/Server/ISHServer/Test-SupportedServer.ps1 | Test-SupportedServer.ps1 | <#
# Copyright (c) 2014 All Rights Reserved by the SDL Group.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Source/Server/ISHServer/Initialize-ISHServerOSUser.ps1 | Initialize-ISHServerOSUser.ps1 | <#
# Copyright (c) 2014 All Rights Reserved by the SDL Group.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Source/Server/WinRM/Enable-WSManCredSSP.ps1 | Enable-WSManCredSSP.ps1 | <#
# Copyright (c) 2014 All Rights Reserved by the SDL Group.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Source/Server/WinRM/Install-WinRMPrerequisites.ps1 | Install-WinRMPrerequisites.ps1 | <#
# Copyright (c) 2014 All Rights Reserved by the SDL Group.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Source/Server/Helpers/Restart-Server.ps1 | Restart-Server.ps1 | <#
# Copyright (c) 2014 All Rights Reserved by the SDL Group.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Source/Server/Helpers/Test-Administrator.ps1 | Test-Administrator.ps1 | <#
# Copyright (c) 2014 All Rights Reserved by the SDL Group.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Source/Server/Helpers/Kill-RemoteSessions.ps1 | Kill-RemoteSessions.ps1 | <#
# Copyright (c) 2014 All Rights Reserved by the SDL Group.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Source/Server/Helpers/Install-ProcessExplorer.ps1 | Install-ProcessExplorer.ps1 | <#
# Copyright (c) 2014 All Rights Reserved by the SDL Group.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Source/Server/Helpers/Test-Server.ps1 | Test-Server.ps1 | <#
# Copyright (c) 2014 All Rights Reserved by the SDL Group.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Source/Docker/ISH.HealthCheck.ps1 | ISH.HealthCheck.ps1 | param(
[Parameter(Mandatory=$false)]
[switch]$IncludeMSSQL=$false
)
if ($PSBoundParameters['Debug']) {
$DebugPreference = 'Continue'
}
$serviceNames=@(
"W3SVC"
)
if($IncludeMSSQL)
{
$serviceNames+="MSSQL`$SQLEXPRESS"
}
$serviceNames|ForEach-Object {
$service=Get-Se... |
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Source/Docker/ISH.Cmd.ps1 | ISH.Cmd.ps1 | param(
[Parameter(Mandatory=$true,ParameterSet="External Database")]
[Parameter(Mandatory=$true,ParameterSet="Internal Database")]
[string]$OsUserName,
[Parameter(Mandatory=$true,ParameterSet="External Database")]
[Parameter(Mandatory=$true,ParameterSet="Internal Database")]
[string]$OsUse... |
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Source/Packer/AMI/Scripts/Set-EC2Config.ps1 | Set-EC2Config.ps1 | function Format-XML ([xml]$xml, $indent=2)
{
$StringWriter = New-Object System.IO.StringWriter
$XmlWriter = New-Object System.XMl.XmlTextWriter $StringWriter
$xmlWriter.Formatting = "indented"
$xmlWriter.Indentation = $Indent
$xml.WriteContentTo($XmlWriter)
$XmlWriter.Flush()
... |
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Source/Packer/AMI/Scripts/Set-EC2Launch.ps1 | Set-EC2Launch.ps1 | $ec2LaunchPath = Join-Path (Get-Item Env:\ProgramData).Value "Amazon\EC2-Windows\Launch\Config"
$ec2LaunchConfigFile = Join-Path $ec2LaunchPath "LaunchConfig.json"
$ec2EventLogConfigFile = Join-Path $ec2LaunchPath "EventLogConfig.json"
$ec2DriveLetterMappingConfigFile = Join-Path $ec2LaunchPath "DriveLetterMapping... |
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Source/Packer/Vagrant/scripts/win-updates.ps1 | win-updates.ps1 | param($global:RestartRequired=0,
$global:MoreUpdates=0,
$global:MaxCycles=5,
$MaxUpdatesPerCycle=500,
$BeginWithRestart=0)
$Logfile = "C:\Windows\Temp\win-updates.log"
function LogWrite {
Param ([string]$logstring)
$now = Get-Date -format s
Add-Content $Logfile -val... |
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Source/Packer/Vagrant/scripts/disable-screensaver.ps1 | disable-screensaver.ps1 | Write-Host "Disabling Screensaver"
Set-ItemProperty "HKCU:\Control Panel\Desktop" -Name ScreenSaveActive -Value 0 -Type DWord
& powercfg -x -monitor-timeout-ac 0
& powercfg -x -monitor-timeout-dc 0
|
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Source/Packer/Vagrant/scripts/disable-winrm.ps1 | disable-winrm.ps1 | netsh advfirewall firewall set rule name="Windows Remote Management (HTTP-In)" new enable=yes action=block
netsh advfirewall firewall set rule group="Windows Remote Management" new enable=yes
$winrmService = Get-Service -Name WinRM
if ($winrmService.Status -eq "Running"){
Disable-PSRemoting -Force
}
Stop-Serv... |
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Source/Packer/Vagrant/scripts/debloat-windows.ps1 | debloat-windows.ps1 | if ($env:PACKER_BUILDER_TYPE -And $($env:PACKER_BUILDER_TYPE).startsWith("hyperv")) {
Write-Host Skip debloat steps in Hyper-V build.
} else {
Write-Host Downloading debloat zip
$url="https://github.com/StefanScherer/Debloat-Windows-10/archive/master.zip"
(New-Object System.Net.WebClient).DownloadFile($url... |
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Source/Packer/Vagrant/scripts/enable-winrm.ps1 | enable-winrm.ps1 | Enable-PSRemoting -Force
winrm quickconfig -q
winrm quickconfig -transport:http
winrm set winrm/config '@{MaxTimeoutms="1800000"}'
winrm set winrm/config/winrs '@{MaxMemoryPerShellMB="800"}'
winrm set winrm/config/service '@{AllowUnencrypted="true"}'
winrm set winrm/config/service/auth '@{Basic="true"}'
winrm se... |
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Examples/Copy-ISHCD.ps1 | Copy-ISHCD.ps1 | <#
# Copyright (c) 2014 All Rights Reserved by the SDL Group.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Examples/Install-Module.ps1 | Install-Module.ps1 | <#
# Copyright (c) 2014 All Rights Reserved by the SDL Group.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Examples/Install-ISH.ps1 | Install-ISH.ps1 | <#
# Copyright (c) 2014 All Rights Reserved by the SDL Group.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Examples/Clean-ISH.ps1 | Clean-ISH.ps1 | <#
# Copyright (c) 2014 All Rights Reserved by the SDL Group.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Examples/Invoke-ISHDeployScript.ps1 | Invoke-ISHDeployScript.ps1 | <#
# Copyright (c) 2014 All Rights Reserved by the SDL Group.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Examples/Initialize-PowerShellGet.ps1 | Initialize-PowerShellGet.ps1 | <#
# Copyright (c) 2014 All Rights Reserved by the SDL Group.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Examples/Initialize-ISHServer.ps1 | Initialize-ISHServer.ps1 | <#
# Copyright (c) 2014 All Rights Reserved by the SDL Group.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Examples/Load-ISHBootstrapperContext.ps1 | Load-ISHBootstrapperContext.ps1 | <#
# Copyright (c) 2014 All Rights Reserved by the SDL Group.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Examples/UnInstall-ISH.ps1 | UnInstall-ISH.ps1 | <#
# Copyright (c) 2014 All Rights Reserved by the SDL Group.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Examples/Invoke-Pester.ps1 | Invoke-Pester.ps1 | <#
# Copyright (c) 2014 All Rights Reserved by the SDL Group.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Examples/Initialize-WinRM.ps1 | Initialize-WinRM.ps1 | <#
# Copyright (c) 2014 All Rights Reserved by the SDL Group.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Examples/ISHDeploy/Set-ADFSIntegrationISH.ps1 | Set-ADFSIntegrationISH.ps1 | <#
# Copyright (c) 2014 All Rights Reserved by the SDL Group.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Examples/ISHDeploy/Set-ISHCMComponents.ps1 | Set-ISHCMComponents.ps1 | <#
# Copyright (c) 2014 All Rights Reserved by the SDL Group.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Examples/ISHDeploy/Set-ISHCMComponents.ImplicitRemoting.ps1 | Set-ISHCMComponents.ImplicitRemoting.ps1 | <#
# Copyright (c) 2014 All Rights Reserved by the SDL Group.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Examples/ISHDeploy/Undo-ISHDeployment.ImplicitRemoting.ps1 | Undo-ISHDeployment.ImplicitRemoting.ps1 | <#
# Copyright (c) 2014 All Rights Reserved by the SDL Group.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Examples/ISHDeploy/Set-ISHIntegrationADFS.ImplicitRemoting.ps1 | Set-ISHIntegrationADFS.ImplicitRemoting.ps1 | <#
# Copyright (c) 2014 All Rights Reserved by the SDL Group.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Examples/ISHDeploy/Set-ISHSTSRelyingParty.ps1 | Set-ISHSTSRelyingParty.ps1 | <#
# Copyright (c) 2014 All Rights Reserved by the SDL Group.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Examples/ISHDeploy/Set-ISHSTSRelyingParty.ImplicitRemoting.ps1 | Set-ISHSTSRelyingParty.ImplicitRemoting.ps1 | <#
# Copyright (c) 2014 All Rights Reserved by the SDL Group.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Examples/ISHDeploy/Set-InternalAuthentication.ImplicitRemoting.ps1 | Set-InternalAuthentication.ImplicitRemoting.ps1 | <#
# Copyright (c) 2014 All Rights Reserved by the SDL Group.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Examples/ISHDeploy/Set-ISHIntegrationADFS.ps1 | Set-ISHIntegrationADFS.ps1 | <#
# Copyright (c) 2014 All Rights Reserved by the SDL Group.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Examples/ISHDeploy/Set-InternalAuthentication.ps1 | Set-InternalAuthentication.ps1 | <#
# Copyright (c) 2014 All Rights Reserved by the SDL Group.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Examples/ISHDeploy/Set-ISHSTSWindows.ImplicitRemoting.ps1 | Set-ISHSTSWindows.ImplicitRemoting.ps1 | <#
# Copyright (c) 2014 All Rights Reserved by the SDL Group.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Examples/ISHDeploy/Set-ISHCMMenuAndButton.ps1 | Set-ISHCMMenuAndButton.ps1 | <#
# Copyright (c) 2014 All Rights Reserved by the SDL Group.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Examples/ISHDeploy/Set-ADFSIntegrationISH.ImplicitRemoting.ps1 | Set-ADFSIntegrationISH.ImplicitRemoting.ps1 | <#
# Copyright (c) 2014 All Rights Reserved by the SDL Group.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Examples/ISHDeploy/Get-Status.ps1 | Get-Status.ps1 | <#
# Copyright (c) 2014 All Rights Reserved by the SDL Group.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Examples/ISHDeploy/Set-ISHCMMenuAndButton.ImplicitRemoting.ps1 | Set-ISHCMMenuAndButton.ImplicitRemoting.ps1 | <#
# Copyright (c) 2014 All Rights Reserved by the SDL Group.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Examples/ISHDeploy/Get-Status.ImplicitRemoting.ps1 | Get-Status.ImplicitRemoting.ps1 | <#
# Copyright (c) 2014 All Rights Reserved by the SDL Group.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Examples/ISHDeploy/Set-ISHSTSWindows.ps1 | Set-ISHSTSWindows.ps1 | <#
# Copyright (c) 2014 All Rights Reserved by the SDL Group.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Examples/ISHDeploy/Undo-ISHDeployment.ps1 | Undo-ISHDeployment.ps1 | <#
# Copyright (c) 2014 All Rights Reserved by the SDL Group.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Examples/ISHDeploy/Cmdlets/Write-Separator.ps1 | Write-Separator.ps1 | <#
# Copyright (c) 2014 All Rights Reserved by the SDL Group.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Examples/Cmdlets/Get-ISHBootstrapperContextSource.ps1 | Get-ISHBootstrapperContextSource.ps1 | <#
# Copyright (c) 2014 All Rights Reserved by the SDL Group.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Examples/Cmdlets/Get-ISHBootstrapperContextValue.ps1 | Get-ISHBootstrapperContextValue.ps1 | <#
# Copyright (c) 2014 All Rights Reserved by the SDL Group.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Automation/Test-All.ps1 | Test-All.ps1 | <#
# Copyright (c) 2014 All Rights Reserved by the SDL Group.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Automation/Modules/SDLDevTools/0.3/Test-SDLOpenSourceHeader.ps1 | Test-SDLOpenSourceHeader.ps1 | <#
# Copyright (c) 2014 All Rights Reserved by the SDL Group.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Automation/Modules/SDLDevTools/0.3/Get-SDLOpenSourceHeader.ps1 | Get-SDLOpenSourceHeader.ps1 | <#
# Copyright (c) 2014 All Rights Reserved by the SDL Group.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Automation/Modules/SDLDevTools/0.3/Set-SDLOpenSourceHeader.ps1 | Set-SDLOpenSourceHeader.ps1 | <#
# Copyright (c) 2014 All Rights Reserved by the SDL Group.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Automation/Modules/SDLDevTools/0.3/Get-SDLOpenSourceHeaderFormat.ps1 | Get-SDLOpenSourceHeaderFormat.ps1 | <#
# Copyright (c) 2014 All Rights Reserved by the SDL Group.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Automation/Tests/Test-OpenSourceHeaders.Tests.ps1 | Test-OpenSourceHeaders.Tests.ps1 | <#
# Copyright (c) 2014 All Rights Reserved by the SDL Group.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
PowerShellCorpus/Github/superyyrrzz_InteractiveGuides/.openpublishing.build.ps1 | .openpublishing.build.ps1 | param(
[string]$buildCorePowershellUrl = "https://opbuildstoragesandbox2.blob.core.windows.net/opps1container/.openpublishing.buildcore.ps1",
[string]$parameters
)
# Main
$errorActionPreference = 'Stop'
# Step-1: Download buildcore script to local
echo "download build core script to local with source u... |
PowerShellCorpus/Github/OPSTest_E2E_Provision_1484896908660/.openpublishing.build.ps1 | .openpublishing.build.ps1 | param(
[string]$buildCorePowershellUrl = "https://opbuildstoragesandbox2.blob.core.windows.net/opps1container/.openpublishing.buildcore.ps1",
[string]$parameters
)
# Main
$errorActionPreference = 'Stop'
# Step-1: Download buildcore script to local
echo "download build core script to local with source u... |
PowerShellCorpus/Github/kimizhu_azuretest0812/.openpublishing.build.ps1 | .openpublishing.build.ps1 | param(
[string]$buildCorePowershellUrl = "https://opbuildstoragesandbox2.blob.core.windows.net/opps1container/.openpublishing.buildcore.ps1",
[string]$parameters
)
# Main
$errorActionPreference = 'Stop'
# Step-1: Download buildcore script to local
echo "download build core script to local with source u... |
PowerShellCorpus/Github/liquidwarelabs_FlexApp/Win7-FPC-optimization-script/FPC Win7.ps1 | FPC Win7.ps1 | <#
.DISCLAIMER
This script is provided "AS IS" with no warranties, confers no rights, and is not supported by VMware.
.SYNOPSIS
Windows 7 (Enterprise) VDI ProfileUnity FPC Optimizations
.DESCRIPTION
Made for ProfileUnity FPC Optimizations
.NOTES
NAME: FPC WIN7.ps1
... |
PowerShellCorpus/Github/cunninghamp_Collect-ServerInfo/Collect-ServerInfo.ps1 | Collect-ServerInfo.ps1 | <#
.SYNOPSIS
Collect-ServerInfo.ps1 - PowerShell script to collect information about Windows servers
.DESCRIPTION
This PowerShell script runs a series of WMI and other queries to collect information
about Windows servers.
.OUTPUTS
Each server's results are output to HTML.
.PARAMETER -Verbose
See more de... |
PowerShellCorpus/Github/wsharp07_ps-scripts/restartWifiAdapter.ps1 | restartWifiAdapter.ps1 | #requires -Version 3.0
<#
.SYNOPSIS
Tests to see if google.com responds to ping, if not the Wi-Fi adapter is restarted
.PARAMETER WifiAdapterName
Optional string input of the name of the Wi-Fi adapter. (Default: "Wi-Fi")
.PARAMETER LogPath
Optional path where you would like logs to be stored. (Def... |
PowerShellCorpus/Github/carakanz_PostPhoto/AzurePostPhoto/packages/Microsoft.ApplicationInsights.WindowsServer.2.2.0/Tools/install.ps1 | install.ps1 | param($installPath, $toolsPath, $package, $project)
if ([System.IO.File]::Exists($project.FullName))
{
function MarkItemASCopyToOutput($item)
{
Try
{
#mark it to copy if newer
$item.Properties.Item("CopyToOutputDirectory").Value = 2
}
Catch
{
write-host $_.Exception.ToString()
}... |
PowerShellCorpus/Github/carakanz_PostPhoto/AzurePostPhoto/packages/Microsoft.Web.Infrastructure.1.0.0.0/tools/Install.ps1 | Install.ps1 | param($installPath, $toolsPath, $package, $project)
if ($project.Type -eq 'Web Site') {
Import-Module (Join-Path $toolsPath VS.psd1)
$srcFiles = Join-Path $installPath "lib\net40\*.dll"
$projectRoot = Get-ProjectRoot $project
if (!$projectRoot) {
return;
}
$destDirec... |
PowerShellCorpus/Github/carakanz_PostPhoto/AzurePostPhoto/packages/Microsoft.Web.Infrastructure.1.0.0.0/tools/Uninstall.ps1 | Uninstall.ps1 | param($installPath, $toolsPath, $package, $project)
if ($project.Type -eq 'Web Site') {
Import-Module (Join-Path $toolsPath VS.psd1)
$projectRoot = Get-ProjectRoot $project
if (!$projectRoot) {
return;
}
$binDirectory = Join-Path $projectRoot "bin"
$srcDirectory = Join-Path $... |
PowerShellCorpus/Github/carakanz_PostPhoto/AzurePostPhoto/packages/Newtonsoft.Json.6.0.8/tools/install.ps1 | install.ps1 | param($installPath, $toolsPath, $package, $project)
# open json.net splash page on package install
# don't open if json.net is installed as a dependency
try
{
$url = "http://james.newtonking.com/json/install?version=" + $package.Version
$dte2 = Get-Interface $dte ([EnvDTE80.DTE2])
if ($dte2.ActiveWin... |
PowerShellCorpus/Github/carakanz_PostPhoto/AzurePostPhoto/packages/Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.3/tools/uninstall.ps1 | uninstall.ps1 | param($installPath, $toolsPath, $package, $project)
$roslynSubFolder = 'roslyn'
if ($project -eq $null) {
$project = Get-Project
}
$projectRoot = $project.Properties.Item('FullPath').Value
$binDirectory = Join-Path $projectRoot 'bin'
$targetDirectory = Join-Path $binDirectory $roslynSubFolder
if (Te... |
PowerShellCorpus/Github/carakanz_PostPhoto/AzurePostPhoto/packages/Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.3/tools/install.ps1 | install.ps1 | param($installPath, $toolsPath, $package, $project)
$compilerPackageName = 'Microsoft.Net.Compilers'
$roslynSubFolder = 'roslyn'
if ($project -eq $null) {
$project = Get-Project
}
$libDirectory = Join-Path $installPath 'lib\net45'
$projectRoot = $project.Properties.Item('FullPath').Value
$binDirectory... |
PowerShellCorpus/Github/epidemicz_newdotfile/newdotfile/script/newdotfile.ps1 | newdotfile.ps1 | # newdotfile.ps1
# A simple utility to create dotfiles on Windows.
# author: Tim Zenner
# © Tim Zenner
function Create-Dot-File ($path)
{
$result = $False
# check to see if file exists already
$exists = Test-Path $path
if ($exists -eq $True)
{
$overwrite = $False
do
{
$input = Promp... |
PowerShellCorpus/Github/epidemicz_newdotfile/contextmenu/script/install-new-dot-file.ps1 | install-new-dot-file.ps1 | # install-new-dot-file.ps1
# Installs or removes the "New .dotfile here" item in explorer's context menu
# author: Tim Zenner
# © Tim Zenner
Param ([Boolean]$remove = $false)
if ($remove -eq $True)
{
Write-Host "Info" -NoNewline -ForegroundColor Cyan
Write-Host "::" -NoNewline
Write-Host "Attem... |
PowerShellCorpus/Github/alexfalkowski_PExtend/specs/Run-Specs.ps1 | Run-Specs.ps1 | Import-Module Pester
Invoke-Pester
Remove-Module Pester |
PowerShellCorpus/Github/alexfalkowski_PExtend/specs/PExtend.Tests.ps1 | PExtend.Tests.ps1 | Import-Module ../src/PExtend.psm1
Describe "PExtend" {
it "should extend simple object" {
$test1 = @{
test = "test1"
}
$test2 = @{
test = "test2"
}
$expected = @{
test = "test2"
}
$actual = Join-Hashtable... |
PowerShellCorpus/Github/PalmBeachPost_courtssearch/script/DailyRunner.ps1 | DailyRunner.ps1 | #Download today's files
.\DownloadCSV.ps1
#run ruby script to parse and search
ruby textArchiveScanner.rb
#send the result in email
#$addresses ="ksukumar@pbpost.com" # this is for debugging
$addresses ="ksukumar@pbpost.com,jengelhardt@pbpost.com, JMusgrave@pbpost.com, dduret@pbpost.com, jwhigham@pbpost.com... |
PowerShellCorpus/Github/PalmBeachPost_courtssearch/script/CreateEmailText.ps1 | CreateEmailText.ps1 | param(
[Parameter(Mandatory=$true)]
$datafile,
$n = 10, #not used anymore
$outfile
)
$defendants = import-csv $datafile
$emailTemplate = get-content "./templates/email.txt"
$emailTemplate = $emailTemplate.replace("[NUMBER]",$n)
$rowTemplate = get-content "./templates/row.txt"
#MURDE... |
PowerShellCorpus/Github/PalmBeachPost_courtssearch/script/old/downloadcsv.ps1 | downloadcsv.ps1 | param(
$path ="..\datafiles\",
$folder ="courtscsv"
)
$olFolderInbox = 6
$objOutlook = new-object -com outlook.application;
$ns = $objOutlook.GetNameSpace("MAPI");
$inbox = $ns.GetDefaultFolder($olFolderInbox)
$targetfolder = $inbox.Folders | where-object { $_.name -eq $folder }
$message = $... |
PowerShellCorpus/Github/PalmBeachPost_courtssearch/script/old/sendmail.ps1 | sendmail.ps1 | param(
$sendTo = "ref@pbpost.com",
$attachment ="..\datafiles\readme.md",
$subject = "Automated by sendMail",
$bodytext =" "
)
$outlook = new-object -com outlook.application;
$mail = $outlook.CreateItem(0)
$mail.subject =$subject
$mail.HTMLBody =$bodyText
$attachment =resolve-path $... |
PowerShellCorpus/Github/DennisEzell_DotNET_practice/Dashboard/packages/jQuery.1.10.2/Tools/uninstall.ps1 | uninstall.ps1 | param($installPath, $toolsPath, $package, $project)
. (Join-Path $toolsPath common.ps1)
# Determine the file paths
$projectIntelliSenseFilePath = Join-Path $projectScriptsFolderPath $intelliSenseFileName
$origIntelliSenseFilePath = Join-Path $toolsPath $intelliSenseFileName
if (Test-Path $projectIntelliSense... |
PowerShellCorpus/Github/DennisEzell_DotNET_practice/Dashboard/packages/jQuery.1.10.2/Tools/install.ps1 | install.ps1 | param($installPath, $toolsPath, $package, $project)
. (Join-Path $toolsPath common.ps1)
# VS 11 and above supports the new intellisense JS files
$vsVersion = [System.Version]::Parse($dte.Version)
$supportsJsIntelliSenseFile = $vsVersion.Major -ge 11
if (-not $supportsJsIntelliSenseFile) {
$displayVersio... |
PowerShellCorpus/Github/DennisEzell_DotNET_practice/Dashboard/packages/jQuery.1.10.2/Tools/common.ps1 | common.ps1 | function Get-Checksum($file) {
$cryptoProvider = New-Object "System.Security.Cryptography.MD5CryptoServiceProvider"
$fileInfo = Get-Item $file
trap { ;
continue } $stream = $fileInfo.OpenRead()
if ($? -eq $false) {
# Couldn't open file for reading
return $null
}
$bytes = $... |
PowerShellCorpus/Github/DennisEzell_DotNET_practice/Dashboard/packages/Modernizr.2.6.2/Tools/uninstall.ps1 | uninstall.ps1 | param($installPath, $toolsPath, $package, $project)
. (Join-Path $toolsPath common.ps1)
# Update the _references.js file
Remove-Reference $scriptsFolderProjectItem $modernizrFileNameRegEx |
PowerShellCorpus/Github/DennisEzell_DotNET_practice/Dashboard/packages/Modernizr.2.6.2/Tools/install.ps1 | install.ps1 | param($installPath, $toolsPath, $package, $project)
. (Join-Path $toolsPath common.ps1)
if ($scriptsFolderProjectItem -eq $null) {
# No Scripts folder
Write-Host "No Scripts folder found"
exit
}
# Update the _references.js file
AddOrUpdate-Reference $scriptsFolderProjectItem $modernizrFileName... |
PowerShellCorpus/Github/DennisEzell_DotNET_practice/Dashboard/packages/Modernizr.2.6.2/Tools/common.ps1 | common.ps1 | function AddOrUpdate-Reference($scriptsFolderProjectItem, $fileNamePattern, $newFileName) {
try {
$referencesFileProjectItem = $scriptsFolderProjectItem.ProjectItems.Item("_references.js")
}
catch {
# _references.js file not found
return
}
if ($referencesFileProject... |
PowerShellCorpus/Github/DennisEzell_DotNET_practice/Dashboard/packages/Microsoft.ApplicationInsights.WindowsServer.2.1.0/Tools/install.ps1 | install.ps1 | param($installPath, $toolsPath, $package, $project)
if ([System.IO.File]::Exists($project.FullName))
{
function MarkItemASCopyToOutput($item)
{
Try
{
#mark it to copy if newer
$item.Properties.Item("CopyToOutputDirectory").Value = 2
}
Catch
{
write-host $_.Exception.ToString()
}... |
PowerShellCorpus/Github/DennisEzell_DotNET_practice/Dashboard/packages/EntityFramework.6.1.3/tools/init.ps1 | init.ps1 | param($installPath, $toolsPath, $package, $project)
if (Get-Module | ?{ $_.Name -eq 'EntityFramework' })
{
Remove-Module EntityFramework
}
Import-Module (Join-Path $toolsPath EntityFramework.psd1)
# SIG # Begin signature block
# MIIa4AYJKoZIhvcNAQcCoIIa0TCCGs0CAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB
# gjcCAQ... |
PowerShellCorpus/Github/DennisEzell_DotNET_practice/Dashboard/packages/EntityFramework.6.1.3/tools/install.ps1 | install.ps1 | param($installPath, $toolsPath, $package, $project)
Initialize-EFConfiguration $project
Add-EFProvider $project 'System.Data.SqlClient' 'System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer'
Write-Host
Write-Host "Type 'get-help EntityFramework' to see all available Entity Framework comma... |
PowerShellCorpus/Github/DennisEzell_DotNET_practice/Dashboard/packages/Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.0/tools/init.ps1 | init.ps1 | param($installPath, $toolsPath, $package, $project)
$compilerPackageName = 'Microsoft.Net.Compilers'
$roslynSubFolder = 'roslyn'
if ($project -eq $null) {
$project = Get-Project
}
$libDirectory = Join-Path $installPath 'lib\net45'
$packageDirectory = Split-Path $installPath
$compilerPackage = Get-Chil... |
PowerShellCorpus/Github/DennisEzell_DotNET_practice/Dashboard/packages/Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.0/tools/uninstall.ps1 | uninstall.ps1 | param($installPath, $toolsPath, $package, $project)
$roslynSubFolder = 'roslyn'
if ($project -eq $null) {
$project = Get-Project
}
$projectRoot = $project.Properties.Item('FullPath').Value
$binDirectory = Join-Path $projectRoot 'bin'
$targetDirectory = Join-Path $binDirectory $roslynSubFolder
if (Te... |
PowerShellCorpus/Github/DennisEzell_DotNET_practice/Dashboard/packages/Newtonsoft.Json.6.0.4/tools/install.ps1 | install.ps1 | param($installPath, $toolsPath, $package, $project)
# open json.net splash page on package install
# don't open if json.net is installed as a dependency
try
{
$url = "http://james.newtonking.com/json"
$dte2 = Get-Interface $dte ([EnvDTE80.DTE2])
if ($dte2.ActiveWindow.Caption -eq "Package Manager Con... |
PowerShellCorpus/Github/hoisu_automation/return_bak.ps1 | return_bak.ps1 | #Date: 08/04/2016
#Author: Istvan Caluser
#Scope: Searching and exporting in excel metadata for .bak files
#Note: If script fails with error "running scripts is disabled on this system"
#run "Set-ExecutionPolicy Unrestricted" in powershell with administrative rights
#User input path variable
$Path = Read-Hos... |
PowerShellCorpus/Github/MicrosoftDocs_DocsRoot.ca-es/.openpublishing.build.ps1 | .openpublishing.build.ps1 | param(
[string]$buildCorePowershellUrl = "https://opbuildstorageprod.blob.core.windows.net/opps1container/.openpublishing.buildcore.ps1",
[string]$parameters
)
# Main
$errorActionPreference = 'Stop'
# Step-1 Download buildcore script to local
echo "download build core script to local with source url: $... |
PowerShellCorpus/Github/danielbohannon_Invoke-Obfuscation/Out-SecureStringCommand.ps1 | Out-SecureStringCommand.ps1 | # This file is part of Invoke-Obfuscation.
#
# Copyright 2017 Daniel Bohannon <@danielhbohannon>
# while at Mandiant <http://www.mandiant.com>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain ... |
PowerShellCorpus/Github/danielbohannon_Invoke-Obfuscation/Out-EncodedOctalCommand.ps1 | Out-EncodedOctalCommand.ps1 | # This file is part of Invoke-Obfuscation.
#
# Copyright 2017 Daniel Bohannon <@danielhbohannon>
# while at Mandiant <http://www.mandiant.com>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain ... |
PowerShellCorpus/Github/danielbohannon_Invoke-Obfuscation/Out-PowerShellLauncher.ps1 | Out-PowerShellLauncher.ps1 | # This file is part of Invoke-Obfuscation.
#
# Copyright 2017 Daniel Bohannon <@danielhbohannon>
# while at Mandiant <http://www.mandiant.com>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.