full_path
stringlengths
31
232
filename
stringlengths
4
167
content
stringlengths
0
48.3M
PowerShellCorpus/Github/openqbit_ExtSystems-Weather/OpenQbit.WeatherSystem.git/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/openqbit_ExtSystems-Weather/OpenQbit.WeatherSystem.git/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/openqbit_ExtSystems-Weather/OpenQbit.WeatherSystem.git/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/openqbit_ExtSystems-Weather/OpenQbit.WeatherSystem.git/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/openqbit_ExtSystems-Weather/OpenQbit.WeatherSystem.git/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/openqbit_ExtSystems-Weather/OpenQbit.WeatherSystem.git/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/hahabrobro_PrintEOrder/PrintEorder/packages/EntityFramework.5.0.0/tools/init.ps1
init.ps1
param($installPath, $toolsPath, $package, $project) $importedModule = Get-Module | ?{ $_.Name -eq 'EntityFramework' } if ($PSVersionTable.PSVersion -ge (New-Object Version @( 3, 0 ))) { $thisModuleManifest = 'EntityFramework.PS3.psd1' } else { $thisModuleManifest = 'EntityFramework.psd1' } $thisModule...
PowerShellCorpus/Github/hahabrobro_PrintEOrder/PrintEorder/packages/EntityFramework.5.0.0/tools/install.ps1
install.ps1
param($installPath, $toolsPath, $package, $project) function Invoke-ConnectionFactoryConfigurator($assemblyPath, $project) { $appDomain = [AppDomain]::CreateDomain( 'EntityFramework.PowerShell', $null, (New-Object System.AppDomainSetup -Property @{ ShadowCopyFiles = 'true' })) ...
PowerShellCorpus/Github/divayht_DeployProject/deploy.ps1
deploy.ps1
None
PowerShellCorpus/Github/cyberbo_PowershellTest/SPLAReports.ps1
SPLAReports.ps1
Get-ADUser -Filter * -Properties name,DistinguishedName, memberof | Where-Object {[string]$_.memberof -notmatch "SPLA"} | Measure-Object
PowerShellCorpus/Github/mikefrobbins_ActiveDirectory/MrAD/Compare-MrADGroup.ps1
Compare-MrADGroup.ps1
#Requires -Version 3.0 -Modules ActiveDirectory function Compare-MrADGroup { <# .SYNOPSIS Compares the groups of a the specified Active Directory users. .DESCRIPTION Compare-MrADGroup is a function that retrieves a list of all the Active Directory groups that the specified Active Directory users ...
PowerShellCorpus/Github/mikefrobbins_ActiveDirectory/MrAD/Get-MrADLockOutInfo.ps1
Get-MrADLockOutInfo.ps1
#Requires -Version 3.0 function Get-MrADLockOutInfo { <# .SYNOPSIS Get-MrADLockOutInfo returns a list of users who were locked out in Active Directory. .DESCRIPTION Get-MrADLockOutInfo is an advanced function that returns a list of users who were locked out in Active Directory by querying ...
PowerShellCorpus/Github/mikefrobbins_ActiveDirectory/MrAD/Get-MrADUser.ps1
Get-MrADUser.ps1
#Requires -Version 3.0 function Get-MrADUser { [CmdletBinding()] param( [Parameter(Mandatory, ValueFromPipeline, ValueFromPipelineByPropertyName)] [String[]]$UserName ) PROCESS { foreach ($user in $UserName){ ...
PowerShellCorpus/Github/Sergej-Popov_JustCheckWhatYouEat/PublishScripts/Publish-WebApplicationWebsite.ps1
Publish-WebApplicationWebsite.ps1
#Requires -Version 3.0 <# .SYNOPSIS Creates and deploys a Microsoft Azure Website for a Visual Studio web project. For more detailed documentation go to: http://go.microsoft.com/fwlink/?LinkID=394471 .EXAMPLE PS C:\> .\Publish-WebApplicationWebSite.ps1 ` -Configuration .\Configurations\WebApplication1-WAWS-...
PowerShellCorpus/Github/devblackops_PasswordState/module.psdeploy.ps1
module.psdeploy.ps1
if($ENV:BHProjectName -and $ENV:BHProjectName.Count -eq 1) { Deploy Module { By PSGalleryModule { FromSource $ENV:BHProjectName To PSGallery WithOptions @{ ApiKey = $ENV:PSGalleryApiKey } } } }
PowerShellCorpus/Github/devblackops_PasswordState/psake.ps1
psake.ps1
properties { $projectRoot = $ENV:BHProjectPath if(-not $projectRoot) { $projectRoot = $PSScriptRoot } $sut = "$projectRoot\PasswordState" $manifest = "$sut\PasswordState.psd1" $tests = "$projectRoot\Tests" $psVersion = $PSVersionTable.PSVersion.Major } task default -d...
PowerShellCorpus/Github/devblackops_PasswordState/build.ps1
build.ps1
[cmdletbinding()] param( [string[]]$Task = 'default' ) function Resolve-Module { [Cmdletbinding()] param ( [Parameter(Mandatory, ValueFromPipeline)] [string[]]$Name ) Process { foreach ($ModuleName in $Name) { $Module = Get-Module -Name $ModuleName...
PowerShellCorpus/Github/devblackops_PasswordState/PasswordState/Private/_SetCertPolicy.ps1
_SetCertPolicy.ps1
<# Copyright 2015 Brandon Olin 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 required by applicable law or agreed to in writing, so...
PowerShellCorpus/Github/devblackops_PasswordState/PasswordState/Private/_GetDefault.ps1
_GetDefault.ps1
<# Copyright 2015 Brandon Olin 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 required by applicable law or agreed to in writing, so...
PowerShellCorpus/Github/devblackops_PasswordState/PasswordState/Public/Import-PasswordStateApiKey.ps1
Import-PasswordStateApiKey.ps1
<# Copyright 2015 Brandon Olin 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 required by applicable law or agreed to in writing, so...
PowerShellCorpus/Github/devblackops_PasswordState/PasswordState/Public/Get-PasswordStateApiKey.ps1
Get-PasswordStateApiKey.ps1
<# Copyright 2015 Brandon Olin 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 required by applicable law or agreed to in writing, so...
PowerShellCorpus/Github/devblackops_PasswordState/PasswordState/Public/New-PasswordStatePassword.ps1
New-PasswordStatePassword.ps1
#requires -Version 3 <# Copyright 2015 Brandon Olin 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 required by ...
PowerShellCorpus/Github/devblackops_PasswordState/PasswordState/Public/New-PasswordStateRandomPassword.ps1
New-PasswordStateRandomPassword.ps1
<# Copyright 2015 Brandon Olin 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 required by applicable law or agreed to in writing, so...
PowerShellCorpus/Github/devblackops_PasswordState/PasswordState/Public/Get-PasswordStateListPasswords.ps1
Get-PasswordStateListPasswords.ps1
<# Copyright 2015 Brandon Olin 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 required by applicable law or agreed to in writing, so...
PowerShellCorpus/Github/devblackops_PasswordState/PasswordState/Public/Find-PasswordStatePassword.ps1
Find-PasswordStatePassword.ps1
<# Copyright 2015 Brandon Olin 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 required by applicable law or agreed to in writing, so...
PowerShellCorpus/Github/devblackops_PasswordState/PasswordState/Public/Get-PasswordStatePassword.ps1
Get-PasswordStatePassword.ps1
<# Copyright 2015 Brandon Olin 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 required by applicable law or agreed to in writing, so...
PowerShellCorpus/Github/devblackops_PasswordState/PasswordState/Public/Initialize-PasswordStateRepository.ps1
Initialize-PasswordStateRepository.ps1
<# Copyright 2015 Brandon Olin 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 required by applicable law or agreed to in writing, so...
PowerShellCorpus/Github/devblackops_PasswordState/PasswordState/Public/Set-PasswordStateDocument.ps1
Set-PasswordStateDocument.ps1
#requires -Version 3 <# Copyright 2015 Brandon Olin 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 required by ...
PowerShellCorpus/Github/devblackops_PasswordState/PasswordState/Public/Get-PasswordStateAllLists.ps1
Get-PasswordStateAllLists.ps1
<# Copyright 2015 Brandon Olin 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 required by applicable law or agreed to in writing, so...
PowerShellCorpus/Github/devblackops_PasswordState/PasswordState/Public/Get-PasswordStateList.ps1
Get-PasswordStateList.ps1
<# Copyright 2015 Brandon Olin 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 required by applicable law or agreed to in writing, so...
PowerShellCorpus/Github/devblackops_PasswordState/PasswordState/Public/Export-PasswordStateApiKey.ps1
Export-PasswordStateApiKey.ps1
<# Copyright 2015 Brandon Olin 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 required by applicable law or agreed to in writing, so...
PowerShellCorpus/Github/devblackops_PasswordState/PasswordState/Public/Get-PasswordStatePasswordHistory.ps1
Get-PasswordStatePasswordHistory.ps1
<# Copyright 2015 Brandon Olin 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 required by applicable law or agreed to in writing, so...
PowerShellCorpus/Github/devblackops_PasswordState/PasswordState/Public/Get-PasswordStateAllPasswords.ps1
Get-PasswordStateAllPasswords.ps1
<# Copyright 2015 Brandon Olin 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 required by applicable law or agreed to in writing, so...
PowerShellCorpus/Github/devblackops_PasswordState/PasswordState/Public/Set-PasswordStatePassword.ps1
Set-PasswordStatePassword.ps1
<# Copyright 2015 Brandon Olin 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 required by applicable law or agreed to in writing, so...
PowerShellCorpus/Github/devblackops_PasswordState/Tests/Manifest.Tests.ps1
Manifest.Tests.ps1
$moduleName = 'PasswordState' $here = Split-Path -Parent $MyInvocation.MyCommand.Path $root = Split-Path -Path $here -Parent $modulePath = Join-Path -Path $root -ChildPath $moduleName $manifestPath = Join-Path -Path $modulePath -Child "$moduleName.psd1" $changelogPath = Join-Path -Path $root -Child "CHANGELOG.md" ...
PowerShellCorpus/Github/devblackops_PasswordState/Tests/Help.tests.ps1
Help.tests.ps1
# Taken with love from @juneb_get_help (https://raw.githubusercontent.com/juneb/PesterTDD/master/Module.Help.Tests.ps1) $moduleName = 'PasswordState' $here = Split-Path -Parent $MyInvocation.MyCommand.Path $root = Split-Path -Path $here -Parent $modulePath = Join-Path -Path $root -ChildPath $moduleName $module...
PowerShellCorpus/Github/devblackops_PasswordState/Tests/Meta.Tests.ps1
Meta.Tests.ps1
Set-StrictMode -Version latest # Make sure MetaFixers.psm1 is loaded - it contains Get-TextFilesList Import-Module -Name (Join-Path -Path $PSScriptRoot -ChildPath 'MetaFixers.psm1') -Verbose:$false -Force $projectRoot = $ENV:BHProjectPath if(-not $projectRoot) { $projectRoot = $PSScriptRoot } Describe ...
PowerShellCorpus/Github/noodlefrenzy_PowershellMusicHelpers/DrmMover/merge-to-dest.ps1
merge-to-dest.ps1
# # merge_to_dest.ps1 # param( [Parameter(Mandatory=$True,Position=0)] [string]$dest, [Parameter(mandatory=$True, position=1, ValueFromRemainingArguments=$true)]$srcs, [switch]$copyDRM, [switch]$overwrite, [switch]$convert, [switch]$dryrun ) if ($srcs.Length -eq 0) { Write-Error "Must prov...
PowerShellCorpus/Github/noodlefrenzy_PowershellMusicHelpers/DrmMover/convert-wma-mp3.ps1
convert-wma-mp3.ps1
# # convert_wma_mp3.ps1 # $ffmpeg = 'E:\dev\tools\ffmpeg\bin\ffmpeg.exe' $wmplayer = New-Object -ComObject "WMPlayer.OCX" $rootDir = $args[0] $destDir = $args[1] $dirs = ls $rootDir -recurse | ? { $_.Name -like "*.wma" } | sort -unique -property DirectoryName foreach ($dir in $dirs) { $sub = $dir.DirectoryN...
PowerShellCorpus/Github/noodlefrenzy_PowershellMusicHelpers/DrmMover/move-drm-dirs.ps1
move-drm-dirs.ps1
# # Script.ps1 # $rootDir = $args[0] $destDir = $args[1] $wmplayer = New-Object -ComObject "WMPlayer.OCX" $dirs = ls $rootDir -recurse | ? { $_.Name -like "*.wma" -and [bool]::Parse($wmplayer.newMedia($_.FullName).getItemInfo("Is_Protected")) } | sort -unique -property DirectoryName foreach ($dir in $dirs) { $...
PowerShellCorpus/Github/rdtechie_ISESteroidsCustomizations/Microsoft.PowerShellISE_Profile.ps1
Microsoft.PowerShellISE_Profile.ps1
Set-Location C:\ Clear-Host Start-Steroids function prompt { $err = !$? $psISE.CurrentPowerShellTab.DisplayName = "PoSh # $($tabs.IndexOf($curtab))" $Host.UI.RawUI.WindowTitle = 'No events watched currently! Update Calendar.csv!' $Calendar = Import-Csv (Join-Path (Split-Path $profile) C...
PowerShellCorpus/Github/rdtechie_ISESteroidsCustomizations/ISESteroids-Custom-Command-Console.ps1
ISESteroids-Custom-Command-Console.ps1
Set-Location C:\ Clear-Host Start-Steroids function prompt { $err = !$? $psISE.CurrentPowerShellTab.DisplayName = "PoSh # $($tabs.IndexOf($curtab))" $Host.UI.RawUI.WindowTitle = 'No events watched currently! Update Calendar.csv!' $Calendar = Import-Csv (Join-Path (Split-Path $profile) C...
PowerShellCorpus/Github/rdtechie_ISESteroidsCustomizations/ISESteroids-Add-MyCommands.ps1
ISESteroids-Add-MyCommands.ps1
# these lines will first add a submenu, then add commands to it: $parent = $psise.CurrentPowerShellTab.AddOnsMenu.SubMenus.Add('Exchange', $null, $null) # this line will add a new custom command without a keyboard shortcut: $parent.Submenus.Add('Exchange PSRemoting', { $exCredentials = (Get-Credential ...
PowerShellCorpus/Github/kaizer04_BetSystem/BetSystem/packages/jQuery.2.1.1/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/kaizer04_BetSystem/BetSystem/packages/jQuery.2.1.1/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/kaizer04_BetSystem/BetSystem/packages/jQuery.2.1.1/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/kaizer04_BetSystem/BetSystem/packages/Glimpse.AspNet.1.9.2/tools/uninstall.ps1
uninstall.ps1
param($installPath, $toolsPath, $package, $project) Unregister-GlimpseExtension $package
PowerShellCorpus/Github/kaizer04_BetSystem/BetSystem/packages/Glimpse.AspNet.1.9.2/tools/install.ps1
install.ps1
param($installPath, $toolsPath, $package, $project) Register-GlimpseExtension $package $DTE
PowerShellCorpus/Github/kaizer04_BetSystem/BetSystem/packages/Glimpse.1.8.6/tools/init.ps1
init.ps1
param($installPath, $toolsPath, $package) Import-Module (Join-Path $toolsPath glimpse.psm1)
PowerShellCorpus/Github/kaizer04_BetSystem/BetSystem/packages/Glimpse.1.8.6/tools/uninstall.ps1
uninstall.ps1
param($installPath, $toolsPath, $package, $project) Unregister-GlimpseExtension $package
PowerShellCorpus/Github/kaizer04_BetSystem/BetSystem/packages/Glimpse.1.8.6/tools/install.ps1
install.ps1
param($installPath, $toolsPath, $package, $project) Register-GlimpseExtension $package $DTE
PowerShellCorpus/Github/kaizer04_BetSystem/BetSystem/packages/Glimpse.Mvc5.1.5.3/tools/uninstall.ps1
uninstall.ps1
param($installPath, $toolsPath, $package, $project) Unregister-GlimpseExtension $package
PowerShellCorpus/Github/kaizer04_BetSystem/BetSystem/packages/Glimpse.Mvc5.1.5.3/tools/install.ps1
install.ps1
param($installPath, $toolsPath, $package, $project) Register-GlimpseExtension $package $DTE
PowerShellCorpus/Github/kaizer04_BetSystem/BetSystem/packages/Glimpse.EF6.1.6.5/tools/uninstall.ps1
uninstall.ps1
param($installPath, $toolsPath, $package, $project) Unregister-GlimpseExtension $package
PowerShellCorpus/Github/kaizer04_BetSystem/BetSystem/packages/Glimpse.EF6.1.6.5/tools/install.ps1
install.ps1
param($installPath, $toolsPath, $package, $project) Register-GlimpseExtension $package $DTE
PowerShellCorpus/Github/kaizer04_BetSystem/BetSystem/packages/Newtonsoft.Json.6.0.6/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/kaizer04_BetSystem/BetSystem/packages/Glimpse.Ado.1.7.3/tools/uninstall.ps1
uninstall.ps1
param($installPath, $toolsPath, $package, $project) Unregister-GlimpseExtension $package
PowerShellCorpus/Github/kaizer04_BetSystem/BetSystem/packages/Glimpse.Ado.1.7.3/tools/install.ps1
install.ps1
param($installPath, $toolsPath, $package, $project) Register-GlimpseExtension $package $DTE
PowerShellCorpus/Github/kaizer04_BetSystem/BetSystem/packages/EntityFramework.6.1.1/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/kaizer04_BetSystem/BetSystem/packages/EntityFramework.6.1.1/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/kaizer04_BetSystem/BetSystem/packages/Modernizr.2.8.3/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/kaizer04_BetSystem/BetSystem/packages/Modernizr.2.8.3/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/kaizer04_BetSystem/BetSystem/packages/Modernizr.2.8.3/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/manjusekar_InstallTools/OfflineWebSitesFeeds.ps1
OfflineWebSitesFeeds.ps1
param($WebSitesFeedLink, $OfflineFeedsLocation = [System.Environment]::ExpandEnvironmentVariables("%SystemDrive%\Offline_Feeds")) $WebPiCmd = [System.Environment]::ExpandEnvironmentVariables("%ProgramW6432%\Microsoft\Web Platform Installer\WebpiCmd.exe") $MainWebPiFeedUrl = "http://go.microsoft.com/?linkid=9823756"...
PowerShellCorpus/Github/manjusekar_InstallTools/HostWebSitesFeeds.ps1
HostWebSitesFeeds.ps1
param ($offlineFeedsLocation, $hostingLocation) $WebSitesFeedDirName = "WebSitesFeed" $WebSitesFeedFileName = "WebSites0.9.0.xml" $BootstrapperFeedDirName = "BootstrapperFeed" $BootstrapperFeedFileName = "BootstrapperEntries.xml" $nsMgr = New-Object System.Xml.XmlNamespaceManager (New-Object System.Xml.NameT...
PowerShellCorpus/Github/lantiguav_PortafolioVictorLantiguaBello/SantanasProjectOP/packages/EntityFramework.6.0.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/lantiguav_PortafolioVictorLantiguaBello/SantanasProjectOP/packages/EntityFramework.6.0.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/lantiguav_PortafolioVictorLantiguaBello/SantanasProjectOP/packages/System.Data.SQLite.EF6.1.0.103/tools/net45/install.ps1
install.ps1
############################################################################### # # provider.ps1 -- # # Written by Joe Mistachkin. # Released to the public domain, use at your own risk! # ############################################################################### param($installPath, $toolsPath, $package, ...
PowerShellCorpus/Github/lantiguav_PortafolioVictorLantiguaBello/SantanasProjectOP/packages/System.Data.SQLite.EF6.1.0.103/tools/net451/install.ps1
install.ps1
############################################################################### # # provider.ps1 -- # # Written by Joe Mistachkin. # Released to the public domain, use at your own risk! # ############################################################################### param($installPath, $toolsPath, $package, ...
PowerShellCorpus/Github/lantiguav_PortafolioVictorLantiguaBello/SantanasProjectOP/packages/System.Data.SQLite.EF6.1.0.103/tools/net46/install.ps1
install.ps1
############################################################################### # # provider.ps1 -- # # Written by Joe Mistachkin. # Released to the public domain, use at your own risk! # ############################################################################### param($installPath, $toolsPath, $package, ...
PowerShellCorpus/Github/lantiguav_PortafolioVictorLantiguaBello/SantanasProjectOP/packages/System.Data.SQLite.EF6.1.0.103/tools/net40/install.ps1
install.ps1
############################################################################### # # provider.ps1 -- # # Written by Joe Mistachkin. # Released to the public domain, use at your own risk! # ############################################################################### param($installPath, $toolsPath, $package, ...
PowerShellCorpus/Github/andysvints_updadschemawexcattr/Update-ADSchema.ps1
Update-ADSchema.ps1
#Getting <SchemaContainerDN> $SchemaContainerDN="CN=Schema,CN=Configuration,$((Get-ADDomain).distinguishedname)" #All attributes and object will be taken from Exchnage install iso <# .Synopsis Parse the changes in LDF format and convert them to the Array of the PS objects. .DESCRIPTION Converting the...
PowerShellCorpus/Github/EdiWang_SQL2Json/SqlToJson/packages/EnterpriseLibrary.Common.6.0.1304.0/Update-EntlibConfiguration.ps1
Update-EntlibConfiguration.ps1
# ============================================================================== # Microsoft patterns & practices Enterprise Library # ============================================================================== # Copyright © Microsoft Corporation. All rights reserved. # THIS CODE AND INFORMATION IS PROVIDED "AS...
PowerShellCorpus/Github/EdiWang_SQL2Json/SqlToJson/packages/EnterpriseLibrary.Common.6.0.1304.0/tools/install.ps1
install.ps1
param($installPath, $toolsPath, $package, $project) Import-Module (Join-Path $toolsPath Utils.psm1) $relativeInstallPath = Get-RelativePath ([System.Io.Path]::GetDirectoryName($dte.Solution.FullName)) $installPath $folder = (Join-Path (Join-Path $relativeInstallPath "lib") "NET45") Add-ToolFolder $folder ...
PowerShellCorpus/Github/EdiWang_SQL2Json/SqlToJson/packages/MahApps.Metro.1.5.0/tools/install.ps1
install.ps1
param($rootPath, $toolsPath, $package, $project) $project.DTE.ItemOperations.Navigate('http://mahapps.com/guides/quick-start.html')
PowerShellCorpus/Github/EdiWang_SQL2Json/SqlToJson/packages/Newtonsoft.Json.9.0.1/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://www.newtonsoft.com/json/install?version=" + $package.Version $dte2 = Get-Interface $dte ([EnvDTE80.DTE2]) if ($dte2.ActiveWindo...
PowerShellCorpus/Github/EdiWang_SQL2Json/SqlToJson/packages/Newtonsoft.Json.10.0.2/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://www.newtonsoft.com/json/install?version=" + $package.Version $dte2 = Get-Interface $dte ([EnvDTE80.DTE2]) if ($dte2.ActiveWindo...
PowerShellCorpus/Github/EdiWang_SQL2Json/SqlToJson/packages/EnterpriseLibrary.Data.6.0.1304.0/tools/install.ps1
install.ps1
param($installPath, $toolsPath, $package, $project) Import-Module (Join-Path $toolsPath Utils.psm1) $relativeInstallPath = Get-RelativePath ([System.Io.Path]::GetDirectoryName($dte.Solution.FullName)) $installPath $folder = (Join-Path (Join-Path $relativeInstallPath "lib") "NET45") Add-ToolFolder $folder ...
PowerShellCorpus/Github/enptmps_CredentialManagement/CredentialManagement.ps1
CredentialManagement.ps1
Function New-PSCredential{ <# .Synopsis Store a new credential as a variable .DESCRIPTION New-PSCredential promots you for credentials and saves it to a variable by concatinating the prefix (Name) and Suffix (Suffix) that you give it, by default the suffix is Cred .EXAMPLE ./New-PSCredential .EXAM...
PowerShellCorpus/Github/RadkaHankovska_HankovskaTest/ListOfEmployeesMVC/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/RadkaHankovska_HankovskaTest/ListOfEmployeesMVC/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/RadkaHankovska_HankovskaTest/ListOfEmployeesMVC/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/RadkaHankovska_HankovskaTest/ListOfEmployeesMVC/packages/EntityFramework.5.0.0/tools/init.ps1
init.ps1
param($installPath, $toolsPath, $package, $project) $importedModule = Get-Module | ?{ $_.Name -eq 'EntityFramework' } if ($PSVersionTable.PSVersion -ge (New-Object Version @( 3, 0 ))) { $thisModuleManifest = 'EntityFramework.PS3.psd1' } else { $thisModuleManifest = 'EntityFramework.psd1' } $thisModule...
PowerShellCorpus/Github/RadkaHankovska_HankovskaTest/ListOfEmployeesMVC/packages/EntityFramework.5.0.0/tools/install.ps1
install.ps1
param($installPath, $toolsPath, $package, $project) function Invoke-ConnectionFactoryConfigurator($assemblyPath, $project) { $appDomain = [AppDomain]::CreateDomain( 'EntityFramework.PowerShell', $null, (New-Object System.AppDomainSetup -Property @{ ShadowCopyFiles = 'true' })) ...
PowerShellCorpus/Github/RadkaHankovska_HankovskaTest/ListOfEmployeesMVC/packages/jQuery.UI.Combined.1.8.24/Tools/uninstall.ps1
uninstall.ps1
param($installPath, $toolsPath, $package, $project) . (Join-Path $toolsPath common.ps1) # Update the _references.js file Remove-Reference $scriptsFolderProjectItem $juiFileNameRegEx
PowerShellCorpus/Github/RadkaHankovska_HankovskaTest/ListOfEmployeesMVC/packages/jQuery.UI.Combined.1.8.24/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 $juiFileNameRegEx ...
PowerShellCorpus/Github/RadkaHankovska_HankovskaTest/ListOfEmployeesMVC/packages/jQuery.UI.Combined.1.8.24/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/RadkaHankovska_HankovskaTest/ListOfEmployeesMVC/packages/jQuery.1.8.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/RadkaHankovska_HankovskaTest/ListOfEmployeesMVC/packages/jQuery.1.8.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/RadkaHankovska_HankovskaTest/ListOfEmployeesMVC/packages/jQuery.1.8.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/lerwine_Useful-Powershell-Scripts/TransformXml.ps1
TransformXml.ps1
cls; $Source = "C:\Users\erwinele_adm.ISEDLAB.001\Documents\RoleAndFeatureIdentifiers.xml"; $Stylesheet = "C:\Users\erwinele_adm.ISEDLAB.001\Documents\RoleAndFeatureIdentifiersFlatDoc.xslt"; $Output = "C:\Users\erwinele_adm.ISEDLAB.001\Documents\RoleAndFeatureIdentifiersFlatDoc.html"; $myXslTrans = New-Object Syste...
PowerShellCorpus/Github/lerwine_Useful-Powershell-Scripts/GetPuppetModuleCommands.ps1
GetPuppetModuleCommands.ps1
[Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms") | Out-Null; try { $Script:SettingsPath = Join-Path -Path:(Split-Path -Parent -Path:$MyInvocation.MyCommand.Path) -ChildPath:'GetPuppetModuleCommands.xml'; if ($Script:SettingsPath | Test-Path -PathType:Leaf) { $Script:Settings = $S...
PowerShellCorpus/Github/lerwine_Useful-Powershell-Scripts/PSDevHelper.ps1
PSDevHelper.ps1
Function Get-YesOrNo { [CmdletBinding()] Param( [Parameter(Mandatory = $true)] [string]$Prompt, [Parameter(Mandatory = $false)] [object]$Default, [Parameter(Mandatory = $false)] [object]$YesValue = $true, [Parameter(M...
PowerShellCorpus/Github/lerwine_Useful-Powershell-Scripts/XWinSetup.ps1
XWinSetup.ps1
Param( [switch]$NoElevate ) $puttyInstallDir = "C:\Program Files (x86)\Putty"; $xMingInstallDir = "C:\Program Files (x86)\Xming"; # :0 -clipboard -multiwindow $puttyBasePath = "HKCU:\Software\SimonTatham\PuTTY"; # TODO: Key names are different because we're setting up XMing and we're not checking ItssRestricti...
PowerShellCorpus/Github/lerwine_Useful-Powershell-Scripts/FixChmFileSecurity.ps1
FixChmFileSecurity.ps1
Param( [switch]$NoElevate ) $parentKeyPath = "HKLM:\SOFTWARE\Microsoft\HTMLHelp\1.x"; $keyName = "ItssRestrictions"; $propertyName = "MaxAllowedZone"; $propertyValue = [UInt32]0x00000003; Function Test-WasReInvokedAsElevated { [CmdletBinding()] Param( [Parameter(Mandatory = $true)] [string]$Script...
PowerShellCorpus/Github/OPS-E2E-PPE_E2E_D_Provision_2017_5_12_9_49_55/.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/OPS-E2E-PPE_E2E_NewRepo_2017_3_27_20_5_36/.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_Provision_2017_4_20_20_5_17/.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/liaodaniel_all_things_aws/auto_resize_disks.ps1
auto_resize_disks.ps1
# The script iterates through the drives by letters for any unallocated disk space. # Should the drive have unallocated disk space, an attempt will be made to extend the volume. # Otherwise, nothing will happen. # # Requires elevated privileges to execute this script. # # ToDo: Allow volume extension across multi...
PowerShellCorpus/Github/JozefinaNikolova_AuctionWebsite/Auction/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...