full_path
stringlengths
31
232
filename
stringlengths
4
167
content
stringlengths
0
48.3M
PowerShellCorpus/Github/stevenrobijns_powershell-dotnet-tools/update_references_and_packageconfigs.ps1
update_references_and_packageconfigs.ps1
# Purpose of this powershell script is to update a reference e.g. Pms.ServiceBus.Contracts 6.0.0 to Pms.ServiceBus.Contracts 6.1.0 # The .csproj files and the nuget package.config files and the .nuspec files will be updated # These changes will be put on a feature branch and pushed to the remote repository. # # Rem...
PowerShellCorpus/Github/stevenrobijns_powershell-dotnet-tools/list-dependencies.ps1
list-dependencies.ps1
# This script makes it able to see all the references for each dll in a specified directory # This can especially come in handy when you're getting a compile error message like : "Could not load file or assembly" which you know off you shouldn't be referencing it # The line ". .\manage_csproj.ps1" will only work when...
PowerShellCorpus/Github/stevenrobijns_powershell-dotnet-tools/list-externalprojects.ps1
list-externalprojects.ps1
#This script lists all the external project references for all the .csproj files in a given directory param( [string] $ExcelExePath = "C:\Program Files\Microsoft Office\Office14\EXCEL.EXE", [string] $BasePath = 'C:\workspace\MobiguiderV2\trunk\MobiGuider.DocumentManagement', [string] $OutFile = 'C:\temp\' + $...
PowerShellCorpus/Github/stevenrobijns_powershell-dotnet-tools/CleanAFCfolders.ps1
CleanAFCfolders.ps1
. .\update_references_and_packageconfigs.ps1 $moduleFolders = GetAfcModules -Folder $baseFolder $moduleFolders $moduleFolders |%{ &cd $_.Fullname; &git reset . &git checkout . &git clean -xdf }
PowerShellCorpus/Github/stevenrobijns_powershell-dotnet-tools/list-hintpaths.ps1
list-hintpaths.ps1
#This script lists all references for all .csproj files in a given directory recursively #Fill in the Basepath of the solution for which you want to see the references param( [string] $ExcelExePath = "C:\Program Files\Microsoft Office\Office14\EXCEL.EXE", [string] $BasePath = 'C:\workspace\MobiguiderV2\trunk\M...
PowerShellCorpus/Github/stevenrobijns_powershell-dotnet-tools/file_functions.ps1
file_functions.ps1
#insert text at the top of a file function Insert-Content { param ( [String]$Path ) process { $( ,$_; Get-Content $Path -ea SilentlyContinue) | Out-File $Path } }
PowerShellCorpus/Github/stevenrobijns_powershell-dotnet-tools/list-nuget.ps1
list-nuget.ps1
. .\manage_nuget.ps1 $baseFolder = "c:\src" $moduleFolders = GetAfcModules -Folder $baseFolder $moduleInfos = $moduleFolders |% { GetPackageInfo -Folder $_.FullName } #CollectDependencies -moduleInfos $moduleInfos | Sort-Object | Get-Unique
PowerShellCorpus/Github/stevenrobijns_powershell-dotnet-tools/manage_csproj.ps1
manage_csproj.ps1
############################################################################### # # Functions to extract information from csproj files # ############################################################################### function GetHintPaths { param( [string] $CsProjFile = 'C:\src\trunk\ICTEAM.Solution\ICTEAM....
PowerShellCorpus/Github/BikS2013_bUtility/bUtility.SecurityToken/_CreateNewNuGetPackage/Config.ps1
Config.ps1
#========================================================== # Edit the variable values below to configure how your .nupkg file is packed (i.e. created) and pushed (i.e. uploaded) to the NuGet gallery. # # If you have modified this script: # - if you uninstall the "Create New NuGet Package From Project After Each Bu...
PowerShellCorpus/Github/BikS2013_bUtility/bUtility.SecurityToken/_CreateNewNuGetPackage/DoNotModify/UploadNuGetPackage.ps1
UploadNuGetPackage.ps1
#========================================================== # DO NOT EDIT THIS FILE. # If you want to configure how your package is uploaded, modify the Config.ps1 file. # To run this script from inside Visual Studio, right-click on the "RunMeToUploadNuGetPackage.cmd" file and choose "Run". #=======================...
PowerShellCorpus/Github/BikS2013_bUtility/bUtility.SecurityToken/_CreateNewNuGetPackage/DoNotModify/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/BikS2013_bUtility/bUtility.SecurityToken/_CreateNewNuGetPackage/DoNotModify/CreateNuGetPackage.ps1
CreateNuGetPackage.ps1
#========================================================== # DO NOT EDIT THIS FILE. # If you want to configure how your package is created, modify the Config.ps1 file. # # This script is ran automatically after every successful build. # This script creates a NuGet package for the current project, and places the ....
PowerShellCorpus/Github/BikS2013_bUtility/bUtility.Logging/_CreateNewNuGetPackage/Config.ps1
Config.ps1
#========================================================== # Edit the variable values below to configure how your .nupkg file is packed (i.e. created) and pushed (i.e. uploaded) to the NuGet gallery. # # If you have modified this script: # - if you uninstall the "Create New NuGet Package From Project After Each Bu...
PowerShellCorpus/Github/BikS2013_bUtility/bUtility.Logging/_CreateNewNuGetPackage/DoNotModify/UploadNuGetPackage.ps1
UploadNuGetPackage.ps1
#========================================================== # DO NOT EDIT THIS FILE. # If you want to configure how your package is uploaded, modify the Config.ps1 file. # To run this script from inside Visual Studio, right-click on the "RunMeToUploadNuGetPackage.cmd" file and choose "Run". #=======================...
PowerShellCorpus/Github/BikS2013_bUtility/bUtility.Logging/_CreateNewNuGetPackage/DoNotModify/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/BikS2013_bUtility/bUtility.Logging/_CreateNewNuGetPackage/DoNotModify/CreateNuGetPackage.ps1
CreateNuGetPackage.ps1
#========================================================== # DO NOT EDIT THIS FILE. # If you want to configure how your package is created, modify the Config.ps1 file. # # This script is ran automatically after every successful build. # This script creates a NuGet package for the current project, and places the ....
PowerShellCorpus/Github/BikS2013_bUtility/bUtility.Dapper.Oracle/_CreateNewNuGetPackage/Config.ps1
Config.ps1
#========================================================== # Edit the variable values below to configure how your .nupkg file is packed (i.e. created) and pushed (i.e. uploaded) to the NuGet gallery. # # If you have modified this script: # - if you uninstall the "Create New NuGet Package From Project After Each Bu...
PowerShellCorpus/Github/BikS2013_bUtility/bUtility.Dapper.Oracle/_CreateNewNuGetPackage/DoNotModify/UploadNuGetPackage.ps1
UploadNuGetPackage.ps1
#========================================================== # DO NOT EDIT THIS FILE. # If you want to configure how your package is uploaded, modify the Config.ps1 file. # To run this script from inside Visual Studio, right-click on the "RunMeToUploadNuGetPackage.cmd" file and choose "Run". #=======================...
PowerShellCorpus/Github/BikS2013_bUtility/bUtility.Dapper.Oracle/_CreateNewNuGetPackage/DoNotModify/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/BikS2013_bUtility/bUtility.Dapper.Oracle/_CreateNewNuGetPackage/DoNotModify/CreateNuGetPackage.ps1
CreateNuGetPackage.ps1
#========================================================== # DO NOT EDIT THIS FILE. # If you want to configure how your package is created, modify the Config.ps1 file. # # This script is ran automatically after every successful build. # This script creates a NuGet package for the current project, and places the ....
PowerShellCorpus/Github/BikS2013_bUtility/bUtility/_CreateNewNuGetPackage/Config.ps1
Config.ps1
#========================================================== # Edit the variable values below to configure how your .nupkg file is packed (i.e. created) and pushed (i.e. uploaded) to the NuGet gallery. # # If you have modified this script: # - if you uninstall the "Create New NuGet Package From Project After Each Bu...
PowerShellCorpus/Github/BikS2013_bUtility/bUtility/_CreateNewNuGetPackage/DoNotModify/UploadNuGetPackage.ps1
UploadNuGetPackage.ps1
#========================================================== # DO NOT EDIT THIS FILE. # If you want to configure how your package is uploaded, modify the Config.ps1 file. # To run this script from inside Visual Studio, right-click on the "RunMeToUploadNuGetPackage.cmd" file and choose "Run". #=======================...
PowerShellCorpus/Github/BikS2013_bUtility/bUtility/_CreateNewNuGetPackage/DoNotModify/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/BikS2013_bUtility/bUtility/_CreateNewNuGetPackage/DoNotModify/CreateNuGetPackage.ps1
CreateNuGetPackage.ps1
#========================================================== # DO NOT EDIT THIS FILE. # If you want to configure how your package is created, modify the Config.ps1 file. # # This script is ran automatically after every successful build. # This script creates a NuGet package for the current project, and places the ....
PowerShellCorpus/Github/BikS2013_bUtility/bUtility.Dapper/_CreateNewNuGetPackage/Config.ps1
Config.ps1
#========================================================== # Edit the variable values below to configure how your .nupkg file is packed (i.e. created) and pushed (i.e. uploaded) to the NuGet gallery. # # If you have modified this script: # - if you uninstall the "Create New NuGet Package From Project After Each Bu...
PowerShellCorpus/Github/BikS2013_bUtility/bUtility.Dapper/_CreateNewNuGetPackage/DoNotModify/UploadNuGetPackage.ps1
UploadNuGetPackage.ps1
#========================================================== # DO NOT EDIT THIS FILE. # If you want to configure how your package is uploaded, modify the Config.ps1 file. # To run this script from inside Visual Studio, right-click on the "RunMeToUploadNuGetPackage.cmd" file and choose "Run". #=======================...
PowerShellCorpus/Github/BikS2013_bUtility/bUtility.Dapper/_CreateNewNuGetPackage/DoNotModify/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/BikS2013_bUtility/bUtility.Dapper/_CreateNewNuGetPackage/DoNotModify/CreateNuGetPackage.ps1
CreateNuGetPackage.ps1
#========================================================== # DO NOT EDIT THIS FILE. # If you want to configure how your package is created, modify the Config.ps1 file. # # This script is ran automatically after every successful build. # This script creates a NuGet package for the current project, and places the ....
PowerShellCorpus/Github/BikS2013_bUtility/bUtility.Email/_CreateNewNuGetPackage/Config.ps1
Config.ps1
#========================================================== # Edit the variable values below to configure how your .nupkg file is packed (i.e. created) and pushed (i.e. uploaded) to the NuGet gallery. # # If you have modified this script: # - if you uninstall the "Create New NuGet Package From Project After Each Bu...
PowerShellCorpus/Github/BikS2013_bUtility/bUtility.Email/_CreateNewNuGetPackage/DoNotModify/UploadNuGetPackage.ps1
UploadNuGetPackage.ps1
#========================================================== # DO NOT EDIT THIS FILE. # If you want to configure how your package is uploaded, modify the Config.ps1 file. # To run this script from inside Visual Studio, right-click on the "RunMeToUploadNuGetPackage.cmd" file and choose "Run". #=======================...
PowerShellCorpus/Github/BikS2013_bUtility/bUtility.Email/_CreateNewNuGetPackage/DoNotModify/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/BikS2013_bUtility/bUtility.Email/_CreateNewNuGetPackage/DoNotModify/CreateNuGetPackage.ps1
CreateNuGetPackage.ps1
#========================================================== # DO NOT EDIT THIS FILE. # If you want to configure how your package is created, modify the Config.ps1 file. # # This script is ran automatically after every successful build. # This script creates a NuGet package for the current project, and places the ....
PowerShellCorpus/Github/BikS2013_bUtility/bUtility.SimpleInjector/_CreateNewNuGetPackage/Config.ps1
Config.ps1
#========================================================== # Edit the variable values below to configure how your .nupkg file is packed (i.e. created) and pushed (i.e. uploaded) to the NuGet gallery. # # If you have modified this script: # - if you uninstall the "Create New NuGet Package From Project After Each Bu...
PowerShellCorpus/Github/BikS2013_bUtility/bUtility.SimpleInjector/_CreateNewNuGetPackage/DoNotModify/UploadNuGetPackage.ps1
UploadNuGetPackage.ps1
#========================================================== # DO NOT EDIT THIS FILE. # If you want to configure how your package is uploaded, modify the Config.ps1 file. # To run this script from inside Visual Studio, right-click on the "RunMeToUploadNuGetPackage.cmd" file and choose "Run". #=======================...
PowerShellCorpus/Github/BikS2013_bUtility/bUtility.SimpleInjector/_CreateNewNuGetPackage/DoNotModify/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/BikS2013_bUtility/bUtility.SimpleInjector/_CreateNewNuGetPackage/DoNotModify/CreateNuGetPackage.ps1
CreateNuGetPackage.ps1
#========================================================== # DO NOT EDIT THIS FILE. # If you want to configure how your package is created, modify the Config.ps1 file. # # This script is ran automatically after every successful build. # This script creates a NuGet package for the current project, and places the ....
PowerShellCorpus/Github/BikS2013_bUtility/bUtility.Json/_CreateNewNuGetPackage/Config.ps1
Config.ps1
#========================================================== # Edit the variable values below to configure how your .nupkg file is packed (i.e. created) and pushed (i.e. uploaded) to the NuGet gallery. # # If you have modified this script: # - if you uninstall the "Create New NuGet Package From Project After Each Bu...
PowerShellCorpus/Github/BikS2013_bUtility/bUtility.Json/_CreateNewNuGetPackage/DoNotModify/UploadNuGetPackage.ps1
UploadNuGetPackage.ps1
#========================================================== # DO NOT EDIT THIS FILE. # If you want to configure how your package is uploaded, modify the Config.ps1 file. # To run this script from inside Visual Studio, right-click on the "RunMeToUploadNuGetPackage.cmd" file and choose "Run". #=======================...
PowerShellCorpus/Github/BikS2013_bUtility/bUtility.Json/_CreateNewNuGetPackage/DoNotModify/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/BikS2013_bUtility/bUtility.Json/_CreateNewNuGetPackage/DoNotModify/CreateNuGetPackage.ps1
CreateNuGetPackage.ps1
#========================================================== # DO NOT EDIT THIS FILE. # If you want to configure how your package is created, modify the Config.ps1 file. # # This script is ran automatically after every successful build. # This script creates a NuGet package for the current project, and places the ....
PowerShellCorpus/Github/BikS2013_bUtility/bUtility.RestSharp/_CreateNewNuGetPackage/Config.ps1
Config.ps1
#========================================================== # Edit the variable values below to configure how your .nupkg file is packed (i.e. created) and pushed (i.e. uploaded) to the NuGet gallery. # # If you have modified this script: # - if you uninstall the "Create New NuGet Package From Project After Each Bu...
PowerShellCorpus/Github/BikS2013_bUtility/bUtility.RestSharp/_CreateNewNuGetPackage/DoNotModify/UploadNuGetPackage.ps1
UploadNuGetPackage.ps1
#========================================================== # DO NOT EDIT THIS FILE. # If you want to configure how your package is uploaded, modify the Config.ps1 file. # To run this script from inside Visual Studio, right-click on the "RunMeToUploadNuGetPackage.cmd" file and choose "Run". #=======================...
PowerShellCorpus/Github/BikS2013_bUtility/bUtility.RestSharp/_CreateNewNuGetPackage/DoNotModify/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/BikS2013_bUtility/bUtility.RestSharp/_CreateNewNuGetPackage/DoNotModify/CreateNuGetPackage.ps1
CreateNuGetPackage.ps1
#========================================================== # DO NOT EDIT THIS FILE. # If you want to configure how your package is created, modify the Config.ps1 file. # # This script is ran automatically after every successful build. # This script creates a NuGet package for the current project, and places the ....
PowerShellCorpus/Github/BikS2013_bUtility/bUtility.ReverseProxy/_CreateNewNuGetPackage/Config.ps1
Config.ps1
#========================================================== # Edit the variable values below to configure how your .nupkg file is packed (i.e. created) and pushed (i.e. uploaded) to the NuGet gallery. # # If you have modified this script: # - if you uninstall the "Create New NuGet Package From Project After Each Bu...
PowerShellCorpus/Github/BikS2013_bUtility/bUtility.ReverseProxy/_CreateNewNuGetPackage/DoNotModify/UploadNuGetPackage.ps1
UploadNuGetPackage.ps1
#========================================================== # DO NOT EDIT THIS FILE. # If you want to configure how your package is uploaded, modify the Config.ps1 file. # To run this script from inside Visual Studio, right-click on the "RunMeToUploadNuGetPackage.cmd" file and choose "Run". #=======================...
PowerShellCorpus/Github/BikS2013_bUtility/bUtility.ReverseProxy/_CreateNewNuGetPackage/DoNotModify/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/BikS2013_bUtility/bUtility.ReverseProxy/_CreateNewNuGetPackage/DoNotModify/CreateNuGetPackage.ps1
CreateNuGetPackage.ps1
#========================================================== # DO NOT EDIT THIS FILE. # If you want to configure how your package is created, modify the Config.ps1 file. # # This script is ran automatically after every successful build. # This script creates a NuGet package for the current project, and places the ....
PowerShellCorpus/Github/BikS2013_bUtility/bUtility.WebApi/_CreateNewNuGetPackage/Config.ps1
Config.ps1
#========================================================== # Edit the variable values below to configure how your .nupkg file is packed (i.e. created) and pushed (i.e. uploaded) to the NuGet gallery. # # If you have modified this script: # - if you uninstall the "Create New NuGet Package From Project After Each Bu...
PowerShellCorpus/Github/BikS2013_bUtility/bUtility.WebApi/_CreateNewNuGetPackage/DoNotModify/UploadNuGetPackage.ps1
UploadNuGetPackage.ps1
#========================================================== # DO NOT EDIT THIS FILE. # If you want to configure how your package is uploaded, modify the Config.ps1 file. # To run this script from inside Visual Studio, right-click on the "RunMeToUploadNuGetPackage.cmd" file and choose "Run". #=======================...
PowerShellCorpus/Github/BikS2013_bUtility/bUtility.WebApi/_CreateNewNuGetPackage/DoNotModify/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/BikS2013_bUtility/bUtility.WebApi/_CreateNewNuGetPackage/DoNotModify/CreateNuGetPackage.ps1
CreateNuGetPackage.ps1
#========================================================== # DO NOT EDIT THIS FILE. # If you want to configure how your package is created, modify the Config.ps1 file. # # This script is ran automatically after every successful build. # This script creates a NuGet package for the current project, and places the ....
PowerShellCorpus/Github/BikS2013_bUtility/bUtility.ServiceRegistry/_CreateNewNuGetPackage/Config.ps1
Config.ps1
#========================================================== # Edit the variable values below to configure how your .nupkg file is packed (i.e. created) and pushed (i.e. uploaded) to the NuGet gallery. # # If you have modified this script: # - if you uninstall the "Create New NuGet Package From Project After Each Bu...
PowerShellCorpus/Github/BikS2013_bUtility/bUtility.ServiceRegistry/_CreateNewNuGetPackage/DoNotModify/UploadNuGetPackage.ps1
UploadNuGetPackage.ps1
#========================================================== # DO NOT EDIT THIS FILE. # If you want to configure how your package is uploaded, modify the Config.ps1 file. # To run this script from inside Visual Studio, right-click on the "RunMeToUploadNuGetPackage.cmd" file and choose "Run". #=======================...
PowerShellCorpus/Github/BikS2013_bUtility/bUtility.ServiceRegistry/_CreateNewNuGetPackage/DoNotModify/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/BikS2013_bUtility/bUtility.ServiceRegistry/_CreateNewNuGetPackage/DoNotModify/CreateNuGetPackage.ps1
CreateNuGetPackage.ps1
#========================================================== # DO NOT EDIT THIS FILE. # If you want to configure how your package is created, modify the Config.ps1 file. # # This script is ran automatically after every successful build. # This script creates a NuGet package for the current project, and places the ....
PowerShellCorpus/Github/BikS2013_bUtility/bUtility.Sts/_CreateNewNuGetPackage/Config.ps1
Config.ps1
#========================================================== # Edit the variable values below to configure how your .nupkg file is packed (i.e. created) and pushed (i.e. uploaded) to the NuGet gallery. # # If you have modified this script: # - if you uninstall the "Create New NuGet Package From Project After Each Bu...
PowerShellCorpus/Github/BikS2013_bUtility/bUtility.Sts/_CreateNewNuGetPackage/DoNotModify/UploadNuGetPackage.ps1
UploadNuGetPackage.ps1
#========================================================== # DO NOT EDIT THIS FILE. # If you want to configure how your package is uploaded, modify the Config.ps1 file. # To run this script from inside Visual Studio, right-click on the "RunMeToUploadNuGetPackage.cmd" file and choose "Run". #=======================...
PowerShellCorpus/Github/BikS2013_bUtility/bUtility.Sts/_CreateNewNuGetPackage/DoNotModify/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/BikS2013_bUtility/bUtility.Sts/_CreateNewNuGetPackage/DoNotModify/CreateNuGetPackage.ps1
CreateNuGetPackage.ps1
#========================================================== # DO NOT EDIT THIS FILE. # If you want to configure how your package is created, modify the Config.ps1 file. # # This script is ran automatically after every successful build. # This script creates a NuGet package for the current project, and places the ....
PowerShellCorpus/Github/BikS2013_bUtility/bUtility.CookieHandler/_CreateNewNuGetPackage/Config.ps1
Config.ps1
#========================================================== # Edit the variable values below to configure how your .nupkg file is packed (i.e. created) and pushed (i.e. uploaded) to the NuGet gallery. # # If you have modified this script: # - if you uninstall the "Create New NuGet Package From Project After Each Bu...
PowerShellCorpus/Github/BikS2013_bUtility/bUtility.CookieHandler/_CreateNewNuGetPackage/DoNotModify/UploadNuGetPackage.ps1
UploadNuGetPackage.ps1
#========================================================== # DO NOT EDIT THIS FILE. # If you want to configure how your package is uploaded, modify the Config.ps1 file. # To run this script from inside Visual Studio, right-click on the "RunMeToUploadNuGetPackage.cmd" file and choose "Run". #=======================...
PowerShellCorpus/Github/BikS2013_bUtility/bUtility.CookieHandler/_CreateNewNuGetPackage/DoNotModify/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/BikS2013_bUtility/bUtility.CookieHandler/_CreateNewNuGetPackage/DoNotModify/CreateNuGetPackage.ps1
CreateNuGetPackage.ps1
#========================================================== # DO NOT EDIT THIS FILE. # If you want to configure how your package is created, modify the Config.ps1 file. # # This script is ran automatically after every successful build. # This script creates a NuGet package for the current project, and places the ....
PowerShellCorpus/Github/BikS2013_bUtility/bUtility.Dapper.Sql/_CreateNewNuGetPackage/Config.ps1
Config.ps1
#========================================================== # Edit the variable values below to configure how your .nupkg file is packed (i.e. created) and pushed (i.e. uploaded) to the NuGet gallery. # # If you have modified this script: # - if you uninstall the "Create New NuGet Package From Project After Each Bu...
PowerShellCorpus/Github/BikS2013_bUtility/bUtility.Dapper.Sql/_CreateNewNuGetPackage/DoNotModify/UploadNuGetPackage.ps1
UploadNuGetPackage.ps1
#========================================================== # DO NOT EDIT THIS FILE. # If you want to configure how your package is uploaded, modify the Config.ps1 file. # To run this script from inside Visual Studio, right-click on the "RunMeToUploadNuGetPackage.cmd" file and choose "Run". #=======================...
PowerShellCorpus/Github/BikS2013_bUtility/bUtility.Dapper.Sql/_CreateNewNuGetPackage/DoNotModify/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/BikS2013_bUtility/bUtility.Dapper.Sql/_CreateNewNuGetPackage/DoNotModify/CreateNuGetPackage.ps1
CreateNuGetPackage.ps1
#========================================================== # DO NOT EDIT THIS FILE. # If you want to configure how your package is created, modify the Config.ps1 file. # # This script is ran automatically after every successful build. # This script creates a NuGet package for the current project, and places the ....
PowerShellCorpus/Github/michaehg_KulturIT/SwitchConfigDownloader.ps1
SwitchConfigDownloader.ps1
#requires -version 4 $ErrorActionPreference = "SilentlyContinue" clear-host # importing the function . "K:\System_Teknisk\Powershell Script\functions\Get-Switch-Config.ps1" $TftpPath = "K:\System_Teknisk\Powershell Script\TFTP\tftpd64.exe" $RootPath = "K:\Dokumentasjon\10 MuseumsIT\Nettverk\Konfigfiler - ...
PowerShellCorpus/Github/michaehg_KulturIT/Get-Switch-Config.ps1
Get-Switch-Config.ps1
# TODO :: Presiser hvilke steder konfigene hører til # TODO :: Putte gamle filer i .\OLD Function Get-Switch-Config { [CmdletBinding()] Param ( [Parameter(Mandatory=$True, ValueFromPipeline=$True)] [string[]]$RemoteHosts, [switch]$Prompt, [string]$Password, ...
PowerShellCorpus/Github/michaehg_KulturIT/RemoteInfoSniffer.ps1
RemoteInfoSniffer.ps1
$ErrorActionPreference = "SilentlyContinue" $IPRegex = "(\d{1,3}\.){3}\d{1,3}" $MACRegex = "([A-F0-9]{2}-?){6}" if ($host.Version -lt [Version]"3.0") { Write-Host ("Your version of Powershell is too old!`n`n" + $host.Version + "`n`nPlease update or run from another computer!") cmd /c pause | out-null ...
PowerShellCorpus/Github/michaehg_KulturIT/AutoConfigDownloader.ps1
AutoConfigDownloader.ps1
#requires -version 4 clear-host . "K:\System_Teknisk\Powershell Script\functions\Get-Switch-Config.ps1" $TftpPath = "K:\System_Teknisk\Powershell Script\TFTP" $WaitTime = 150 $AutoTries = 4 $SearchRoot = ".\Konfigfiler" $LogDir = ".\logs" $Structure = ".\structure.txt" $FailLog = ".\get-config_FAILURES...
PowerShellCorpus/Github/michaehg_KulturIT/functions/Get-Switch-Config.ps1
Get-Switch-Config.ps1
Function Get-Switch-Config { [CmdletBinding()] Param ( [Parameter(Mandatory=$True, ValueFromPipeline=$True)] [string[]]$RemoteHosts, [switch]$Prompt, [string]$Password, [string]$RootPath = "K:\Dokumentasjon\10 MuseumsIT\Nettverk\Konfigfiler - Automatisk Backup",...
PowerShellCorpus/Github/vvchistiakov_adsi4posh/adsi4posh.tests.ps1
adsi4posh.tests.ps1
Clear-Host; $here = Split-Path -Path $MyInvocation.MyCommand.Path -Parent; $env:PSModulePath = $env:PSModulePath.Insert(0, (Split-Path -Path $here -Parent) + ';'); $name = $MyInvocation.MyCommand.Name.Split('.')[0]; Import-Module $name -Force; function test1 { Write-Host "Test 1: get Default"; $dnc = Get-Def...
PowerShellCorpus/Github/IVOXY_codesnippets/Add Users to AD.ps1
Add Users to AD.ps1
#$Users = @("Test3","Test4") $Users = @("Student01","Student02","Student03","Student04","Student05","Student06","Student07","Student08","Student09","Student10","Student11","Student12","Student13","Student14","Student15","Student16","Student17","Student18","Student19","Student20") $Password = Convertto-securestring "I...
PowerShellCorpus/Github/IVOXY_codesnippets/Add Powershell module for AD to Windows 10.ps1
Add Powershell module for AD to Windows 10.ps1
#requires -RunAsAdministrator # Is the OS Windows 10? If ((Get-CimInstance Win32_OperatingSystem).Caption -like "*Windows 10*") {} else {} # Is the RSAT already installed? If (Get-HotFix -Id KB2693643 -ErrorAction SilentlyContinue) {} else {} # Is this x86 or x64 CPU? If ((Get-CimInstance Win32_ComputerSys...
PowerShellCorpus/Github/IVOXY_codesnippets/BuildIVOXYTestVMs.ps1
BuildIVOXYTestVMs.ps1
#Build Performance VMs $viserver = "seadc1vc01.ldthost.pvt" connect-viserver -server $viserver #Global Variables $TemplateName = "SEADC1-W2012R2" $VMs = @("seadc1-ivoxytest1","seadc1-ivoxytest2","seadc1-ivoxytest3","seadc1-ivoxytest4") $Custom = "IVOXY-Win-DHCP" $Portgroup = "VLAN48-ESXi-MGMT" $dvswit...
PowerShellCorpus/Github/IVOXY_codesnippets/BuildLabESX.ps1
BuildLabESX.ps1
$jsonpath = "c:\git\codesnippets\LabESXConfig.json" try { $config = Get-Content -Raw -Path $jsonpath |convertfrom-json write-host -BackgroundColor:Black -foregroundcolor:yellow "Status: Parsed Configuration" } catch {throw "I don't have a valid config"} connect-viserver -server ...
PowerShellCorpus/Github/ranjithlav_PowerMe/Revert.ps1
Revert.ps1
Clear-Host $scriptPath = split-path -parent $MyInvocation.MyCommand.Definition #PolicyAndElavated.ps1 . "$scriptPath\PolicyAndElavated.ps1" | Out-Null #Global variables and Functions . "$scriptPath\GlobalVar.ps1" | Out-Null Function Revert() { Log "H" "Revert start" Try { $binar...
PowerShellCorpus/Github/ranjithlav_PowerMe/ServerUnZip.ps1
ServerUnZip.ps1
Param($baseWindowsDir, $sourceZipFileName, $baseDefaultFolder, $setupFolder, $updateFolder, $powerShellFolder, $serviceLogFolder) Function CheckExecutionPolicy() { Param($Policy) Set-ExecutionPolicy -ExecutionPolicy $Policy -Scope LocalMachine -Force If ((get-ExecutionPolicy) -ne $Policy) { ...
PowerShellCorpus/Github/ranjithlav_PowerMe/Deploy.ps1
Deploy.ps1
Clear-Host $scriptPath = split-path -parent $MyInvocation.MyCommand.Definition #PolicyAndElavated.ps1 . "$scriptPath\PolicyAndElavated.ps1" | Out-Null #Global variables and Functions . "$scriptPath\GlobalVar.ps1" | Out-Null Function Deploy() { Log "H" "Deploy start" $deployZip = "ConversionSe...
PowerShellCorpus/Github/ranjithlav_PowerMe/UpdateConfigFiles.ps1
UpdateConfigFiles.ps1
Function UpdateConversionServiceConfig() { Param ($ConversionServiceConfigPath, $DestinationFilePath, $MasterPath, $PoolingCount) [xml]$conversionClientConfig = Get-Content $ConversionServiceConfigPath Log "I" "Updating Config file" foreach($keys in $conversionClientConfig.configuration.app...
PowerShellCorpus/Github/ranjithlav_PowerMe/GlobalVar.ps1
GlobalVar.ps1
Param($baseWindowsDir, $sourceZipFileName, $baseDefaultFolder, $setupFolder, $updateFolder, $powerShellFolder, $serviceLogFolder, $serverBinariesFolder, $serviceName, $applicationPort, $resourcePoolCount, $tempDiskSize, $virtualDiskSize, $msOfficeKeyFileName, $automateMMCFileName, $automationMode, $debugLog) $Global...
PowerShellCorpus/Github/ranjithlav_PowerMe/CreateWebsite.ps1
CreateWebsite.ps1
# Load IIS tools Import-Module WebAdministration sleep 2 #see http://stackoverflow.com/questions/14862854/powershell-command-get-childitem-iis-sites-causes-an-error Function CreateWebSite() { # Get SiteName and AppPool from script args $siteName = $Global:ApplicationName # "default web site" $...
PowerShellCorpus/Github/ranjithlav_PowerMe/ConfigIIS.ps1
ConfigIIS.ps1
Import-Module ServerManager Function EnableIISfeatures() { Log "I" 'Enabling IIS and sub-features' Log "I" "Enabling Web-Server" Add-WindowsFeature Web-Server -ErrorAction SilentlyContinue Log "I" "Enabling Web-Common-Http" Add-WindowsFeature Web-Common-Http -ErrorAction SilentlyCon...
PowerShellCorpus/Github/ranjithlav_PowerMe/MasterEnd.ps1
MasterEnd.ps1
IISRESET Write-Host "Automation script executed successfully." Write-Host "Server will get restart in 10 seconds..." Start-Sleep -Seconds 10 Restart-Computer -Force
PowerShellCorpus/Github/ranjithlav_PowerMe/ChangeTempPath.ps1
ChangeTempPath.ps1
Function ChangeTempVarPath { Param($envTempPath, $envProp, $newPath) #ChangeTempVarPath "HKLM:\System\CurrentControlSet\Control\Session Manager\Environment\" "TEMP" "C:\tools\" #ChangeTempVarPath $Global:tempEnvPath $Global:tempEnvProp $Global:tempDisk #$newPath = %USERPROFILE%\AppData\Local\Temp...
PowerShellCorpus/Github/ranjithlav_PowerMe/IMdisk.ps1
IMdisk.ps1
Function Install_IMdisk_CreateVD() { Param($imFilePath, $virtualDiskT, $virtualDiskV, $virtualDiskTSize, $virtualDiskVSize) $batFilePath = $imFilePath | split-path -parent Log "D" "Batch file path: $batFilePath" Log "I" "Creating Virtual disks '$virtualDiskT ($virtualDiskTSize)' and '$v...
PowerShellCorpus/Github/ranjithlav_PowerMe/Startup.ps1
Startup.ps1
Param($WASPPath) Function AdminElavated() { # Get the ID and security principal of the current user account $myWindowsID=[System.Security.Principal.WindowsIdentity]::GetCurrent() $myWindowsPrincipal=new-object System.Security.Principal.WindowsPrincipal($myWindowsID) # Get the security principal for the Admi...
PowerShellCorpus/Github/ranjithlav_PowerMe/AutomateMMC.ps1
AutomateMMC.ps1
Param($automationScriptPath) #Start-Process 'C:\Windows\System32\dcomcnfg.exe' -PassThru #$automationScriptPath = "C:\temp\setup\CreateVirtualDisk.bat" Write-Host "Call $automationScriptPath" cmd.exe "/c $automationScriptPath" Write-Host "The Exit code from $automationScriptPath is " $LastExitCode #cmd...
PowerShellCorpus/Github/ranjithlav_PowerMe/LaunchAndActivationPermission.ps1
LaunchAndActivationPermission.ps1
Function get-sid { Param ($DSIdentity) $ID = new-object System.Security.Principal.NTAccount($DSIdentity) return $ID.Translate( [System.Security.Principal.SecurityIdentifier] ).toString() } Function LaunchAndActivationPermission() { Log "H" "Enabling DCOM settings..." #$sid = get-sid "AN...
PowerShellCorpus/Github/ranjithlav_PowerMe/CreateFolders.ps1
CreateFolders.ps1
Function FolderCreation() { Param($baseFolderPath, $folderName) Try { $parentFolderName = "{0}\{1}" -f $baseFolderPath, $folderName Log "D" $parentFolderName $folderExists = Test-Path $parentFolderName If($folderExists -eq $false) { Log...
PowerShellCorpus/Github/ranjithlav_PowerMe/MasterRun.ps1
MasterRun.ps1
Param($baseWindowsDir, $sourceZipFileName, $baseDefaultFolder, $setupFolder, $updateFolder, $powerShellFolder, $serviceLogFolder, $serverBinariesFolder, $serviceName, $applicationPort, $resourcePoolCount, $tempDiskSize, $virtualDiskSize, $msOfficeKeyFileName, $automateMMCFileName, $automationMode, $debugLog) $script...
PowerShellCorpus/Github/ranjithlav_PowerMe/InstallMsOffice.ps1
InstallMsOffice.ps1
Function CreateMsOfficeSetupConfig() { Param($msOfficeKey, $configFilePath) # get an XMLTextWriter to create the XML $XmlWriter = New-Object System.XMl.XmlTextWriter($configFilePath,$Null) # choose a pretty formatting: $xmlWriter.Formatting = 'Indented' $xmlWriter.Indentation = 1...
PowerShellCorpus/Github/ranjithlav_PowerMe/ClientUnZip.ps1
ClientUnZip.ps1
Param($clientZipFileName, $conversionClientAppFolder, $svcName, $CoversionProfilingClientEXE, $serverIP, $outputFolder, $clientFolder, $serverFolder, $totalRequest, $parallelBatch) Function GetPath() { $Invocation = (Get-Variable MyInvocation -Scope 1).Value $executionPath = Split-Path $Invocation.MyCo...
PowerShellCorpus/Github/ranjithlav_PowerMe/PolicyAndElavated.ps1
PolicyAndElavated.ps1
Function CheckExecutionPolicy() { Param($Policy) Set-ExecutionPolicy -ExecutionPolicy $Policy -Scope LocalMachine -Force If ((get-ExecutionPolicy) -ne $Policy) { Write-Host "Script Execution is disabled. Enabling it now" Set-ExecutionPolicy $Policy -Force Write-Host "Please Re...
PowerShellCorpus/Github/ranjithlav_PowerMe/RegistryEditor.ps1
RegistryEditor.ps1
Function RegEdit() { Param ($keyPath, $itemName, $propName, $propType, $propValue) #RegEdit "HKLM:\Software\Microsoft\Office\15.0\" "FirstRun" "BootedRTM" "DWORD" "00000001" $propPath = $keyPath + $itemName $isExists = Test-Path $propPath Log "D" "$isExists : $propPath" If($isExists -e...
PowerShellCorpus/Github/ranjithlav_PowerMe/ChangingOwnership.ps1
ChangingOwnership.ps1
Function ChangeOwnership() { Param($AppID, $Owners, $accessLevels) #ChangeOwnership $Global:WordAppID $Global:OwnerTo $Global:UserAccessLevel #$AppID = $Global:WordAppID #$Owners = $Global:OwnerTo #$accessLevels = $Global:UserAccessLevel $Keys = "HKLM:\Software\Classes\AppID\$AppID"...
PowerShellCorpus/Github/ranjithlav_PowerMe/EnablePrivilege.ps1
EnablePrivilege.ps1
Function Enable-Privilege { param([ValidateSet("SeAssignPrimaryTokenPrivilege", "SeAuditPrivilege", "SeBackupPrivilege", "SeChangeNotifyPrivilege", "SeCreateGlobalPrivilege", "SeCreatePagefilePrivilege", "SeCreatePermanentPrivilege", "SeCreateSymbolicLinkPrivilege", "SeCreateTokenPrivilege", "SeDebugPri...
PowerShellCorpus/Github/OpenLocalizationTestOrg_azure-docs-pr6_ko-KR/.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...