full_path stringlengths 31 232 | filename stringlengths 4 167 | content stringlengths 0 48.3M |
|---|---|---|
PowerShellCorpus/Github/Linuturk_webpagetest/webpagetest/powershell/Set-StableClock.ps1 | Set-StableClock.ps1 | $useplatformclock = bcdedit | Select-String -pattern "useplatformclock Yes"
if ($useplatformclock) {
Write-Output "changed=no comment='Platform Clock Already Enabled.'"
} Else {
bcdedit /set useplatformclock true
Write-Output "changed=yes comment='Platform Clock Enabled.'"
}
|
PowerShellCorpus/Github/Linuturk_webpagetest/webpagetest/powershell/Set-WebPageTestScheduledTask.ps1 | Set-WebPageTestScheduledTask.ps1 | $ThisHost = "{{ grains.host }}"
$User = "{{ pillar['webpagetest']['win']['user'] }}"
$Password = "{{ pillar['webpagetest']['win']['pass'] }}"
$InstallDir = "{{ pillar['webpagetest']['win']['install_dir'] }}\agent"
$GetTask = Get-ScheduledTask -TaskName "wptdriver"
if ($GetTask) {
Write-Output "changed=no co... |
PowerShellCorpus/Github/Linuturk_webpagetest/webpagetest/powershell/Set-WebPageTestInstall.ps1 | Set-WebPageTestInstall.ps1 | $InstallDir = "{{ pillar['webpagetest']['win']['install_dir'] }}"
$TempDir = "{{ pillar['webpagetest']['win']['temp_dir'] }}"
$URL = "{{ pillar['webpagetest']['zipurl'] }}"
$ZipFile = "$TempDir\{{ pillar['webpagetest']['win']['zip_file'] }}"
function Expand-ZIPFile($file, $destination) {
$shell = new-object ... |
PowerShellCorpus/Github/Linuturk_webpagetest/webpagetest/powershell/Set-WebPageTestUser.ps1 | Set-WebPageTestUser.ps1 | $Username = "{{ pillar['webpagetest']['win']['user'] }}"
$Password = "{{ pillar['webpagetest']['win']['pass'] }}"
$Exists = [ADSI]::Exists("WinNT://./$Username")
if ($Exists) {
Write-Output "changed=no comment='$Username user already exists.'"
} Else {
net accounts /maxpwage:unlimited
net user /add $Us... |
PowerShellCorpus/Github/Wyvernsquare_packer-templates/psakeBuild.ps1 | psakeBuild.ps1 | $psake.use_exit_on_error = $true
properties {
$baseDir = $psake.build_script_dir
}
Task default -depends Build-Packer, prepare-hyperv, convert-tovhd, package-hyperv
task build-packer {
exec { packer build -force (Join-Path $baseDir vbox-2012r2.json) }
}
task prepare-hyperv {
$vmPath = "$baseDir\h... |
PowerShellCorpus/Github/Wyvernsquare_packer-templates/build.ps1 | build.ps1 | param (
[string]$Action="default",
[string]$version
)
$here = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
if(-not $env:ChocolateyInstall -or -not (Test-Path "$env:ChocolateyInstall")){
iex ((new-object net.webclient).DownloadString("http://bit.ly/psChocInstall"))
}
if(!(Test-Path $e... |
PowerShellCorpus/Github/Wyvernsquare_packer-templates/scripts/windows-updates.ps1 | windows-updates.ps1 | $ProgressPreference='SilentlyContinue'
Get-WUInstall -WindowsUpdate -AcceptAll -UpdateType Software -IgnoreReboot
|
PowerShellCorpus/Github/Wyvernsquare_packer-templates/scripts/package.ps1 | package.ps1 | $ErrorActionPreference = "Stop"
. a:\Test-Command.ps1
Enable-RemoteDesktop
netsh advfirewall firewall add rule name="Remote Desktop" dir=in localport=3389 protocol=TCP action=allow
Update-ExecutionPolicy -Policy Unrestricted
# SKIP updates
#Install-WindowsUpdate -AcceptEula
Write-BoxstarterMessage "Rem... |
PowerShellCorpus/Github/Wyvernsquare_packer-templates/scripts/nano_cleanup.ps1 | nano_cleanup.ps1 | Import-Module C:\windows\system32\windowspowershell\v1.0\Modules\Microsoft.PowerShell.Utility\Microsoft.PowerShell.Utility.psd1
Import-Module C:\windows\system32\windowspowershell\v1.0\Modules\Microsoft.PowerShell.Management\Microsoft.PowerShell.Management.psd1
Import-Module C:\windows\system32\windowspowershell\v1.0... |
PowerShellCorpus/Github/Wyvernsquare_packer-templates/scripts/nano_cleanup_after_reboot.ps1 | nano_cleanup_after_reboot.ps1 | Import-Module C:\windows\system32\windowspowershell\v1.0\Modules\Microsoft.PowerShell.Utility\Microsoft.PowerShell.Utility.psd1
Import-Module C:\windows\system32\windowspowershell\v1.0\Modules\Microsoft.PowerShell.Management\Microsoft.PowerShell.Management.psd1
Import-Module C:\windows\system32\windowspowershell\v1.0... |
PowerShellCorpus/Github/Wyvernsquare_packer-templates/scripts/winrm.ps1 | winrm.ps1 | netsh advfirewall firewall add rule name="WinRM-HTTP" dir=in localport=5985 protocol=TCP action=allow
winrm set winrm/config/service/auth '@{Basic="true"}'
winrm set winrm/config/service '@{AllowUnencrypted="true"}'
|
PowerShellCorpus/Github/Wyvernsquare_packer-templates/scripts/provision.ps1 | provision.ps1 | $ErrorActionPreference = "Stop"
. a:\Test-Command.ps1
Write-Host "Enabling file sharing firewall rules"
netsh advfirewall firewall set rule group="File and Printer Sharing" new enable=yes
if(Test-Path "e:/VBoxWindowsAdditions.exe") {
Write-Host "Installing Guest Additions"
Get-ChildItem E:\cert\ -Filt... |
PowerShellCorpus/Github/Wyvernsquare_packer-templates/scripts/nano_create.ps1 | nano_create.ps1 | start-transcript -path $env:temp\transcript0.txt -noclobber
mkdir c:\NanoServer
cd c:\NanoServer
xcopy /s d:\NanoServer\*.* .
Import-Module .\NanoServerImageGenerator\NanoServerImageGenerator.psd1
$adminPassword = ConvertTo-SecureString "vagrant" -AsPlainText -Force
New-NanoServerImage `
-MediaPath D:\ `
... |
PowerShellCorpus/Github/Wyvernsquare_packer-templates/scripts/cleanup.ps1 | cleanup.ps1 | Write-Host "Uninstall Chef..."
if(Test-Path "c:\windows\temp\chef.msi") {
Start-Process MSIEXEC.exe '/uninstall c:\windows\temp\chef.msi /quiet' -Wait
}
Write-Host "Cleaning Temp Files"
try {
Takeown /d Y /R /f "C:\Windows\Temp\*"
Icacls "C:\Windows\Temp\*" /GRANT:r administrators:F /T /c /q 2>&1
Rem... |
PowerShellCorpus/Github/Wyvernsquare_packer-templates/scripts/Test-Command.ps1 | Test-Command.ps1 | function Test-Command($cmdname)
{
try {
Get-Command -Name $cmdname
return $true
}
catch {
$global:error.RemoveAt(0)
return $false
}
}
|
PowerShellCorpus/Github/Wyvernsquare_packer-templates/scripts/nano_hyperv_create.ps1 | nano_hyperv_create.ps1 | start-transcript -path $env:temp\transcript0.txt -noclobber
mkdir c:\NanoServer
cd c:\NanoServer
xcopy /s d:\NanoServer\*.* .
Import-Module .\NanoServerImageGenerator\NanoServerImageGenerator.psd1
$adminPassword = ConvertTo-SecureString "vagrant" -AsPlainText -Force
New-NanoServerImage `
-MediaPath D:\ `
... |
PowerShellCorpus/Github/Wyvernsquare_packer-templates/scripts/after-reboot.ps1 | after-reboot.ps1 | $ProgressPreference='SilentlyContinue'
Get-WUInstall -WindowsUpdate -AcceptAll -UpdateType Software -IgnoreReboot
# The sleeps may seem whacky because they are
# Might beable to remove after 2016 RTMs
# For now after much trial and error, this is what works
Write-Host "waiting 5 minutes"
Start-Sleep -Seconds 30... |
PowerShellCorpus/Github/Wyvernsquare_packer-templates/scripts/boxstarter.ps1 | boxstarter.ps1 | $WinlogonPath = "HKLM:\Software\Microsoft\Windows NT\CurrentVersion\Winlogon"
Remove-ItemProperty -Path $WinlogonPath -Name AutoAdminLogon
Remove-ItemProperty -Path $WinlogonPath -Name DefaultUserName
iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/mwrock/boxstarter/master/BuildSc... |
PowerShellCorpus/Github/Ruslan4er_PSSIP-Project/PSSIP-Project/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/Ruslan4er_PSSIP-Project/PSSIP-Project/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/maxesse_lyncautoops/LyncAutoOps.ps1 | LyncAutoOps.ps1 | ################################################################################################################################
# Name: LyncAutoOps Tool
# Version: v1.5.1 (20/1/2015)
# Created By: Max Sanna
# Web Site: http://blog.maxsanna.com
# Contact: max(at)maxsanna.com
#
# Notes: This is a Powershell tool... |
PowerShellCorpus/Github/dotnetjalps_StackOverFlowAttributeRouting/StackOverFlowRouting/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/dotnetjalps_StackOverFlowAttributeRouting/StackOverFlowRouting/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/dotnetjalps_StackOverFlowAttributeRouting/StackOverFlowRouting/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/dotnetjalps_StackOverFlowAttributeRouting/StackOverFlowRouting/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/dotnetjalps_StackOverFlowAttributeRouting/StackOverFlowRouting/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/dotnetjalps_StackOverFlowAttributeRouting/StackOverFlowRouting/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/dotnetjalps_StackOverFlowAttributeRouting/StackOverFlowRouting/packages/EntityFramework.6.1.0/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
# MIIarwYJKoZIhvcNAQcCoIIaoDCCGpwCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB
# gjcCAQ... |
PowerShellCorpus/Github/dotnetjalps_StackOverFlowAttributeRouting/StackOverFlowRouting/packages/EntityFramework.6.1.0/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/361007018_DockerRegistryHub/src/Web/Properties/PublishProfiles/local-publish.ps1 | local-publish.ps1 | [cmdletbinding(SupportsShouldProcess=$true)]
param($publishProperties=@{}, $packOutput, $pubProfilePath)
# to learn more about this file visit https://go.microsoft.com/fwlink/?LinkId=524327
try{
if ($publishProperties['ProjectGuid'] -eq $null){
$publishProperties['ProjectGuid'] = 'bb8419d4-d11d-4af... |
PowerShellCorpus/Github/DavidCarterDev_Scripts/search.ps1 | search.ps1 | param($filter)
process {
Get-ChildItem -Recurse -Filter $filter c:\ | Select-Object -Property directory,name
} |
PowerShellCorpus/Github/DavidCarterDev_Scripts/goto.ps1 | goto.ps1 | param($filter)
process {
Set-Location (Get-ChildItem -Recurse -Filter $filter c:\).Directory
} |
PowerShellCorpus/Github/DavidCarterDev_Scripts/startMcAfee.ps1 | startMcAfee.ps1 | Start-Service -Name McAfeeFramework,McShield,McTaskmanager
Get-Service -Name McAfeeFramework,McShield,McTaskmanager |
PowerShellCorpus/Github/DavidCarterDev_Scripts/stopMcAfee.ps1 | stopMcAfee.ps1 | Stop-Service -Name McAfeeFramework,McShield,McTaskmanager
Get-Service -Name McAfeeFramework,McShield,McTaskmanager |
PowerShellCorpus/Github/DavidCarterDev_Scripts/fwup.ps1 | fwup.ps1 | set-service -name "SharedAccess" -Status running |
PowerShellCorpus/Github/DavidCarterDev_Scripts/fwdown.ps1 | fwdown.ps1 | set-service -name "SharedAccess" -$env.computername -Status stopped |
PowerShellCorpus/Github/pramodsingla_SubsetDB/Subset-ImportFromCSV.ps1 | Subset-ImportFromCSV.ps1 | ###########################################################################################
# Name : Subset-Import2SQLTable
# Author : Pramod Singla (Ecova DBAs) 17th Sept 2015
# Purpose : It imports CSV files data into SQL table. It will get the list of tables from the XML file and load all thes... |
PowerShellCorpus/Github/pramodsingla_SubsetDB/Subset-Export2CSV.ps1 | Subset-Export2CSV.ps1 | ###########################################################################################
# Name : Subset-Export2CSV
# Author : Pramod Singla (Ecova DBAs) 17th Sept 2015
# Purpose : It exports SQL table query data into CSV.
# Test String : .\Subset-Export2CSV.ps1 -ClientKey 2
# ... |
PowerShellCorpus/Github/mwhitmore1_11-TopSpotsAPI/WebApplication1/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/mwhitmore1_11-TopSpotsAPI/WebApplication1/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/mwhitmore1_11-TopSpotsAPI/WebApplication1/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/Tanyatang0_tanya2/.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 ur... |
PowerShellCorpus/Github/beavisnz_azure-resources/Templates/SharePointFarm/deploy-sql.ps1 | deploy-sql.ps1 | $resourcegroupname = "sysnzsp"
$deploymentname = "sysnzsp-deploy-sql"
Login-AzureRmAccount
Get-AzureRmSubscription -SubscriptionName "Visual Studio Enterprise with MSDN" | Select-AzureRmSubscription
$resourcegroup = Get-AzureRmResourceGroup -Location "Australia East" -Name $resourcegroupname
New-AzureRmResou... |
PowerShellCorpus/Github/beavisnz_azure-resources/Templates/SharePointFarm/deploy-sp.ps1 | deploy-sp.ps1 | $resourcegroupname = "sysnzsp"
$deploymentname = "sysnzsp-deploy-sp"
Login-AzureRmAccount
Get-AzureRmSubscription -SubscriptionName "Visual Studio Enterprise with MSDN" | Select-AzureRmSubscription
$resourcegroup = Get-AzureRmResourceGroup -Location "Australia East" -Name $resourcegroupname
New-AzureRmResour... |
PowerShellCorpus/Github/beavisnz_azure-resources/Templates/SharePointFarm/deploy-base.ps1 | deploy-base.ps1 | $resourcegroupname = "sysnzsp"
$deploymentname = "sysnzsp-deploy-base"
Login-AzureRmAccount
Get-AzureRmSubscription -SubscriptionName "Visual Studio Enterprise with MSDN" | Select-AzureRmSubscription
$resourcegroup = Get-AzureRmResourceGroup -Location "Australia East" -Name $resourcegroupname
if ( !$resource... |
PowerShellCorpus/Github/beavisnz_azure-resources/Templates/SharePointFarm/deploy-dc.ps1 | deploy-dc.ps1 | $resourcegroupname = "sysnzsp"
$deploymentname = "sysnzsp-deploy-dc"
Login-AzureRmAccount
Get-AzureRmSubscription -SubscriptionName "Visual Studio Enterprise with MSDN" | Select-AzureRmSubscription
$resourcegroup = Get-AzureRmResourceGroup -Location "Australia East" -Name $resourcegroupname
New-AzureRmResour... |
PowerShellCorpus/Github/OPS-E2E-PPE_E2E_D_NewRepo_2017_5_20_24_58_28/.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/OPSTest_E2E_NewRepo_1489017941207/.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/OPS-E2E-PPE_E2E_D_Provision_2017_5_14_29_59_6/.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/ffeldhaus_powershell-wix/docs/Update-Docs.ps1 | Update-Docs.ps1 | $commands = Get-Command *Wix*
ForEach ($command in $commands){
$strCommand = [String]$command
$file = $PSScriptRoot + "\" + $strCommand.ToLower() + ".md"
$script = Join-Path $PSScriptRoot "\Get-HelpByMarkdown.ps1"
Invoke-Expression "$script $strCommand" | Out-File -FilePath $file `
... |
PowerShellCorpus/Github/ffeldhaus_powershell-wix/docs/Get-HelpByMarkdown.ps1 | Get-HelpByMarkdown.ps1 | #
# File: Get-HelpByMarkdown.ps1
#
# Author: Akira Sugiura (urasandesu@gmail.com)
#
#
# Copyright (c) 2014 Akira Sugiura
#
# This software is MIT License.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "So... |
PowerShellCorpus/Github/MicrosoftDocs_fenxu_test_transfer_repository/.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/sergey-s-betke_ITG.Yandex.DnsServer/test.ps1 | test.ps1 | [CmdletBinding(
SupportsShouldProcess=$true,
ConfirmImpact="Medium"
)]
param (
)
Import-Module `
'ITG.Yandex.DnsServer' `
-Force `
;
Set-Readme `
-ModuleInfo ( Get-Module 'ITG.Yandex.DnsServer' ) `
;
<#
Import-Module `
(Join-Path `
-Path ( Split-Path -Path ( $MyInvocation.MyCommand.Path ) -P... |
PowerShellCorpus/Github/fjiannan_PowerCli_Scripts/scripts/VSTS/Dependencies/Install-Posh-SSH.ps1 | Install-Posh-SSH.ps1 | Add-Type -assembly "system.io.compression.filesystem"
$webclient = New-Object System.Net.WebClient
$url = "https://github.com/darkoperator/Posh-SSH/archive/master.zip"
Write-Host "Downloading latest version of Posh-SSH from $url" -ForegroundColor Cyan
$file = "$($env:TEMP)\Posh-SSH.zip"
$webclient.DownloadFile($ur... |
PowerShellCorpus/Github/fjiannan_PowerCli_Scripts/scripts/VSTS/Dependencies/Install-DRSRule.ps1 | Install-DRSRule.ps1 | Add-Type -assembly "system.io.compression.filesystem"
$webclient = New-Object System.Net.WebClient
$url = "https://github.com/PowerCLIGoodies/DRSRule/archive/master.zip"
Write-Host "Downloading latest version of DRSRule from $url" -ForegroundColor Cyan
$file = "$($env:TEMP)\DRSRule.zip"
$webclient.DownloadFile($ur... |
PowerShellCorpus/Github/fjiannan_PowerCli_Scripts/scripts/VSTS/Dependencies/Microsoft.PowerShell_profile.ps1 | Microsoft.PowerShell_profile.ps1 | $DamageScriptRootPath = "C:\Scripts"
$LanguagePreference = "en-US"
$ErrorActionPreference = "Stop"
if ($DamageScriptRootPath -eq "") {
throw '$DamageScriptRootPath has not been configured!'
exit
}
Set-Location $DamageScriptRootPath
$xmlClassInfoPath = "$DamageScriptRootPath\dependencies\ClassIn... |
PowerShellCorpus/Github/fjiannan_PowerCli_Scripts/scripts/VSTS/Dependencies/lang/en-US/mod_Dictionary.ps1 | mod_Dictionary.ps1 | # Info messages
$INFO_READY_TO_START_LAB = "You are ready to start the lab!"
$INFO_READY_TO_START_LAB_REBOOT = "One of your hosts has been been rebooted. When it has finished, you are ready to start the lab!"
$INFO_FAULT_IS_FIXED = "Congratulations you have fixed the fault!"
$INFO_FAULT_IS_FIXED_... |
PowerShellCorpus/Github/fjiannan_PowerCli_Scripts/scripts/VSTS/Mod7/Break-7-4.ps1 | Break-7-4.ps1 | #region Description
<#
########################################################################
Scenario:
Attempts to join an ESXi host to the class domain fail.
Notes:
Code comments have been deliberately omitted.
########################################################################
#>
#endregion
#reg... |
PowerShellCorpus/Github/fjiannan_PowerCli_Scripts/scripts/VSTS/Mod7/Verify-7-5.ps1 | Verify-7-5.ps1 | #region Description
<#
########################################################################
Scenario:
Database administrator reports that the size of the VMware vCenter
Server database has increased dramatically and has exceeded the
projected storage allocation space.
Notes:
Code comments have been delibe... |
PowerShellCorpus/Github/fjiannan_PowerCli_Scripts/scripts/VSTS/Mod7/Break-7-3.ps1 | Break-7-3.ps1 | #region Description
<#
########################################################################
Scenario:
A user cannot log in to the VMware® vCenter Server system.
Notes:
Code comments have been deliberately omitted.
########################################################################
#>
#endregion
... |
PowerShellCorpus/Github/fjiannan_PowerCli_Scripts/scripts/VSTS/Mod7/Break-7-8.ps1 | Break-7-8.ps1 | #region Description
<#
########################################################################
Scenario:
A VMware ESXi host has been disconnected from the vCenter Server
Notes:
Code comments have been deliberately omitted.
########################################################################
#>
#endregio... |
PowerShellCorpus/Github/fjiannan_PowerCli_Scripts/scripts/VSTS/Mod7/Verify-7-2.ps1 | Verify-7-2.ps1 | #region Description
<#
########################################################################
Scenario:
A user cannot log in to the VMware® ESXi™ host
Notes:
Code comments have been deliberately omitted.
########################################################################
#>
#endr... |
PowerShellCorpus/Github/fjiannan_PowerCli_Scripts/scripts/VSTS/Mod7/Break-7-7.ps1 | Break-7-7.ps1 | #region Description
<#
########################################################################
Scenario:
A user cannot log in to the VMware® vCenter Server system.
Notes:
Code comments have been deliberately omitted.
########################################################################
#>
#endregion
... |
PowerShellCorpus/Github/fjiannan_PowerCli_Scripts/scripts/VSTS/Mod7/Verify-7-3.ps1 | Verify-7-3.ps1 | #region Description
<#
########################################################################
Scenario:
A user cannot log in to the VMware vCenter Server system.
Notes:
Code comments have been deliberately omitted.
########################################################################
#>
#endregion
#r... |
PowerShellCorpus/Github/fjiannan_PowerCli_Scripts/scripts/VSTS/Mod7/Break-7-6.ps1 | Break-7-6.ps1 | #region Description
<#
########################################################################
Scenario:
vCenter Inventory is missing
Notes:
Code comments have been deliberately omitted.
########################################################################
#>
#endregion
#region requires
#requires -Ve... |
PowerShellCorpus/Github/fjiannan_PowerCli_Scripts/scripts/VSTS/Mod7/Verify-7-8.ps1 | Verify-7-8.ps1 | #region Description
<#
########################################################################
Scenario:
A VMware ESXi host has been disconnected from the vCenter Server
Notes:
Code comments have been deliberately omitted.
########################################################################
#>
#endregio... |
PowerShellCorpus/Github/fjiannan_PowerCli_Scripts/scripts/VSTS/Mod7/Break-7-2.ps1 | Break-7-2.ps1 | #region Description
<#
########################################################################
Scenario:
A user cannot log in to the VMwareÛ ESXi host
Notes:
Code comments have been deliberately omitted.
########################################################################
#>
#endregion
#region requi... |
PowerShellCorpus/Github/fjiannan_PowerCli_Scripts/scripts/VSTS/Mod7/Verify-7-6.ps1 | Verify-7-6.ps1 | #region Description
<#
########################################################################
Scenario:
A user cannot log in to the VMware® vCenter Server™ system.
Notes:
Code comments have been deliberately omitted.
######################################################################... |
PowerShellCorpus/Github/fjiannan_PowerCli_Scripts/scripts/VSTS/Mod7/Verify-7-9.ps1 | Verify-7-9.ps1 | #region Description
<#
########################################################################
Scenario:
A VMware ESXi host has been disconnected from the vCenter Server
Notes:
Code comments have been deliberately omitted.
########################################################################
#>
#endregio... |
PowerShellCorpus/Github/fjiannan_PowerCli_Scripts/scripts/VSTS/Mod7/Break-7-1.ps1 | Break-7-1.ps1 | #region Description
<#
########################################################################
Scenario:
A user cannot log in to the VMware® vCenter Server system.
Notes:
Code comments have been deliberately omitted.
########################################################################
#>
#endregion
... |
PowerShellCorpus/Github/fjiannan_PowerCli_Scripts/scripts/VSTS/Mod7/Break-7-5.ps1 | Break-7-5.ps1 | #region Description
<#
########################################################################
Scenario:
Database administrator reports that the size of the VMware vCenter
Server database has increased dramatically and has exceeded the
projected storage allocation space.
Notes:
Code comments have been delibe... |
PowerShellCorpus/Github/fjiannan_PowerCli_Scripts/scripts/VSTS/Mod7/Verify-7-7.ps1 | Verify-7-7.ps1 | #region Description
<#
########################################################################
Scenario:
A user cannot login to the vCenter Server system.
Notes:
Code comments have been deliberately omitted.
########################################################################
#>
#endregion
#region re... |
PowerShellCorpus/Github/fjiannan_PowerCli_Scripts/scripts/VSTS/Mod7/Break-7-10.ps1 | Break-7-10.ps1 | #region Description
<#
########################################################################
Scenario:
The vCenter Server system alarm reports that a connection to a host has
been lost and the host is no longer responding.
Notes:
Code comments have been deliberately omitted.
###############################... |
PowerShellCorpus/Github/fjiannan_PowerCli_Scripts/scripts/VSTS/Mod7/Break-7-9.ps1 | Break-7-9.ps1 | #region Description
<#
########################################################################
Scenario:
A VMware ESXi host has been disconnected from the vCenter Server
Notes:
Code comments have been deliberately omitted.
########################################################################
#>
#endregio... |
PowerShellCorpus/Github/fjiannan_PowerCli_Scripts/scripts/VSTS/Mod7/Verify-7-4.ps1 | Verify-7-4.ps1 | #region Description
<#
########################################################################
Scenario:
Attempts to join an ESXi host to the class domain fail.
Notes:
Code comments have been deliberately omitted.
########################################################################
#>
#endregion
#reg... |
PowerShellCorpus/Github/fjiannan_PowerCli_Scripts/scripts/VSTS/Mod7/Verify-7-10.ps1 | Verify-7-10.ps1 | #region Description
<#
########################################################################
Scenario:
The vCenter Server system alarm reports that a connection to a host has
been lost and the host is no longer responding.
Notes:
Code comments have been deliberately omitted.
###############################... |
PowerShellCorpus/Github/fjiannan_PowerCli_Scripts/scripts/VSTS/Mod7/Verify-7-1.ps1 | Verify-7-1.ps1 | #region Description
<#
########################################################################
Scenario:
A user cannot log in to the VMware vCenter Server system.
Notes:
Code comments have been deliberately omitted.
########################################################################
#>
#endregion
#r... |
PowerShellCorpus/Github/fjiannan_PowerCli_Scripts/scripts/VSTS/Mod4/Verify-4-3.ps1 | Verify-4-3.ps1 | #region Description
<#
########################################################################
Scenario:
In this task, an administrator who supports vCenter Server is reporting
that the vCenter Server system lost contact with a VMware® ESXi host
Notes:
Code comments have been deliberately omitted.
##########... |
PowerShellCorpus/Github/fjiannan_PowerCli_Scripts/scripts/VSTS/Mod4/Verify-4-2.ps1 | Verify-4-2.ps1 | #region Description
<#
########################################################################
Scenario:
In this task, virtual machine administrators are reporting that some of
their virtual machines are no longer reachable on the network. In
addition they are also reporting that they can no longer open consol... |
PowerShellCorpus/Github/fjiannan_PowerCli_Scripts/scripts/VSTS/Mod4/Break-4-7.ps1 | Break-4-7.ps1 | #region Description
<#
########################################################################
Scenario:
a recent change has left the vDS in an inconsistent state between the
vCenter Server and the ESXi hosts. Find the cause of the fault and then
synchronise the VDS config.
Notes:
Code comments have been d... |
PowerShellCorpus/Github/fjiannan_PowerCli_Scripts/scripts/VSTS/Mod4/Break-4-4.ps1 | Break-4-4.ps1 | #region Description
<#
########################################################################
Scenario:
A virtual machine administrator reports that two virtual
machines on a distributed switch cannot communicate with one another.
Notes:
Code comments have been deliberately omitted.
#######################... |
PowerShellCorpus/Github/fjiannan_PowerCli_Scripts/scripts/VSTS/Mod4/Break-4-2.ps1 | Break-4-2.ps1 | #region Description
<#
########################################################################
Scenario:
In this task, virtual machine administrators are reporting that some of
their virtual machines are no longer reachable on the network. In
addition they are also reporting that they can no longer open consol... |
PowerShellCorpus/Github/fjiannan_PowerCli_Scripts/scripts/VSTS/Mod4/Verify-4-4.ps1 | Verify-4-4.ps1 | #region Description
<#
########################################################################
Scenario:
A virtual machine administrator reports that two virtual
machines on a distributed switch cannot communicate with one another.
Notes:
Code comments have been deliberately omitted.
#######################... |
PowerShellCorpus/Github/fjiannan_PowerCli_Scripts/scripts/VSTS/Mod4/Verify-4-1.ps1 | Verify-4-1.ps1 | #region Description
<#
########################################################################
Scenario:
In this task, a user has reported to you that a virtual machine cannot
access resources on the network. Immediately after discussing the issue
with the user, you receive another call from another user report... |
PowerShellCorpus/Github/fjiannan_PowerCli_Scripts/scripts/VSTS/Mod4/Break-4-6.ps1 | Break-4-6.ps1 | #region Description
<#
########################################################################
Scenario:
a virtual machine administrator cannot connect a virtual machine to a
port on a distributed switch.
Notes:
Code comments have been deliberately omitted.
##################################################... |
PowerShellCorpus/Github/fjiannan_PowerCli_Scripts/scripts/VSTS/Mod4/Verify-4-5.ps1 | Verify-4-5.ps1 | #region Description
<#
########################################################################
Scenario:
A virtual machine administrator reports that a
virtual machines on the first Production portgroup are not able to
acccess resources on the network.
Notes:
Code comments have been deliberately omitted.
... |
PowerShellCorpus/Github/fjiannan_PowerCli_Scripts/scripts/VSTS/Mod4/Break-4-3.ps1 | Break-4-3.ps1 | #region Description
<#
########################################################################
Scenario:
In this task, an administrator who supports vCenter Server is reporting
that the vCenter Server system lost contact with a VMware® ESXi™ host
Notes:
Code comments have been deliberately omitted.
#########... |
PowerShellCorpus/Github/fjiannan_PowerCli_Scripts/scripts/VSTS/Mod4/Verify-4-7.ps1 | Verify-4-7.ps1 | #region Description
<#
########################################################################
Scenario:
a recent change has left the vDS in an inconsistent state between the
vCenter Server and the ESXi hosts. Find the cause of the fault and then
synchronise the VDS config.
Notes:
Code comments have been d... |
PowerShellCorpus/Github/fjiannan_PowerCli_Scripts/scripts/VSTS/Mod4/Break-4-1.ps1 | Break-4-1.ps1 | #region Description
<#
########################################################################
Scenario:
In this task, a user has reported to you that a virtual machine cannot
access resources on the network. Immediately after discussing the issue
with the user, you receive another call from another user report... |
PowerShellCorpus/Github/fjiannan_PowerCli_Scripts/scripts/VSTS/Mod4/Verify-4-6.ps1 | Verify-4-6.ps1 | #region Description
<#
########################################################################
Scenario:
a virtual machine administrator cannot connect a virtual machine to a
port on a distributed switch.
Notes:
Code comments have been deliberately omitted.
##################################################... |
PowerShellCorpus/Github/fjiannan_PowerCli_Scripts/scripts/VSTS/Mod4/Break-4-5.ps1 | Break-4-5.ps1 | #region Description
<#
########################################################################
Scenario:
An administrator reports that a virtual machine cannot access resources
on the network.
Notes:
Code comments have been deliberately omitted.
###############################################################... |
PowerShellCorpus/Github/fjiannan_PowerCli_Scripts/scripts/VSTS/Mod5/Break-5-8.ps1 | Break-5-8.ps1 | #region Description
<#
########################################################################
Scenario:
a user notices that storage performance is slow. After investigating the
problem, the user determines that the affected datastore has only one
path.
Notes:
Code comments have been deliberately omitted.
... |
PowerShellCorpus/Github/fjiannan_PowerCli_Scripts/scripts/VSTS/Mod5/Verify-5-2.ps1 | Verify-5-2.ps1 | #region Description
<#
########################################################################
Scenario:
cannot access virtual machines that are located on iSCSI datastores
Notes:
Code comments have been deliberately omitted.
########################################################################
#>
#endre... |
PowerShellCorpus/Github/fjiannan_PowerCli_Scripts/scripts/VSTS/Mod5/Break-5-4.ps1 | Break-5-4.ps1 | #region Description
<#
########################################################################
Scenario:
cannot access virtual machines that are located on iSCSI datastores
Notes:
Code comments have been deliberately omitted.
########################################################################
#>
#endre... |
PowerShellCorpus/Github/fjiannan_PowerCli_Scripts/scripts/VSTS/Mod5/Verify-5-3.ps1 | Verify-5-3.ps1 | #region Description
<#
########################################################################
Scenario:
cannot access virtual machines that are located on iSCSI datastores
Notes:
Code comments have been deliberately omitted.
########################################################################
#>
#endre... |
PowerShellCorpus/Github/fjiannan_PowerCli_Scripts/scripts/VSTS/Mod5/Break-5-9.ps1 | Break-5-9.ps1 | #region Description
<#
########################################################################
Scenario:
a user cannot access virtual machines that are located on iSCSI
datastores.
Notes:
Code comments have been deliberately omitted.
########################################################################
... |
PowerShellCorpus/Github/fjiannan_PowerCli_Scripts/scripts/VSTS/Mod5/Break-5-1.ps1 | Break-5-1.ps1 | #region Description
<#
########################################################################
Scenario:
Cannot create on, or move a virtual machine to the NFS datastore
Notes:
Code comments have been deliberately omitted.
########################################################################
#>
#endregio... |
PowerShellCorpus/Github/fjiannan_PowerCli_Scripts/scripts/VSTS/Mod5/Verify-5-6.ps1 | Verify-5-6.ps1 | #region Description
<#
########################################################################
Scenario:
Complaints of terrible performance from VMs located on iSCSI storage
Notes:
Code comments have been deliberately omitted.
########################################################################
#>
#endr... |
PowerShellCorpus/Github/fjiannan_PowerCli_Scripts/scripts/VSTS/Mod5/Verify-5-5.ps1 | Verify-5-5.ps1 | #region Description
<#
########################################################################
Scenario:
Cannot access virtual machines that are located on iSCSI datastores
Notes:
Code comments have been deliberately omitted.
########################################################################
#>
#endre... |
PowerShellCorpus/Github/fjiannan_PowerCli_Scripts/scripts/VSTS/Mod5/Verify-5-4.ps1 | Verify-5-4.ps1 | #region Description
<#
########################################################################
Scenario:
cannot access virtual machines that are located on iSCSI datastores
Notes:
Code comments have been deliberately omitted.
########################################################################
#>
#endre... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.