full_path
stringlengths
31
232
filename
stringlengths
4
167
content
stringlengths
0
48.3M
PowerShellCorpus/Github/dldorsey_cas-odyssey/CAS_rules.ps1
CAS_rules.ps1
$serverList = Import-CSV .\CAS_scenario.csv cls #Process the $serverList into arrays for CAS and MBX $casList = @() $mbxList = @() foreach ($server in $serverList) { if ($server.IsCAS -eq $True) {$casList += $server} if ($server.IsMBX -eq $True) {$mbxList += $server} } #List all Mailbox servers by numbe...
PowerShellCorpus/Github/matt2005_excel_sharepoint_import/import_excel_into_sharepoint.ps1
import_excel_into_sharepoint.ps1
################################################# # Powershell script to import from Excel into a # Sharepoint list. # # Needs to be run on sharepoint server with Excel # # Matthew Hilton 2013-06-19 # ################################################# # Excel Bits #############################################...
PowerShellCorpus/Github/MicrosoftLearning_20533-ImplementingMicrosoftAzureInfrastructureSolutions/Allfiles/Labfiles/Lab05/Starter/NewAdatumWebsite/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/MicrosoftLearning_20533-ImplementingMicrosoftAzureInfrastructureSolutions/Allfiles/Labfiles/Lab05/Starter/NewAdatumWebsite/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/MicrosoftLearning_20533-ImplementingMicrosoftAzureInfrastructureSolutions/Allfiles/Labfiles/Lab05/Starter/NewAdatumWebsite/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/MicrosoftLearning_20533-ImplementingMicrosoftAzureInfrastructureSolutions/Allfiles/Labfiles/Lab05/Starter/NewAdatumWebsite/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 # SIG # Begin signature block # MIIavQYJKoZIhvcNAQcCoIIarjCCGqoCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB # gjcCAQSgWzBZMDQGCisGAQQ...
PowerShellCorpus/Github/MicrosoftLearning_20533-ImplementingMicrosoftAzureInfrastructureSolutions/Allfiles/Labfiles/Lab05/Starter/NewAdatumWebsite/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/MicrosoftLearning_20533-ImplementingMicrosoftAzureInfrastructureSolutions/Allfiles/Labfiles/Lab05/Starter/NewAdatumWebsite/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/MicrosoftLearning_20533-ImplementingMicrosoftAzureInfrastructureSolutions/Allfiles/Labfiles/Lab05/Starter/AdatumWebsite/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/MicrosoftLearning_20533-ImplementingMicrosoftAzureInfrastructureSolutions/Allfiles/Labfiles/Lab05/Starter/AdatumWebsite/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/MicrosoftLearning_20533-ImplementingMicrosoftAzureInfrastructureSolutions/Allfiles/Labfiles/Lab05/Starter/AdatumWebsite/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/MicrosoftLearning_20533-ImplementingMicrosoftAzureInfrastructureSolutions/Allfiles/Labfiles/Lab05/Starter/AdatumWebsite/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 # SIG # Begin signature block # MIIavQYJKoZIhvcNAQcCoIIarjCCGqoCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB # gjcCAQSgWzBZMDQGCisGAQQ...
PowerShellCorpus/Github/MicrosoftLearning_20533-ImplementingMicrosoftAzureInfrastructureSolutions/Allfiles/Labfiles/Lab05/Starter/AdatumWebsite/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/MicrosoftLearning_20533-ImplementingMicrosoftAzureInfrastructureSolutions/Allfiles/Labfiles/Lab05/Starter/AdatumWebsite/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/MicrosoftLearning_20533-ImplementingMicrosoftAzureInfrastructureSolutions/Allfiles/Labfiles/Lab09/Starter/ExampleCommands.ps1
ExampleCommands.ps1
#Record your Azure Directory name here: #This code creates a new user in an Azure Directory New-MsolUser -UserPrincipalName mledford@<#Copy your Azure Directory name here#>.onmicrosoft.com -DisplayName “Mario Ledford” -FirstName “Mario” -LastName “Ledford” -Password ‘Pa$$w0rd123’ -ForceChangePassword $false -U...
PowerShellCorpus/Github/MicrosoftLearning_20533-ImplementingMicrosoftAzureInfrastructureSolutions/Allfiles/Labfiles/Lab09/Starter/Set-AzureAD20553C09Lab.ps1
Set-AzureAD20553C09Lab.ps1
# Lab 09 Starter script - Using Microsoft Azure Active Directory Module for Windows PowerShell New-MsolUser -UserPrincipalName mledford@<#Copy your Azure Directory domain name here#>.onmicrosoft.com -DisplayName 'Mario Ledford' -FirstName 'Mario' -LastName 'Ledford' -Password 'Pa55w.rd' -ForceChangePassword $false -...
PowerShellCorpus/Github/MicrosoftLearning_20533-ImplementingMicrosoftAzureInfrastructureSolutions/Allfiles/Labfiles/Lab10/Starter/Set-ADUsers20533C10Lab.ps1
Set-ADUsers20533C10Lab.ps1
$ouNameSync = 'AccountsToSync' $ouNameNoSync = 'AccountsNotToSync' New-ADOrganizationalUnit -Name $ouNameSync -Path "DC=adatum,DC=com" -ProtectedFromAccidentalDeletion $false New-ADOrganizationalUnit -Name $ouNameNoSync -Path "DC=adatum,DC=com" -ProtectedFromAccidentalDeletion $false New-ADUser -Name 'Beverly...
PowerShellCorpus/Github/MicrosoftLearning_20533-ImplementingMicrosoftAzureInfrastructureSolutions/Allfiles/Labfiles/Lab10/Starter/Setup-20533C10Lab.ps1
Setup-20533C10Lab.ps1
Param( [Parameter(Mandatory=$true,Position=1)] [String]$location ) $resourceGroupName = '20533C1001-LabRG' $resourceGroupLocation = $location $resourceGroup = New-AzureRmResourceGroup -Name $resourceGroupName -Location $resourceGroupLocation $templateFilePath = 'Templates\azuredeploy.json' $template...
PowerShellCorpus/Github/MicrosoftLearning_20533-ImplementingMicrosoftAzureInfrastructureSolutions/Allfiles/Labfiles/Lab01/Solution/Lab01Solution.ps1
Lab01Solution.ps1
#Lab 01 Starter script - Using Azure PowerShell #Variables $locName = "East US" #Azure datacenter location $rgName = "TestRG1" # test resource group created in Exercise 2 $newrgName ="TestWebRG" # resource group name to which the storage account will re-assigned $webappName = "TestWebAppMMDDYYAB" #storage accoun...
PowerShellCorpus/Github/MicrosoftLearning_20533-ImplementingMicrosoftAzureInfrastructureSolutions/Allfiles/Labfiles/Lab01/Solution/Start-AzureRm20553C01Lab.ps1
Start-AzureRm20553C01Lab.ps1
# Lab 01 Starter script - Using Azure PowerShell # Variables $rg1Name = '20533C0101-LabRG' # test resource group created in Exercise 2 $rg2Name = '20533C0102-LabRG' # resource group name to which you will move the resource $resName = 'AdatumRT01' # Identify the location of the resource group containing the r...
PowerShellCorpus/Github/MicrosoftLearning_20533-ImplementingMicrosoftAzureInfrastructureSolutions/Allfiles/Labfiles/Lab01/Starter/Start-AzureRm20553C01Lab.ps1
Start-AzureRm20553C01Lab.ps1
# Lab 01 Starter script - Using Azure PowerShell # Variables $rg1Name = '20533C0101-LabRG' # test resource group created in Exercise 2 $rg2Name = '20533C0102-LabRG' # resource group name to which you will move the resource $resName = 'AdatumRT01' # Identify the location of the resource group containing the r...
PowerShellCorpus/Github/MicrosoftLearning_20533-ImplementingMicrosoftAzureInfrastructureSolutions/Allfiles/Labfiles/Lab01/Starter/Lab01Starter.ps1
Lab01Starter.ps1
#Lab 01 Starter script - Using Azure PowerShell #Variables $locName = "East US" #Azure datacenter location $rgName = "TestRG1" # test resource group created in Exercise 2 $newrgName ="TestWebRG" # resource group name to which the storage account will re-assigned $webappName = "TestWebAppMMDDYYAB" #storage accoun...
PowerShellCorpus/Github/MicrosoftLearning_20533-ImplementingMicrosoftAzureInfrastructureSolutions/Allfiles/Labfiles/Lab02/Starter/ConfigureARMGateway.ps1
ConfigureARMGateway.ps1
Login-AzureRmAccount Add-AzureAccount Show-SubscriptionARM Show-Subscription $rgNameARM = 'AdatumLabRG' $armVNet = 'HQ' $asmVNet = 'ADATUM-BRANCH-VNET' $gatewayASMName = 'gatewayASM' $gatewayARMName = 'gatewayARM' $prefixVNetASM = '192.168.0.0/16' $prefixVNetARM = '10.0.0.0/16' $sharedKey = '12345' $gat...
PowerShellCorpus/Github/MicrosoftLearning_20533-ImplementingMicrosoftAzureInfrastructureSolutions/Allfiles/Labfiles/Lab02/Starter/New-AzureRm20533C02Gateway.ps1
New-AzureRm20533C02Gateway.ps1
Login-AzureRmAccount Add-AzureAccount Show-SubscriptionARM Show-Subscription $rgNameARM = '20533C0201-LabRG' $armVNet = 'HQ' $asmVNet = 'ADATUM-BRANCH-VNET' $gatewayASMName = 'gatewayASM' $gatewayARMName = 'gatewayARM' $prefixVNetASM = '192.168.0.0/16' $prefixVNetARM = '10.0.0.0/16' $sharedKey = '12345' ...
PowerShellCorpus/Github/MicrosoftLearning_20533-ImplementingMicrosoftAzureInfrastructureSolutions/Allfiles/Labfiles/Lab02/Starter/New-AzureRm20533C02VM.ps1
New-AzureRm20533C02VM.ps1
# Set variables: $rgName = '20533C0201-LabRG' $vnetName = 'HQ' $vmName = 'ARMSrv2' # Store the start time $starttime = Get-Date Login-AzureRmAccount Add-AzureAccount Show-SubscriptionARM Show-Subscription $vnet = Get-AzureRmVirtualNetwork -Name $vnetName -ResourceGroupName $rgName $location = $vnet...
PowerShellCorpus/Github/MicrosoftLearning_20533-ImplementingMicrosoftAzureInfrastructureSolutions/Allfiles/Labfiles/Lab02/Starter/ConfigureClassicGateway.ps1
ConfigureClassicGateway.ps1
# Sign in to your Azure subscription Login-AzureRmAccount Show-SubscriptionARM # Retrieve the IP address used for the gateway in the ARM VNet and write down the address $GWARM= Get-AzureRMPublicIpAddress | ?{$_.ResourceGroupName -eq "AdatumLabRG" -and $_.Name -like "20533lab02pip*"} Write-Host "Write down ...
PowerShellCorpus/Github/MicrosoftLearning_20533-ImplementingMicrosoftAzureInfrastructureSolutions/Allfiles/Labfiles/Lab02/Starter/CreateVirtualMachine.ps1
CreateVirtualMachine.ps1
# Set variables: $rgName = "AdatumLabRG" $vnetName = "HQ" $vmName = "ARMSrv2" # Store the start time $starttime = Get-Date Login-AzureRmAccount Add-AzureAccount Show-SubscriptionARM Show-Subscription $vnet = Get-AzureRmVirtualNetwork -Name $vnetName -ResourceGroupName $rgName $location = $vnet.Loca...
PowerShellCorpus/Github/MicrosoftLearning_20533-ImplementingMicrosoftAzureInfrastructureSolutions/Allfiles/Labfiles/Lab06/Starter/Setup-20533C06Lab.ps1
Setup-20533C06Lab.ps1
Param( [Parameter(Mandatory=$true,Position=1)] [String]$location ) Set-Location -Path 'D:\Labfiles\Lab06\Starter' $resourceGroup = New-AzureRmResourceGroup -Name '20533C0601-LabRG' -Location $location New-AzureRmResourceGroupDeployment -Name 20533CLab06Setup -ResourceGroupName $resourceGroup.ResourceG...
PowerShellCorpus/Github/MicrosoftLearning_20533-ImplementingMicrosoftAzureInfrastructureSolutions/Allfiles/Labfiles/Lab06/Starter/ExampleCommands.ps1
ExampleCommands.ps1
#Record your Storage account name here: #Record your primary access key here: #This code uses AzCopy to copy .png files to the asset-images container in your storage account AzCopy /Dest:https://<your storage account>.blob.core.windows.net/asset-images /destkey:<your primary access key> /Source:asset-ima...
PowerShellCorpus/Github/MicrosoftLearning_20533-ImplementingMicrosoftAzureInfrastructureSolutions/Allfiles/Labfiles/Lab06/Starter/New-FileShare_20533C06.ps1
New-FileShare_20533C06.ps1
$storageAccountName = '<your_storage_account_name>' $shareName = 'assets' $directoryName = 'invoices' $resourceGroupName = '20533C0602-LabRG' # Get the storage account key and context $storageAccountKey = (Get-AzureRmStorageAccountKey -StorageAccountName $storageAccountName -ResourceGroupName $resourceGroupName)...
PowerShellCorpus/Github/MicrosoftLearning_20533-ImplementingMicrosoftAzureInfrastructureSolutions/Allfiles/Labfiles/Lab06/Starter/FileShare.ps1
FileShare.ps1
$storageAccountName = "<your_storage_account_name>" $shareName = "assets" $folderName = "invoices" # Get the storage account key and context $storageAccountKey = (Get-AzureStorageKey -StorageAccountName $storageAccountName).Primary $ctx = New-AzureStorageContext -StorageAccountName $storageAccountName -StorageAc...
PowerShellCorpus/Github/MicrosoftLearning_20533-ImplementingMicrosoftAzureInfrastructureSolutions/Allfiles/Labfiles/Lab03/Starter/CreateRmVM.ps1
CreateRmVM.ps1
# This script creates a new IaaS v2 VM # Sign in to Azure Write-Host "Signing in to Azure..." -ForegroundColor Green Login-AzureRmAccount Show-SubscriptionARM # Assign variables $rgName = "ResDevRG" $vnetName = "HQ-VNET" $subnetName = "Database" $vmName = "ResDevDB2" $vmSize = "Standard_A1" ...
PowerShellCorpus/Github/MicrosoftLearning_20533-ImplementingMicrosoftAzureInfrastructureSolutions/Allfiles/Labfiles/Lab03/Starter/New-AzureRm20533C03VM.ps1
New-AzureRm20533C03VM.ps1
# This script creates a new IaaS v2 VM # Sign in to Azure Write-Host "Signing in to Azure..." -ForegroundColor Green Login-AzureRmAccount Show-SubscriptionARM # Assign variables $rgName = "20533C0301-LabRG" $vnetName = "HQ-VNET" $subnetName = "Database" $vmName = "ResDevDB2" $vmSize = "Standard...
PowerShellCorpus/Github/MicrosoftLearning_20533-ImplementingMicrosoftAzureInfrastructureSolutions/Allfiles/Labfiles/Lab03/Starter/ResDev/ResDevWindowsDeploy.ps1
ResDevWindowsDeploy.ps1
$deploymentName = "WebTierDeployment" $templateFile = "D:\Labfiles\Lab03\Starter\ResDev\ResDevWindowsDeployTemplate.json" $rgName = "20533C0301-LabRG" New-AzureRmResourceGroupDeployment -Name $deploymentName -ResourceGroupName $rgName -TemplateFile $templateFile
PowerShellCorpus/Github/MicrosoftLearning_20533-ImplementingMicrosoftAzureInfrastructureSolutions/Allfiles/Labfiles/Lab03/Starter/ResDev/ResDevLinuxDeploy/ResDevLinuxDeploy/Scripts/Deploy-AzureResourceGroup.ps1
Deploy-AzureResourceGroup.ps1
#Requires -Version 3.0 #Requires -Module AzureRM.Resources #Requires -Module Azure.Storage Param( [string] [Parameter(Mandatory=$true)] $ResourceGroupLocation, [string] $ResourceGroupName = 'ResDevLinuxDeploy', [switch] $UploadArtifacts, [string] $StorageAccountName, [string] $StorageAccou...
PowerShellCorpus/Github/MicrosoftLearning_20533-ImplementingMicrosoftAzureInfrastructureSolutions/Allfiles/Labfiles/Lab11/Solution/New-StorageAndVMs.ps1
New-StorageAndVMs.ps1
workflow New-StorageAndVMs { $Credential = Get-AutomationPSCredential -Name 'DefaultAzureCredential' $SubscriptionName = Get-AutomationVariable -Name 'SubscriptionName' $AdminName = Get-AutomationVariable -Name 'AdminName' $AdminPassword = Get-AutomationVariable -Name 'AdminPassword' $Locatio...
PowerShellCorpus/Github/MicrosoftLearning_20533-ImplementingMicrosoftAzureInfrastructureSolutions/Allfiles/Labfiles/Lab11/Starter/Stop-AzureRm20533C11VMs.ps1
Stop-AzureRm20533C11VMs.ps1
workflow Stop-AzureVMs-Workflow { $c = Get-AutomationConnection -Name 'AzureRunAsConnection' Add-AzureRmAccount -ServicePrincipal -Tenant $c.TenantID -ApplicationID $c.ApplicationID -CertificateThumbprint $c.CertificateThumbprint $vm0 = Get-AutomationVariable -Name 'VM0' $vm1 = Get-AutomationVariable -Name '...
PowerShellCorpus/Github/MicrosoftLearning_20533-ImplementingMicrosoftAzureInfrastructureSolutions/Allfiles/Labfiles/Lab11/Starter/Setup-20533C11Lab.ps1
Setup-20533C11Lab.ps1
Param( [Parameter(Mandatory=$true,Position=1)] [String]$location ) Set-Location -Path 'D:\Labfiles\Lab10\Starter' $resourceGroup = New-AzureRmResourceGroup -Name '20533C1101-LabRG' -Location $location New-AzureRmResourceGroupDeployment -Name 20533CLab11Setup -ResourceGroupName $resourceGroup.ResourceG...
PowerShellCorpus/Github/MicrosoftLearning_20533-ImplementingMicrosoftAzureInfrastructureSolutions/Allfiles/Labfiles/Lab04/Starter/DeployAzureDSC.ps1
DeployAzureDSC.ps1
Login-AzureRmAccount Show-SubscriptionARM $resourceGroupName = '20533C0401-LabRG' $saPrefix = 'sa20533c04l' $saType = 'Standard_LRS' $resourceGroup = Get-AzureRmResourceGroup -Name $resourceGroupName $storageAccount = Get-AzureRmStorageAccount -ResourceGroupName $resourceGroupName If (!($storageAccount))...
PowerShellCorpus/Github/MicrosoftLearning_20533-ImplementingMicrosoftAzureInfrastructureSolutions/Allfiles/Labfiles/Lab04/Starter/IISInstall.ps1
IISInstall.ps1
Configuration IISInstall { Node localhost { WindowsFeature IIS { Name = "Web-Server" Ensure = "Present" } } }
PowerShellCorpus/Github/MicrosoftLearning_20533-ImplementingMicrosoftAzureInfrastructureSolutions/Allfiles/Demofiles/Mod01/UsingAzurePowerShell.ps1
UsingAzurePowerShell.ps1
#Mod 01 Demo script - Using Azure PowerShell #Update the following variables to reflect your choices. #You must change the value for $saName $locName = "East US" #Azure datacenter location $rgName = "TestRG1" #resource group name $saName = "<enter unique name here>" #storage account name. This must be all lower...
PowerShellCorpus/Github/MicrosoftLearning_20533-ImplementingMicrosoftAzureInfrastructureSolutions/Allfiles/Demofiles/Mod04/DeployAzureDSC.ps1
DeployAzureDSC.ps1
Login-AzureRmAccount Show-SubscriptionARM $resourceGroupName = '20533C0401-DemoRG' $saPrefix = 'sa20533c04d' $saType = 'Standard_LRS' $resourceGroup = Get-AzureRmResourceGroup -Name $resourceGroupName $storageAccount = Get-AzureRmStorageAccount -ResourceGroupName $resourceGroupName If (!($storageAccount)...
PowerShellCorpus/Github/MicrosoftLearning_20533-ImplementingMicrosoftAzureInfrastructureSolutions/Allfiles/Demofiles/Mod04/IISInstall.ps1
IISInstall.ps1
Configuration IISInstall { Node localhost { WindowsFeature IIS { Name = "Web-Server" Ensure = "Present" } } }
PowerShellCorpus/Github/MicrosoftLearning_20533-ImplementingMicrosoftAzureInfrastructureSolutions/Allfiles/Demofiles/Mod08/SmallCloudService/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/MicrosoftLearning_20533-ImplementingMicrosoftAzureInfrastructureSolutions/Allfiles/Demofiles/Mod08/SmallCloudService/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/MicrosoftLearning_20533-ImplementingMicrosoftAzureInfrastructureSolutions/Allfiles/Demofiles/Mod08/SmallCloudService/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/MicrosoftLearning_20533-ImplementingMicrosoftAzureInfrastructureSolutions/Allfiles/Demofiles/Mod08/SmallCloudService/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 # SIG # Begin signature block # MIIavQYJKoZIhvcNAQcCoIIarjCCGqoCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB # gjcCAQSgWzBZMDQGCisGAQQ...
PowerShellCorpus/Github/MicrosoftLearning_20533-ImplementingMicrosoftAzureInfrastructureSolutions/Allfiles/Demofiles/Mod08/SmallCloudService/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/MicrosoftLearning_20533-ImplementingMicrosoftAzureInfrastructureSolutions/Allfiles/Demofiles/Mod08/SmallCloudService/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/MicrosoftLearning_20533-ImplementingMicrosoftAzureInfrastructureSolutions/Allfiles/Demofiles/Mod08/SmallCloudService/packages/Newtonsoft.Json.6.0.3/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/MicrosoftLearning_20533-ImplementingMicrosoftAzureInfrastructureSolutions/Allfiles/Demofiles/Mod06/Upload-Blobs_20533C06.ps1
Upload-Blobs_20533C06.ps1
$storageAccountName = '<your_storage_account_name>' $containerName = 'demo-container' # Find the folder where this script is saved $thisFolder = Split-Path -Parent $MyInvocation.MyCommand.Definition # The local source subfolder $sourceFolder = "$thisFolder\data" # Get storage account key and context $stora...
PowerShellCorpus/Github/MicrosoftLearning_20533-ImplementingMicrosoftAzureInfrastructureSolutions/Allfiles/Demofiles/Mod06/UploadBlobs.ps1
UploadBlobs.ps1
$storageAccountName = "<your_storage_account_name>" $containerName = "demo-container" # Find the folder where this script is saved $thisfolder = Split-Path -parent $MyInvocation.MyCommand.Definition # The local source subfolder $sourcefolder = "$thisfolder\data" # Get storage account key and context $stora...
PowerShellCorpus/Github/MicrosoftLearning_20533-ImplementingMicrosoftAzureInfrastructureSolutions/Allfiles/Demofiles/Mod05/AdatumWebsite/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/MicrosoftLearning_20533-ImplementingMicrosoftAzureInfrastructureSolutions/Allfiles/Demofiles/Mod05/AdatumWebsite/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/MicrosoftLearning_20533-ImplementingMicrosoftAzureInfrastructureSolutions/Allfiles/Demofiles/Mod05/AdatumWebsite/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/MicrosoftLearning_20533-ImplementingMicrosoftAzureInfrastructureSolutions/Allfiles/Demofiles/Mod05/AdatumWebsite/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 # SIG # Begin signature block # MIIavQYJKoZIhvcNAQcCoIIarjCCGqoCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB # gjcCAQSgWzBZMDQGCisGAQQ...
PowerShellCorpus/Github/MicrosoftLearning_20533-ImplementingMicrosoftAzureInfrastructureSolutions/Allfiles/Demofiles/Mod05/AdatumWebsite/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/MicrosoftLearning_20533-ImplementingMicrosoftAzureInfrastructureSolutions/Allfiles/Demofiles/Mod05/AdatumWebsite/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/MicrosoftLearning_20533-ImplementingMicrosoftAzureInfrastructureSolutions/Build/pandoc.ps1
pandoc.ps1
function GetVersionNumber{ $output = $null do { $output = Read-Host 'What is the current version?' } while (!$output) return $output } function ZipFiles{ param($filesDirectory, $docsDirectory, $versionData) $filesOutput = "allfiles-v" + $versionData + ".zip" $docsOut...
PowerShellCorpus/Github/mdehaas_PowerUpdate/script.xml.ps1
script.xml.ps1
<?xml version="1.0" encoding="UTF-8"?> <application> <version>0.1</version> <script><![CDATA[ <# # Begin Script Block #> Get-Process <# # End Script Block #> ]]></script> </application>
PowerShellCorpus/Github/mdehaas_PowerUpdate/bootstrap.ps1
bootstrap.ps1
####################################################################### #Aeolus Server Management Bootstrap #2013.06.03 Marcel de Haas #====================================================================== # CHANGELOG #---------------------------------------------------------------------- # 2013.08.12 | MdH | ...
PowerShellCorpus/Github/adilamean_CSC_Powershell/Workflow-Demo.ps1
Workflow-Demo.ps1
<# Demo Script for Git Workflow Demo #> #Here's the original script code Write-Host "This is a Git workflow demo" Get-WmiObject -Class Win32_ComputerSystem | Select Name, Manufacturer, Model, UserName Write-Host "Ran Command 2"
PowerShellCorpus/Github/adilamean_CSC_Powershell/InstallSoftware.ps1
InstallSoftware.ps1
$source = 'C:\bPowerTemp' If (!(Test-Path -Path $source -PathType Container)) {New-Item -Path $source -ItemType Directory | Out-Null} $packages = @( @{title='7zip Extractor';url='http://downloads.sourceforge.net/sevenzip/7z920-x64.msi';Arguments=' /qn';Destination=$source}, @{title='Putty 0.63';url='http://...
PowerShellCorpus/Github/adilamean_CSC_Powershell/DeploymentOUBased.ps1
DeploymentOUBased.ps1
param([int]$FreeSpace, [string]$AppName, [string]$RegHive, [string]$Region, [string]$ApplyOUExcl); $instance="CSCDBSNDC003" $database='invdb' $userid='inventory' $password='inventory' $connectionString="User ID=$userid;Password=$password;Initial Catalog=$database;Data Source=$instance" $target ="select dist...
PowerShellCorpus/Github/haider-87_SafeguardClassifications/src/SafeguardClassifications/Properties/PublishProfiles/SafeguardClassifications - Web Deploy-publish.ps1
SafeguardClassifications - Web Deploy-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'] = '21dca6d8-0b84-466...
PowerShellCorpus/Github/nandananr_SampleWebApiCore/TA.WebApi.Sample/Properties/PublishProfiles/Deploy-publish.ps1
Deploy-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'] = 'aa1fa32f-6600-47b...
PowerShellCorpus/Github/rudyleiva93_File-Monitor-Script/FileWatcher.ps1
FileWatcher.ps1
param( [string] $rootFolder = "C:\Users\rleiva\Documents\GitHub\File-Monitor-Script\example", [string] $filter = "*.*" ) $path = resolve-path $rootFolder -errorAction Stop write-host "Monitoring $path for changes" $fsw = new-object System.IO.FileSystemWatcher $path, $filter $fsw.IncludeSubdirectories = $tr...
PowerShellCorpus/Github/aimtheory_powershell-sql2012/sql2012-install.ps1
sql2012-install.ps1
# ==================================== AppD Properties ========================================= $AGTSVCACCOUNT = "NT AUTHORITY\SYSTEM" #$pr_AGTSVCACCOUNT $AGTSVCSTARTUPTYPE = "Manual" #$pr_AGTSVCSTARTUPTYPE #$ARCHIVEDISKMOUNTPOINT = $pr_ARCHIVEDISKMOUNTPOINT #$BINARYDISKMOUNTPOINT = $pr_BINARYDISKMOUNTPOINT $BR...
PowerShellCorpus/Github/machclark_sales/gitstuff/mvc_ef_small/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/machclark_sales/gitstuff/mvc_ef_small/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/machclark_sales/gitstuff/mvc_ef_small/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/machclark_sales/gitstuff/mvc_ef_small/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/machclark_sales/gitstuff/mvc_ef_small/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/machclark_sales/gitstuff/mvc_ef_small/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/machclark_sales/gitstuff/mvc_ef_small/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/machclark_sales/gitstuff/mvc_ef_small/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/machclark_sales/gitstuff/mvc_ef_small/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/mmpyro_PsBuild/test.ps1
test.ps1
Import-Module .\PSBuild.psd1 -Force Import-Module .\MsBuild.psd1 -Force Import-Module .\SonarQube.psm1 -Force $psBuild = CreatePsBuild $msBuild = CreateMsBuild $sonarQube = CreateSonarScanner('E:\sonar-scanner-msbuild-2.2.0.24') $projectDir = 'E:\Projects\aspnet_core\test' Push-Location cd $projectDir ...
PowerShellCorpus/Github/slalomny_sp-powershell/Provisioning/sf.upload.ps1
sf.upload.ps1
param( [string]$SiteUrl, [string]$LocalRootPath, #E:\GIT\Slalom-Provisioning\content [string]$TargetURL #/Style Library/JnJ ) $ver = $host | Select-Object version if ($ver.Version.Major -gt 1) { $host.Runspace.ThreadOptions = "ReuseThread" } #Import-Module SharePointPnPPowerShellOnline ...
PowerShellCorpus/Github/Ivand95_Gestion-de-Sitios-Web/TuEmpleo/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/Ivand95_Gestion-de-Sitios-Web/TuEmpleo/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/Ivand95_Gestion-de-Sitios-Web/TuEmpleo/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/Ivand95_Gestion-de-Sitios-Web/TuEmpleo/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/Ivand95_Gestion-de-Sitios-Web/TuEmpleo/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/Ivand95_Gestion-de-Sitios-Web/TuEmpleo/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/Ivand95_Gestion-de-Sitios-Web/TuEmpleo/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/Ivand95_Gestion-de-Sitios-Web/TuEmpleo/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/Ivand95_Gestion-de-Sitios-Web/TuEmpleo/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/Ivand95_Gestion-de-Sitios-Web/TuEmpleo/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/Ivand95_Gestion-de-Sitios-Web/TuEmpleo/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/Ivand95_Gestion-de-Sitios-Web/TuEmpleo/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/ericrobertn_Get_Stale_Computers/Get_stale_computers.ps1
Get_stale_computers.ps1
Param([string]$Computername = $env:COMPUTERNAME) $head = @" <Title>Stale Computers</Title> <style> Body { font-family: "Tahoma", "Arial", "Helvetica", sans-serif; background-color:#FFFFFF; } table { border-collapse:collapse; width:60% } td { font-size:12pt; border:1px #00008c solid; padding:5px 5p...
PowerShellCorpus/Github/TimMurphy_BoxConfigurations/timmurphy-2010/Set-ChocolateyPackages.ps1
Set-ChocolateyPackages.ps1
# This file can be run as is but it's usually better to run with Boxstarter $ErrorActionPreference = "Stop" $WarningPreference = "SilentlyContinue" $VerbosePreference = "SilentlyContinue" Function Assert-IsAdministrator { $currentPrincipal = New-Object Security.Principal.WindowsPrincipal([Security.Princip...
PowerShellCorpus/Github/TimMurphy_BoxConfigurations/timmurphy-2010/Invoke-WindowsUpdate.ps1
Invoke-WindowsUpdate.ps1
# This file can be run as is but it's usually better to run with Boxstarter $ErrorActionPreference = "Stop" $WarningPreference = "SilentlyContinue" $VerbosePreference = "SilentlyContinue" Function Assert-IsAdministrator { $currentPrincipal = New-Object Security.Principal.WindowsPrincipal([Security.Princip...
PowerShellCorpus/Github/TimMurphy_BoxConfigurations/timmurphy-2010/Invoke-Boxstarter.ps1
Invoke-Boxstarter.ps1
param ( [parameter(Mandatory=$true)] [ValidateNotNullOrEmpty()] [ValidateScript({If (Test-Path $_ -PathType Leaf) {Return $true} throw "Cannot find '$_'."})] [string] $BoxstarterPackagePath ) $ErrorActionPreference = "Stop" $WarningPreference = "SilentlyContinue" $VerbosePreference = "Silentl...
PowerShellCorpus/Github/TimMurphy_BoxConfigurations/timmurphy-2010/Boxstarter.ps1
Boxstarter.ps1
param ( [Parameter(Mandatory=$true)] [string] $boxstarterScript ) If (!(Test-Path $boxstarterScript)) { throw "Cannot find boxstarterScript '$boxstarterScript'." } # Full path is required when boxstarter decides to reboot machine $boxstarterScript = Resolve-Path $boxstarterScript Remove...
PowerShellCorpus/Github/BradyNas_powershell/first_ps_script.ps1
first_ps_script.ps1
$myFiles = get-childitem $env:HOMEPATH $myFiles
PowerShellCorpus/Github/jasonbrisbin_conductor/conductor.ps1
conductor.ps1
write-host "Hello World"
PowerShellCorpus/Github/Haimanot1989_ASP.Net/AutomatedTellerMachine/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/Haimanot1989_ASP.Net/AutomatedTellerMachine/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...