full_path stringlengths 31 232 | filename stringlengths 4 167 | content stringlengths 0 48.3M |
|---|---|---|
PowerShellCorpus/Github/thongbkv_hotbirthday/hbd/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/thongbkv_hotbirthday/hbd/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/AnotherAltr_SignToolsPS/sign.ps1 | sign.ps1 | param([string]$path,[string]$ProjectDir, [string]$cert);
Write-Host "-========================================================-";
Write-Host "-=== [PowerShell] Sign Tools ===-";
Write-Host "-========================================================-";
Write-Host ("Path To Library: " + $path)... |
PowerShellCorpus/Github/fardinbarashi_Powershell-Copy-MembersOf-With-A-Gui/membersof.ps1 | membersof.ps1 | # Net Assembly
[void] [System.Reflection.Assembly]::LoadWithPartialName("System.Drawing")
[void] [System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms")
$FormComputerCopyMembersOf = New-Object System.Windows.Forms.Form
$FormComputerCopyMembersOf.Text = " Copy Computers Members Of And OU"
$F... |
PowerShellCorpus/Github/OPSTest_E2E_Provision_1485216341357/.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/baradzin_KBRS2/KBRS2/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/baradzin_KBRS2/KBRS2/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/baradzin_KBRS2/KBRS2/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/baradzin_KBRS2/KBRS2/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/baradzin_KBRS2/KBRS2/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/baradzin_KBRS2/KBRS2/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/baradzin_KBRS2/KBRS2/packages/Microsoft.ApplicationInsights.WindowsServer.2.1.0/Tools/install.ps1 | install.ps1 | param($installPath, $toolsPath, $package, $project)
if ([System.IO.File]::Exists($project.FullName))
{
function MarkItemASCopyToOutput($item)
{
Try
{
#mark it to copy if newer
$item.Properties.Item("CopyToOutputDirectory").Value = 2
}
Catch
{
write-host $_.Exception.ToString()
}... |
PowerShellCorpus/Github/baradzin_KBRS2/KBRS2/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/baradzin_KBRS2/KBRS2/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/baradzin_KBRS2/KBRS2/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/baradzin_KBRS2/KBRS2/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/baradzin_KBRS2/KBRS2/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/devblackops_OVF.Active.Directory/module.psdeploy.ps1 | module.psdeploy.ps1 | if($ENV:BHProjectName -and $ENV:BHProjectName.Count -eq 1) {
Deploy OVF-Module {
By PSGalleryModule Artifactory {
FromSource $ENV:BHProjectName
To PSGallery
Tagged PSGallery
WithOptions @{
ApiKey = $env:PSGalleryApiKey
}
... |
PowerShellCorpus/Github/devblackops_OVF.Active.Directory/psake.ps1 | psake.ps1 | # Define global variables used by tasks
properties {
$projectRoot = $ENV:BHProjectPath
if(-not $projectRoot) {
$projectRoot = $PSScriptRoot
}
$sut = $env:BHProjectName
$tests = "$projectRoot\Tests"
}
task Default -depends Test
Task Init {
$lines
Set-Location $Proje... |
PowerShellCorpus/Github/devblackops_OVF.Active.Directory/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_OVF.Active.Directory/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/devblackops_OVF.Active.Directory/Tests/Manifest.tests.ps1 | Manifest.tests.ps1 | $moduleName = $env:BHProjectName
$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.m... |
PowerShellCorpus/Github/devblackops_OVF.Active.Directory/OVF.Active.Directory/Diagnostics/Simple/active.directory.tests.ps1 | active.directory.tests.ps1 | #require -modules poshspec
Import-Module -Name poshspec -Verbose:$false -ErrorAction Stop
describe 'DNS' {
context 'Availability' {
service DNS status { should be running }
service Dnscache status { should be running }
TcpPort localhost 53 TcpTestSucceeded { Should Be $true } ... |
PowerShellCorpus/Github/brwilkinson_MulitTierArmV4/MultiTierARMv4/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 = 'MultiTierARMv2',
[switch] $UploadArtifacts,
[string] $StorageAccountName,
[string] $StorageContaine... |
PowerShellCorpus/Github/brwilkinson_MulitTierArmV4/MultiTierARMv4/DSC/DSCSQLx.ps1 | DSCSQLx.ps1 | Configuration Main
{
Param (
[String]$DomainName = 'contoso.com',
[PSCredential]$AdminCreds,
[Int]$RetryCount = 20,
[Int]$RetryIntervalSec = 120,
[String]$ThumbPrint = '606295CAE217319DC730F8F16D52C6BEF636047B',
[String]$StorageAccountKeySource
)
Import-DscResource -ModuleName PSDesired... |
PowerShellCorpus/Github/brwilkinson_MulitTierArmV4/MultiTierARMv4/DSC/DSCDC2.ps1 | DSCDC2.ps1 | Configuration Main
{
Param (
[String]$DomainName = 'Contoso.com',
[PSCredential]$AdminCreds,
[Int]$RetryCount = 20,
[Int]$RetryIntervalSec = 120,
[String]$SiteName = 'Default-First-Site-Name'
)
Import-DscResource -ModuleName PSDesiredStateConfiguration
Import-DscResource -ModuleName xComputerMa... |
PowerShellCorpus/Github/brwilkinson_MulitTierArmV4/MultiTierARMv4/DSC/DSCMTx.ps1 | DSCMTx.ps1 | Configuration Main
{
Param (
[String]$DomainName = 'Contoso.com',
[PSCredential]$AdminCreds,
[Int]$RetryCount = 20,
[Int]$RetryIntervalSec = 120,
$ThumbPrint = 'D619F4B333D657325C976F97B7EF5977E740E791'
)
Import-DscResource -ModuleName PSDesiredStateConfiguration
Import-DscResource -Modul... |
PowerShellCorpus/Github/brwilkinson_MulitTierArmV4/MultiTierARMv4/DSC/DSCAppTier.ps1 | DSCAppTier.ps1 | Configuration Main
{
Param (
[String]$DomainName = 'contoso.com',
[PSCredential]$AdminCreds,
[Int]$RetryCount = 20,
[Int]$RetryIntervalSec = 120,
[String]$ThumbPrint = '606295CAE217319DC730F8F16D52C6BEF636047B',
[String]$StorageAccountKeySource
)
Import-DscResource -ModuleName P... |
PowerShellCorpus/Github/brwilkinson_MulitTierArmV4/MultiTierARMv4/DSC/DSCDC1.ps1 | DSCDC1.ps1 | Configuration Main
{
Param (
[String]$DomainName = 'Contoso.com',
[PSCredential]$AdminCreds,
[Int]$RetryCount = 15,
[Int]$RetryIntervalSec = 60
)
Import-DscResource -ModuleName PSDesiredStateConfiguration
Import-DscResource -ModuleName xActiveDirectory -ModuleVersion 2.15.0.0
Import-DscResource -... |
PowerShellCorpus/Github/brwilkinson_MulitTierArmV4/MultiTierARMv4/DSC/DSCMSx.ps1 | DSCMSx.ps1 | Configuration Main
{
Param (
[String]$DomainName = 'Contoso.com',
[PSCredential]$AdminCreds,
[Int]$RetryCount = 20,
[Int]$RetryIntervalSec = 120
)
Import-DscResource -ModuleName PSDesiredStateConfiguration
Import-DscResource -ModuleName xComputerManagement
Import-DscResource -ModuleName xActiveDi... |
PowerShellCorpus/Github/brwilkinson_MulitTierArmV4/MultiTierARMv4/PrereqsToDeploy/CreateKeyVaultAndStoreSecrets.ps1 | CreateKeyVaultAndStoreSecrets.ps1 | #
# CreateKeyVaultAndStoreSecrets.ps1
#
$rgName = 'rgContosoGlobal'
$kVaultName = 'kvContosoEastUS2'
$location = 'EastUS2'
# You will want to do this in all regions where you deploy
$kVaultName = 'kvContosoEastUS'
$location = 'EastUS'
$AdminUserName = 'EricLang'
New-AzureRmResourceGroup -Name $rgName -L... |
PowerShellCorpus/Github/brwilkinson_MulitTierArmV4/MultiTierARMv4/PrereqsToDeploy/CreateUploadCertificatestoKeyVault.ps1 | CreateUploadCertificatestoKeyVault.ps1 | #
# CreateUploadCertificatestoKeyVault.ps1
#
# Note this Wildcard certificate can be used on all Web Server in the Environment.
# The deployment automatically installs this Cert in all required stores for it to be trusted.
# The cert/s can also be used for the WAF (Web Application Firewall) SSL and Authenication c... |
PowerShellCorpus/Github/brwilkinson_MulitTierArmV4/MultiTierARMv4/bin/Debug/staging/MultiTierARMv4/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 = 'MultiTierARMv2',
[switch] $UploadArtifacts,
[string] $StorageAccountName,
[string] $StorageContaine... |
PowerShellCorpus/Github/brwilkinson_MulitTierArmV4/MultiTierARMv4/bin/Debug/staging/MultiTierARMv4/DSC/DSCSQLx.ps1 | DSCSQLx.ps1 | Configuration Main
{
Param (
[String]$DomainName = 'contoso.com',
[PSCredential]$AdminCreds,
[Int]$RetryCount = 20,
[Int]$RetryIntervalSec = 120,
[String]$ThumbPrint = '606295CAE217319DC730F8F16D52C6BEF636047B',
[String]$StorageAccountKeySource
)
Import-DscResource -ModuleName PSDesired... |
PowerShellCorpus/Github/brwilkinson_MulitTierArmV4/MultiTierARMv4/bin/Debug/staging/MultiTierARMv4/DSC/DSCDC2.ps1 | DSCDC2.ps1 | Configuration Main
{
Param (
[String]$DomainName = 'Contoso.com',
[PSCredential]$AdminCreds,
[Int]$RetryCount = 20,
[Int]$RetryIntervalSec = 120,
[String]$SiteName = 'Default-First-Site-Name'
)
Import-DscResource -ModuleName PSDesiredStateConfiguration
Import-DscResource -ModuleName xComputerMa... |
PowerShellCorpus/Github/brwilkinson_MulitTierArmV4/MultiTierARMv4/bin/Debug/staging/MultiTierARMv4/DSC/DSCMTx.ps1 | DSCMTx.ps1 | Configuration Main
{
Param (
[String]$DomainName = 'Contoso.com',
[PSCredential]$AdminCreds,
[Int]$RetryCount = 20,
[Int]$RetryIntervalSec = 120,
$ThumbPrint = 'D619F4B333D657325C976F97B7EF5977E740E791'
)
Import-DscResource -ModuleName PSDesiredStateConfiguration
Import-DscResource -Modul... |
PowerShellCorpus/Github/brwilkinson_MulitTierArmV4/MultiTierARMv4/bin/Debug/staging/MultiTierARMv4/DSC/DSCDC1.ps1 | DSCDC1.ps1 | Configuration Main
{
Param (
[String]$DomainName = 'Contoso.com',
[PSCredential]$AdminCreds,
[Int]$RetryCount = 15,
[Int]$RetryIntervalSec = 60
)
Import-DscResource -ModuleName PSDesiredStateConfiguration
Import-DscResource -ModuleName xActiveDirectory -ModuleVersion 2.15.0.0
Import-DscResource -... |
PowerShellCorpus/Github/brwilkinson_MulitTierArmV4/MultiTierARMv4/bin/Debug/staging/MultiTierARMv4/DSC/DSCMSx.ps1 | DSCMSx.ps1 | Configuration Main
{
Param (
[String]$DomainName = 'Contoso.com',
[PSCredential]$AdminCreds,
[Int]$RetryCount = 20,
[Int]$RetryIntervalSec = 120
)
Import-DscResource -ModuleName PSDesiredStateConfiguration
Import-DscResource -ModuleName xComputerManagement
Import-DscResource -ModuleName xActiveDi... |
PowerShellCorpus/Github/MarkoMarjamaa_PuttyTemplates/ApplyPuttyTemplates.ps1 | ApplyPuttyTemplates.ps1 |
$PuttyRoot = "HKCU:\Software\SimonTatham\PuTTY"
$SessionRoot = "$($PuttyRoot)\Sessions"
$TemplateRoot = "$($PuttyRoot)\Templates"
Function ApplyTemplate( $TargetPath, $SourcePath){
if ( Test-Path $SourcePath ) {
# If template name exists
$TemplateName = (Get-ItemProperty $SourcePath).TemplateName
... |
PowerShellCorpus/Github/JoschaMetze_gamesparkAuth0Hash/bin/ChangeConfig.ps1 | ChangeConfig.ps1 | $configFile = $args[0]
Write-Host "Adding iisnode section to config file '$configFile'"
$config = New-Object System.Xml.XmlDocument
$config.load($configFile)
$xpath = $config.CreateNavigator()
$parentElement = $xpath.SelectSingleNode("//configuration/configSections/sectionGroup[@name='system.webServer']")
$iisn... |
PowerShellCorpus/Github/JoschaMetze_gamesparkAuth0Hash/bin/download.ps1 | download.ps1 | $runtimeUrl = $args[0]
$overrideUrl = $args[1]
$current = [string] (Get-Location -PSProvider FileSystem)
$client = New-Object System.Net.WebClient
function downloadWithRetry {
param([string]$url, [string]$dest, [int]$retry)
Write-Host
Write-Host "Attempt: $retry"
Write-Host
trap {
Write-Hos... |
PowerShellCorpus/Github/xtophs_sf-windows-containers/VS Project/SFContainer2/Scripts/Deploy-FabricApplication.ps1 | Deploy-FabricApplication.ps1 | <#
.SYNOPSIS
Deploys a Service Fabric application type to a cluster.
.DESCRIPTION
This script deploys a Service Fabric application type to a cluster. It is invoked by Visual Studio when deploying a Service Fabric Application project.
.NOTES
WARNING: This script file is invoked by Visual Studio. Its paramet... |
PowerShellCorpus/Github/simapple_muma/ej.ps1 | ej.ps1 | function isset($var){
return -not [string]::IsNullOrEmpty($var)
}
function sethostname($hostname){
if ($hostname){
$computer=Get-WMIObject -class Win32_ComputerSystem
$computer.Rename($hostname);
}
}
function setrootpass($password){
if ($password){
net user Administrator $password
}
}
f... |
PowerShellCorpus/Github/JenHsuan_Powershell-script-tools/Check-SoftLink/Check-SoftLink.ps1 | Check-SoftLink.ps1 | None |
PowerShellCorpus/Github/OPSTest_E2E_Provision_1488049543050/.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/JellyMaster_MVCBootstrap/BootstrapMvc/BootstrapMvc/PostBuildScripts/BuildNewPackage-RanAutomatically.ps1 | BuildNewPackage-RanAutomatically.ps1 | #==========================================================
# This script is ran automatically after every successful build.
#
# This script creates a NuGet package for the current project, and places the .nupkg file in the project's output directory (beside the .dll/.exe file).
#
# You may edit the values of the ... |
PowerShellCorpus/Github/JellyMaster_MVCBootstrap/BootstrapMvc/BootstrapMvc/PostBuildScripts/UploadPackage-RunManually.ps1 | UploadPackage-RunManually.ps1 | #==========================================================
# This script must be run manually.
#
# This script prompts you for a NuGet package file (.nupkg) and then uploads it to the gallery. The project's .nupkg file should be in the same directory as the project's .dll/.exe file (typically bin\Debug or bin\Relea... |
PowerShellCorpus/Github/JellyMaster_MVCBootstrap/BootstrapMvc/BootstrapMvc/PostBuildScripts/New-NuGetPackage.ps1 | New-NuGetPackage.ps1 | #Requires -Version 2.0
<#
.SYNOPSIS
Creates a NuGet Package (.nupkg) file from the given Project or NuSpec file, and optionally uploads it to a NuGet Gallery.
.DESCRIPTION
Creates a NuGet Package (.nupkg) file from the given Project or NuSpec file.
Additional parameters may be provided to also upload the ... |
PowerShellCorpus/Github/JellyMaster_MVCBootstrap/BootstrapMvc/TestingSite/PostBuildScripts/BuildNewPackage-RanAutomatically.ps1 | BuildNewPackage-RanAutomatically.ps1 | #==========================================================
# This script is ran automatically after every successful build.
#
# This script creates a NuGet package for the current project, and places the .nupkg file in the project's output directory (beside the .dll/.exe file).
#
# You may edit the values of the ... |
PowerShellCorpus/Github/JellyMaster_MVCBootstrap/BootstrapMvc/TestingSite/PostBuildScripts/UploadPackage-RunManually.ps1 | UploadPackage-RunManually.ps1 | #==========================================================
# This script must be run manually.
#
# This script prompts you for a NuGet package file (.nupkg) and then uploads it to the gallery. The project's .nupkg file should be in the same directory as the project's .dll/.exe file (typically bin\Debug or bin\Relea... |
PowerShellCorpus/Github/JellyMaster_MVCBootstrap/BootstrapMvc/TestingSite/PostBuildScripts/New-NuGetPackage.ps1 | New-NuGetPackage.ps1 | #Requires -Version 2.0
<#
.SYNOPSIS
Creates a NuGet Package (.nupkg) file from the given Project or NuSpec file, and optionally uploads it to a NuGet Gallery.
.DESCRIPTION
Creates a NuGet Package (.nupkg) file from the given Project or NuSpec file.
Additional parameters may be provided to also upload the ... |
PowerShellCorpus/Github/SpottedHyenaUK_Set-ESXiScratch/Set-ESXiScratch.ps1 | Set-ESXiScratch.ps1 | <#
.SYNOPSIS
Sets the Scratch location for each of the heads on the Infrastructure datastore.
.DESCRIPTION
This script takes a series of vCenter Servers with credentials stored in a CSV file that
is specified with the -CsvPath parameter.
The CSV File should have the following format with one... |
PowerShellCorpus/Github/MattDavies_DevSetupScript/install.ps1 | install.ps1 | iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))
cinst msysgit
cinst fiddler
cinst sysinternals
cinst VisualStudio2013Professional
cinst VS2013.VSCommands
cinst resharper
cinst XUnit.VisualStudio
cinst TortoiseGit
cinst skype
cinst GoogleChrome
cinst... |
PowerShellCorpus/Github/ahoeflich_powershell/RemoveUserLicense.ps1 | RemoveUserLicense.ps1 | $first = Read-Host 'First Name'
$last = Read-host 'Last Name'
$ua = Read-Host 'Username'
$UserCredential = Get-Credential
Connect-MsolService -Credential $UserCredential
Set-MsolUserLicense -UserPrincipalName "$un@cstonemechanical.com" -RemoveLicenses CapstoneMech:O365_EXCHANGEDESKLESS
Set-MsolUserLicense -User... |
PowerShellCorpus/Github/ahoeflich_powershell/Search AzureAdUser.ps1 | Search AzureAdUser.ps1 | Connect-AzureAD
$name = read-host -Prompt "Input User to Search for:"
get-AzureADUser -SearchString $name
|
PowerShellCorpus/Github/ahoeflich_powershell/NewUser-1.ps1 | NewUser-1.ps1 | $first = read-Host 'First Name:'
$last = read-Host 'Last Name:'
$Description = read-host 'Job Title:'
$Office = read-Host 'Department:'
$Phone = read-Host 'Cell or Extension Number:'
$un = read-Host 'Username:'
$pw = Read-Host -AsSecureString 'Secure Password:'
$Name = $first + ' ' + $last
$homedr = 'X:'
$Home... |
PowerShellCorpus/Github/ahoeflich_powershell/Add User to Security Group.ps1 | Add User to Security Group.ps1 | $groupid = Get-MsolGroup | Where-Object {$_.DisplayName -eq “Test Security Group”} |
PowerShellCorpus/Github/gchavepeyer_azure-pack-scripts/DemoScript.ps1 | DemoScript.ps1 | ### @Author Geoffrey Chavepeyer
###
### How-to start with Azure Powershel CLI.
###
# Make sure you have imported the Azure Module. You can install those via Web Platform Installer
# Available here : https://www.microsoft.com/web/downloads/platform.aspx
Import-Module -Name "Azure"
# Add your Proximus Azure p... |
PowerShellCorpus/Github/arbindsanders_powershell-template/powershell-template.ps1 | powershell-template.ps1 | <#
.SYNOPSIS
<Overview of script>
.DESCRIPTION
<Brief description of script>
.PARAMETER <Parameter_Name>
<Brief description of parameter input required. Repeat this attribute if required>
.INPUTS
<Inputs if any, otherwise state None>
.OUTPUTS
<Outputs if any, otherwise state None - example... |
PowerShellCorpus/Github/TerminGW0_SeriotIT_Server_Monitor_Script/ServerMonitor.ps1 | ServerMonitor.ps1 | ###
# This script will connect to and scrape data from a Serio IT monitoring system.
# The URI you pass in to the function is a CPU utilization page.
# Ex. http://(SerioITserverHost)/servers/(ServerToMonitor)/(ServerToMonitor)_cpu.html
#
# The scipt will pump out to a CSV file in the same directory for monitoring... |
PowerShellCorpus/Github/RubenRojasLinares_MiRepositorio/Proyecto/WebAppMVC/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/RubenRojasLinares_MiRepositorio/Proyecto/WebAppMVC/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/RubenRojasLinares_MiRepositorio/Proyecto/WebAppMVC/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/RubenRojasLinares_MiRepositorio/Proyecto/WebAppMVC/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/RubenRojasLinares_MiRepositorio/Proyecto/WebAppMVC/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/RubenRojasLinares_MiRepositorio/Proyecto/WebAppMVC/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/RubenRojasLinares_MiRepositorio/Proyecto/WebAppMVC/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/RubenRojasLinares_MiRepositorio/Proyecto/WebAppMVC/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/RubenRojasLinares_MiRepositorio/Proyecto/WebAppMVC/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/RubenRojasLinares_MiRepositorio/Proyecto/WebAppMVC/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/RubenRojasLinares_MiRepositorio/Proyecto/WebAppMVC/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/psykoc4t_CheckFilesExists/CheckFilesExists.ps1 | CheckFilesExists.ps1 | <#
.NOTES
===========================================================================
Created with: SAPIEN Technologies, Inc., PowerShell Studio 2016 v5.2.128
Created on: 18/11/2016 17:00
Created by: Antonio de Almeida
Organization: antoniodealmeida.net
Version: 1.0
Filename: CheckF... |
PowerShellCorpus/Github/marcoaoteixeira_PowerShell-Scripts/IncrementAssemblyVersion.ps1 | IncrementAssemblyVersion.ps1 | #Requires -Version 2.0
<#
.SYNOPSIS
Updates the AssemblyVersion annotation from the assembly version (.cs) file
.DESCRIPTION
Updates the AssemblyVersion annotation from the assembly version (.cs) file
Additional parameters may be provided to also specify which block of number
need to be incremented.
... |
PowerShellCorpus/Github/marcoaoteixeira_PowerShell-Scripts/Powershell_Script_Template.ps1 | Powershell_Script_Template.ps1 | #Requires -Version 2.0
<#
.SYNOPSIS
Synopsis for the script
.DESCRIPTION
Description for the script
.LINK
Project home: https://script.project.com
.NOTES
Author:
Version: 1.0.0
This script is designed to be called from PowerShell.
#>
[CmdletBinding()]
Param (
[Parame... |
PowerShellCorpus/Github/marcoaoteixeira_PowerShell-Scripts/UpdateNuSpecVersionTag.ps1 | UpdateNuSpecVersionTag.ps1 | #Requires -Version 2.0
<#
.SYNOPSIS
Updates the version tag of the specified .nuspec file with the assembly
version of the specifed assembly file.
.DESCRIPTION
Updates the version tag of the specified .nuspec file with the assembly
version of the specifed assembly file.
.PARAMETER NuSpecFilePa... |
PowerShellCorpus/Github/marcoaoteixeira_PowerShell-Scripts/PackAndPushNuSpec.ps1 | PackAndPushNuSpec.ps1 | [CmdletBinding()]
Param (
[Parameter(Position = 0, Mandatory = $false, ParameterSetName = "Default", HelpMessage = "The directory to look for nuspec files.")]
[Parameter(Position = 0, Mandatory = $false, ParameterSetName = "PushNuGetPackages")]
[ValidateScript({ Test-Path $_ -PathType Container })]
... |
PowerShellCorpus/Github/marcoaoteixeira_PowerShell-Scripts/PackingPushingNuGetPackage.ps1 | PackingPushingNuGetPackage.ps1 | #Requires -Version 2.0
<#
.SYNOPSIS
Creates a NuGet Package (.nupkg) file from the given .nuspec file, and
optionally uploads it to a NuGet Gallery.
.DESCRIPTION
Creates a NuGet Package (.nupkg) file from the given .nuspec file.
Additional parameters may be provided to also upload t... |
PowerShellCorpus/Github/marcoaoteixeira_PowerShell-Scripts/DotNet-Script-Helpers/NuGetRestore.ps1 | NuGetRestore.ps1 | Param(
[Parameter(Mandatory = $false)]
[ValidateNotNullOrEmpty()]
[String]$SolutionFilePath = "",
[Parameter(Mandatory = $false)]
[ValidateNotNullOrEmpty()]
[String]$NuGetFilePath = ".\Tools\NuGet\NuGet.exe",
[Parameter(Mandatory = $false)]
[ValidateNotNullOrEmpty()]
... |
PowerShellCorpus/Github/marcoaoteixeira_PowerShell-Scripts/DotNet-Script-Helpers/BuildNuGetPackage.ps1 | BuildNuGetPackage.ps1 | #Requires -Version 2.0
<#
.SYNOPSIS
Creates a NuGet Package (.nupkg) file from the given Project or NuSpec file, and
optionally uploads it to a NuGet Gallery.
.DESCRIPTION
Creates a NuGet Package (.nupkg) file from the given Project or NuSpec file.
Additional parameters may be provi... |
PowerShellCorpus/Github/marcoaoteixeira_PowerShell-Scripts/DotNet-Script-Helpers/ChangeNuSpecVersion.ps1 | ChangeNuSpecVersion.ps1 | # ChangeNuSpecVersion.ps1
#
# Set the version in all the AssemblyInfo.cs or AssemblyInfo.vb files in any subdirectory.
#
# Usage:
# From command prompt:
# powershell.exe ChangeNuSpecVersion.ps1 2.8.3.0
#
# From PowerShell prompt:
# .\ChangeNuSpecVersion.ps1 2.8.3.0
Function Show-Usage {
... |
PowerShellCorpus/Github/marcoaoteixeira_PowerShell-Scripts/DotNet-Script-Helpers/ChangeAssemblyInfoVersion.ps1 | ChangeAssemblyInfoVersion.ps1 | # ChangeAssemblyInfoVersion.ps1
#
# Set the version in all the AssemblyInfo.cs or AssemblyInfo.vb files in any subdirectory.
#
# Usage:
# From command prompt:
# powershell.exe ChangeAssemblyInfoVersion.ps1 2.8.3.0
#
# From PowerShell prompt:
# .\ChangeAssemblyInfoVersion.ps1 2.8.3.0
Function ... |
PowerShellCorpus/Github/marcoaoteixeira_PowerShell-Scripts/DotNet-Script-Helpers/BuildVisualStudioSolution.ps1 | BuildVisualStudioSolution.ps1 | #Requires -Version 2.0
<#
.SYNOPSIS
Executes the VS2015\MSBuild.exe tool against the specified Visual Studio
solution file.
.Description
.PARAMETER BaseDirectory
The source code root directory. $SolutionFile can be relative to this
directory.
.PARAMETER SolutionFile
T... |
PowerShellCorpus/Github/marcoaoteixeira_PowerShell-Scripts/DotNet-Script-Helpers/RunNUnitTests.ps1 | RunNUnitTests.ps1 | Param(
[Parameter(Mandatory=$false)]
[ValidateNotNullOrEmpty()]
[String]$NUnitTestRunnerFilePath = ".\Tools\NUnit\nunit-console.exe",
[Parameter(Mandatory=$false)]
[ValidateNotNullOrEmpty()]
[String]$TestAssembliesDirectory = ".\build\test",
[Parameter(Mandatory=$false)]
[Val... |
PowerShellCorpus/Github/duanmuchuanyang_Hellow-World/myCode1/gitTest/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/duanmuchuanyang_Hellow-World/myCode1/gitTest/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/duanmuchuanyang_Hellow-World/myCode1/gitTest/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/duanmuchuanyang_Hellow-World/myCode1/gitTest/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/duanmuchuanyang_Hellow-World/myCode1/gitTest/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/duanmuchuanyang_Hellow-World/myCode1/gitTest/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/duanmuchuanyang_Hellow-World/myCode1/gitTest/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/duanmuchuanyang_Hellow-World/myCode1/gitTest/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/duanmuchuanyang_Hellow-World/myCode1/gitTest/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/duanmuchuanyang_Hellow-World/myCode1/gitTest/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/duanmuchuanyang_Hellow-World/myCode1/gitTest/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/duanmuchuanyang_Hellow-World/myCode1/gitTest/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/cjals_Powershell/ReadParameters.ps1 | ReadParameters.ps1 | # La funcion se llama de la siguiente manera:
#
# ReadParameters -ConfigurationFilePath "C:\Test\FicheroConfiguracion.ini"
#
# Para obtener la entrada requerida del fichero .ini, se utiliza el siguiente formato:
# $Parameters["<nombre_cabecera>"]["<nombre_entrada>"]
#
# Ej. fichero.ini
# [cabecera 1]
# ... |
PowerShellCorpus/Github/haam3r_PowerShell/Get-ContactProperties.ps1 | Get-ContactProperties.ps1 | #Requires -Version 2.0
<#
.Synopsis
Get example CSV file, with all possible Outlook contact fields.
.DESCRIPTION
Get example CSV file, with all possible Outlook contact fields.
.PARAMETER FilePath
Path where to output CSV
.EXAMPLE
Get-ContactProperties -FilePath "C:\example.CSV"
.NOTES
Author: Andres ... |
PowerShellCorpus/Github/haam3r_PowerShell/Set-OutlookProfile.ps1 | Set-OutlookProfile.ps1 | #Requires -Version 2.0
<#
.Synopsis
Batch adding mail contacts to Microsoft Outlook based on list from CSV file.
.DESCRIPTION
Takes input from CSV file. Adds everybody in the CSV list as a contact.
The CSV file is expected to have a structure like this: "Email1Address;FullName", including this header.
... |
PowerShellCorpus/Github/haam3r_PowerShell/Set-OutlookContact.ps1 | Set-OutlookContact.ps1 | #Requires -Version 2.0
<#
.Synopsis
Batch adding mail contacts to Microsoft Outlook based on list from CSV file.
.DESCRIPTION
Takes input from CSV file. Adds everybody in the CSV list as a contact.
The CSV file is expected to have a structure like this: "Email1Address;FullName", including this header.
... |
PowerShellCorpus/Github/zniezelski_Printerceptor/printer.ps1 | printer.ps1 | #Zachary Niezelski
#Redirected Printer Handler
#$configure = 1
Param(
[string]$configure,
[string]$isolate
)
[string]$StartTime = Get-Date -Format "dd-MM-yyyy hh:mm:ss"
#Setup psprovider so we can access the registry
New-PSDrive -Name HKU -PSProvider Registry -Root Registry::HKEY_USERS -ErrorAction S... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.