full_path stringlengths 31 232 | filename stringlengths 4 167 | content stringlengths 0 48.3M |
|---|---|---|
PowerShellCorpus/Github/anwather_ARM-Demo/ARM Demo/Scripts/Deploy-AzureResourceGroup.ps1 | Deploy-AzureResourceGroup.ps1 | #Requires -Version 3.0
Param(
[string] [Parameter(Mandatory=$true)] $ResourceGroupLocation,
[string] $ResourceGroupName = 'ARMDemo',
[switch] $UploadArtifacts,
[string] $StorageAccountName,
[string] $StorageAccountResourceGroupName,
[string] $StorageContainerName = $ResourceGroupName.ToLowerInva... |
PowerShellCorpus/Github/MatthewFlatt_SOCAutoLinkDatabases/SOCTFSLinking.ps1 | SOCTFSLinking.ps1 | # Powershell script to hook up databases to SQL Source Control.
#
# Currently only for Shared-mode databases and TFS.
# Needs to be run on the SSMS client machine, with SQL Source Control already installed, logged in with the correct user.
# Requires Microsoft Visual Studio Team Foundation Server Power Tools to be ... |
PowerShellCorpus/Github/1RedOne_TechStravaganza/LoadScripts.ps1 | LoadScripts.ps1 | gci -path "C:\users\sred13\Dropbox\Speaking\TechStravaganza\0* *ps1" | % {
write-host "Loading " -NoNewline
write-host -ForegroundColor Yellow $_.BaseName -NoNewline
$psISE.CurrentPowerShellTab.Files.Add($_.FullName) | out-null
write-host ":[OK]" -ForegroundColor Green
} |
PowerShellCorpus/Github/1RedOne_TechStravaganza/05 tabbed gui.ps1 | 05 tabbed gui.ps1 | #ERASE ALL THIS AND PUT XAML BELOW between the @" "@
#
$inputXML = @"
<Window x:Class="Online_Tester.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2... |
PowerShellCorpus/Github/1RedOne_TechStravaganza/BootCampMachineConfig_pre.ps1 | BootCampMachineConfig_pre.ps1 | if (-not(test-path C:\PowerShell)){mkdir C:\PowerShell }
Set-Location C:\PowerShell
cls
Write-host "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
Write-host " FOXDeploy One Click Domain Controller "
Write-host "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
Write-host "This tool will walk you through a few key config... |
PowerShellCorpus/Github/1RedOne_TechStravaganza/02 dotNet Pinger.ps1 | 02 dotNet Pinger.ps1 | #region Boring beginning stuff
[void] [System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms")
[void] [System.Reflection.Assembly]::LoadWithPartialName("System.Drawing")
#endregion
#region begin to draw forms
#draw background and name the window
$Form = New-Object System.Windows.Forms.Form
... |
PowerShellCorpus/Github/1RedOne_TechStravaganza/06 functional tabbed gui.ps1 | 06 functional tabbed gui.ps1 | #
#
# Proceed to VM 2
#
#
#ERASE ALL THIS AND PUT XAML BELOW between the @" "@
$inputXML = @"
<Window x:Class="BlogPostIII.TabbedInt"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schema... |
PowerShellCorpus/Github/1RedOne_TechStravaganza/BootCampMachineConfig_post.ps1 | BootCampMachineConfig_post.ps1 | #region gui
#ERASE ALL THIS AND PUT XAML BELOW between the @" "@
$inputXML = @"
<Window x:Class="BlogPostIII.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expre... |
PowerShellCorpus/Github/1RedOne_TechStravaganza/BootCampMachineConfig.ps1 | BootCampMachineConfig.ps1 | if (-not(test-path C:\PowerShell)){mkdir C:\PowerShell }
Set-Location C:\PowerShell
cls
Write-host "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
Write-host " FOXDeploy One Click Domain Controller "
Write-host "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
Write-host "This tool will walk you through a few key config... |
PowerShellCorpus/Github/1RedOne_TechStravaganza/03 Sapien.ps1 | 03 Sapien.ps1 | #------------------------------------------------------------------------
# Source File Information (DO NOT MODIFY)
# Source ID: e003010b-d681-442d-b757-1cd31a20ec09
# Source File: UserAndComputerOU_tool.pff
#------------------------------------------------------------------------
#region File Recovery Data (DO NO... |
PowerShellCorpus/Github/1RedOne_TechStravaganza/01 ShellObject.ps1 | 01 ShellObject.ps1 | $a = new-object -comobject wscript.shell
$b = $a.popup(“Have you uninstalled Java from Control Panel? “,0,”Java Folder Removal Tool”,3)
# to control the icons 4,16,32,64
#+to modify buttons add 1,2,3,4,5
#Response codes
#yes = 6
#no = 7
#retr
#canc
#abor
if ($b -eq 6){
#user selected Yes
... |
PowerShellCorpus/Github/1RedOne_TechStravaganza/04 ShowUi.ps1 | 04 ShowUi.ps1 | #ShowUI by Joel Finke and Doglas Finke
#find-module showUI | Install-Module
#ipmo ShowUi
#See the commands
#gcm -Module ShowUI
<#
$getEventInput = StackPanel -ControlName 'Get-EventLogsSinceDate' {
New-Label -VisualStyle 'MediumText' "Log Name"
New-ComboBox -IsEditable:$false ... |
PowerShellCorpus/Github/1RedOne_TechStravaganza/00 you down with OGV.ps1 | 00 you down with OGV.ps1 | #OGV
Get-Service | Out-GridView -PassThru -Title "Pick Service to Restart" | Restart-service -WhatIf
#list of computers
"ComputerA","ComputerB","ComputerC"
#pick a pc
#| out-gridview -PassThru -Title "Pick computer to restart services"
#use Set-Service for remote systems |
PowerShellCorpus/Github/dbroeglin_windows-lab2/LabConfig.ps1 | LabConfig.ps1 | Configuration LabConfig {
Param (
[Parameter()]
[PSCredential]
[System.Management.Automation.Credential()]
$Credential = [PSCredential]::new("Administrator", (ConvertTo-SecureString -AsPlainText -Force "Passw0rd")),
[Parameter()] [String] $DownloadDir = "C:\Downloads"... |
PowerShellCorpus/Github/dbroeglin_windows-lab2/NSConfig.ps1 | NSConfig.ps1 | [CmdletBinding()]
Param(
$Hostname = "ns01",
$Nsip = "10.0.0.10",
$Snip = "10.0.0.11",
$SnipSubnetMask = "255.255.255.0",
$Username = "nsroot",
$Password = "nsroot",
$Timezone = 'GMT+01:00-CET-Europe/Zurich',
$DCIP... |
PowerShellCorpus/Github/dbroeglin_windows-lab2/NSConfigHelpers.ps1 | NSConfigHelpers.ps1 | function Connect-NetscalerInstance {
Param(
$NSIP,
$Username,
$Password
)
Write-Verbose "Connecting to Netscaler on IP $NSip..."
$SecurePassword = ConvertTo-SecureString $Password -AsPlainText -Force
$Credential = New-Object System.Management.Automation.PSCredential (... |
PowerShellCorpus/Github/dbroeglin_windows-lab2/Windows-Lab2.build.ps1 | Windows-Lab2.build.ps1 | [CmdletBinding()]
Param(
[String]$VMName,
[String]$ConfigurationFile = "LabConfig.psd1",
[String]$NodeName = "NS01",
[String]$NsUsername = "nsroot",
[String]$NsPassword = "nsroot",
[String]$LabVmPrefix = "LAB"
)
if ($VmName) {
$LabVMName = "$LabVmPref... |
PowerShellCorpus/Github/patrickbarrn_PSSitecoreHelix/PSSitecoreHelix/Private/Add-TdsProjectsForModules.ps1 | Add-TdsProjectsForModules.ps1 | function Add-TdsProjectsForModules
{
[CmdletBinding()]
param (
[Parameter(Mandatory=$true)]
$solutionFolder,
[Parameter(Mandatory=$true)]
[string]$folderPath,
[Parameter(Mandatory=$true)]
[string]$tdsProjectRoot
)
$tdsProjectNames = New-Ob... |
PowerShellCorpus/Github/patrickbarrn_PSSitecoreHelix/PSSitecoreHelix/Private/Get-SolutionFolderForModuleCreation.ps1 | Get-SolutionFolderForModuleCreation.ps1 | function Get-SolutionFolderForModuleCreation
{
param (
[string]$Name
)
return $dte.Solution.Projects | Where-Object { $_.Kind -eq [EnvDTE80.ProjectKinds]::vsProjectKindSolutionFolder -and $_.Name -eq $Name } | Select-Object -First 1
}
Export-ModuleMember -Function Get-SolutionFolderForModul... |
PowerShellCorpus/Github/patrickbarrn_PSSitecoreHelix/PSSitecoreHelix/Public/New-HelixSolution.ps1 | New-HelixSolution.ps1 | function New-HelixSolution
{
$helixPath = Get-HelixFoundationFolder
$solutionName = Get-HelixSolutionUserInput "Please specify you solution name. This could be the company name or overall solution name. e.g. Acme or MSFT" "Empty solution name. Try again."
$foundationNamePrefix = Get-HelixSolutionUserInp... |
PowerShellCorpus/Github/patrickbarrn_PSSitecoreHelix/PSSitecoreHelix/Public/Add-HelixProjectModule.ps1 | Add-HelixProjectModule.ps1 | function Add-HelixProjectModule
{
param(
[Parameter(Mandatory=$true)]
[string]$project
)
$solution = Get-Interface $dte.Solution ([EnvDTE80.Solution2])
$solutionFolder = Split-Path $solution.FullName -Parent
$configFullFilePath = $solutionFolder + $global:solutionConfigNa... |
PowerShellCorpus/Github/patrickbarrn_PSSitecoreHelix/PSSitecoreHelix/Public/Add-HelixFoundationModule.ps1 | Add-HelixFoundationModule.ps1 | function Add-HelixFoundationModule
{
param(
[Parameter(Mandatory=$true)]
[string]$foundation
)
$solution = Get-Interface $dte.Solution ([EnvDTE80.Solution2])
$solutionFolder = Split-Path $solution.FullName -Parent
$configFullFilePath = $solutionFolder + $global:solutionCo... |
PowerShellCorpus/Github/patrickbarrn_PSSitecoreHelix/PSSitecoreHelix/Public/Add-HelixFeatureModule.ps1 | Add-HelixFeatureModule.ps1 | function Add-HelixFeatureModule
{
param(
[Parameter(Mandatory=$true)]
[string]$feature
)
$solution = Get-Interface $dte.Solution ([EnvDTE80.Solution2])
$solutionFolder = Split-Path $solution.FullName -Parent
$configFullFilePath = $solutionFolder + $global:solutionConfigNa... |
PowerShellCorpus/Github/quangpropk_Asp.netMVCAndAngularJS/source/sample/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/quangpropk_Asp.netMVCAndAngularJS/source/sample/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/quangpropk_Asp.netMVCAndAngularJS/source/sample/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/quangpropk_Asp.netMVCAndAngularJS/source/sample/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/quangpropk_Asp.netMVCAndAngularJS/source/sample/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/quangpropk_Asp.netMVCAndAngularJS/source/sample/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/quangpropk_Asp.netMVCAndAngularJS/source/sample/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/quangpropk_Asp.netMVCAndAngularJS/source/sample/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/OPS-E2E-PPE_E2E_Provision_2017_4_18_24_5_18/.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/DBustillo24_ExamenDBustillo/ExamenDBustillo/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/DBustillo24_ExamenDBustillo/ExamenDBustillo/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/DBustillo24_ExamenDBustillo/ExamenDBustillo/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/DBustillo24_ExamenDBustillo/ExamenDBustillo/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/DBustillo24_ExamenDBustillo/ExamenDBustillo/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/DBustillo24_ExamenDBustillo/ExamenDBustillo/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/DBustillo24_ExamenDBustillo/ExamenDBustillo/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/DBustillo24_ExamenDBustillo/ExamenDBustillo/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/DBustillo24_ExamenDBustillo/ExamenDBustillo/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/psCookieMonster_PowerShell/SomeFile.ps1 | SomeFile.ps1 | Get-Help about_* |
PowerShellCorpus/Github/Geekstarexe_Archery-Nerd/ArcheryNerd/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/Geekstarexe_Archery-Nerd/ArcheryNerd/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/Geekstarexe_Archery-Nerd/ArcheryNerd/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/Geekstarexe_Archery-Nerd/ArcheryNerd/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/Geekstarexe_Archery-Nerd/ArcheryNerd/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/Geekstarexe_Archery-Nerd/ArcheryNerd/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/Geekstarexe_Archery-Nerd/ArcheryNerd/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/Geekstarexe_Archery-Nerd/ArcheryNerd/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/Geekstarexe_Archery-Nerd/ArcheryNerd/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/Geekstarexe_Archery-Nerd/ArcheryNerd/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/Geekstarexe_Archery-Nerd/ArcheryNerd/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/Geekstarexe_Archery-Nerd/ArcheryNerd/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/OPS-E2E-PPE_E2E_D_NewRepo_2017_4_21_19_58_22/.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/CyberArkLabs_EasyPeasy/Invoke-DCsync.ps1 | Invoke-DCsync.ps1 | function Invoke-DCSync
{
<#
.SYNOPSIS
Uses dcsync from mimikatz to collect NTLM hashes from the domain.
Author: @monoxgas
Improved by: @harmj0y
Invoke-ReflectivePEInjection
Author: Joe Bialek, Twitter: @JosephBialek
License: BSD 3-Clause
Mimikatz Author: Benjamin DELPY `gentilkiwi`. Blog: http://blog.... |
PowerShellCorpus/Github/CyberArkLabs_EasyPeasy/invoke-parallel.ps1 | invoke-parallel.ps1 | function Invoke-Parallel {
<#
.SYNOPSIS
Function to control parallel processing using runspaces
.DESCRIPTION
Function to control parallel processing using runspaces
Note that each runspace will not have access to variables and commands loaded in your session or in other... |
PowerShellCorpus/Github/CyberArkLabs_EasyPeasy/easypeasy.ps1 | easypeasy.ps1 | <#
Author: Lavi Lazarovitz
Contact: cyberark.labs@cyberark.com
License: GNU v3
#>
function EasyPeasy
{
<#
.SYNOPSIS
Scan for EasyPeasy passwords in Active Directory
.DESCRIPTION
The function first scans for domain accounts with local admininstrato... |
PowerShellCorpus/Github/CyberArkLabs_EasyPeasy/Recon/Invoke-ReverseDnsLookup.ps1 | Invoke-ReverseDnsLookup.ps1 | function Invoke-ReverseDnsLookup
{
<#
.SYNOPSIS
Perform a reverse DNS lookup scan on a range of IP addresses.
PowerSploit Function: Invoke-ReverseDnsLookup
Author: Matthew Graeber (@mattifestation)
License: BSD 3-Clause
Required Dependencies: None
Optional Dependencies: None
.DESCRIPTION
Invoke-Reve... |
PowerShellCorpus/Github/CyberArkLabs_EasyPeasy/Recon/PowerView.ps1 | PowerView.ps1 | #requires -version 2
<#
PowerSploit File: PowerView.ps1
Author: Will Schroeder (@harmj0y)
License: BSD 3-Clause
Required Dependencies: None
Optional Dependencies: None
#>
########################################################
#
# PSReflect code for Windows API access
# Author: @... |
PowerShellCorpus/Github/CyberArkLabs_EasyPeasy/Recon/Get-HttpStatus.ps1 | Get-HttpStatus.ps1 | function Get-HttpStatus
{
<#
.SYNOPSIS
Returns the HTTP Status Codes and full URL for specified paths.
PowerSploit Function: Get-HttpStatus
Author: Chris Campbell (@obscuresec)
License: BSD 3-Clause
Required Dependencies: None
Optional Dependencies: None
.DESCRIPTION
A script to check for the existen... |
PowerShellCorpus/Github/CyberArkLabs_EasyPeasy/Recon/Invoke-Portscan.ps1 | Invoke-Portscan.ps1 | function Invoke-Portscan
{
<#
.SYNOPSIS
Simple portscan module
PowerSploit Function: Invoke-Portscan
Author: Rich Lundeen (http://webstersProdigy.net)
License: BSD 3-Clause
Required Dependencies: None
Optional Dependencies: None
.DESCRIPTION
Does a simple port scan using regular sockets, based (prett... |
PowerShellCorpus/Github/CyberArkLabs_EasyPeasy/Recon/Get-ComputerDetails.ps1 | Get-ComputerDetails.ps1 | function Get-ComputerDetails
{
<#
.SYNOPSIS
This script is used to get useful information from a computer.
Function: Get-ComputerDetails
Author: Joe Bialek, Twitter: @JosephBialek
Required Dependencies: None
Optional Dependencies: None
.DESCRIPTION
This script is used to get useful information from a ... |
PowerShellCorpus/Github/LevonBecker_VmwareTools/SubScripts/Func_Get-FileName_1.0.0.ps1 | Func_Get-FileName_1.0.0.ps1 | #requires –version 2.0
Function Get-FileName {
#region Help
<#
.SYNOPSIS
Produces a Dialog box to select a file from the file system.
.DESCRIPTION
A poppup dialog box that allows you to pick a file from the local system. This can be good for selecting a file as input.
.NOTES
AUTHOR: Levon Becker
ST... |
PowerShellCorpus/Github/LevonBecker_VmwareTools/SubScripts/Func_Show-VmwareToolsTip_1.0.1.ps1 | Func_Show-VmwareToolsTip_1.0.1.ps1 | #requires –version 2.0
Function Show-VmwareToolsTip {
#region Tips
$a = {
Write-Host 'TIP: ' -ForegroundColor Green -NoNewline
Write-Host 'The ' -NoNewline
Write-Host '-FileBrowser ' -ForegroundColor Yellow -NoNewline
Write-host 'switch for Add-NFSDS will show a poppup window to chose your... |
PowerShellCorpus/Github/LevonBecker_VmwareTools/SubScripts/MultiFunc_StopWatch_1.0.2.ps1 | MultiFunc_StopWatch_1.0.2.ps1 | #requires –version 2.0
Function Add-StopWatch {
$Global:StopWatch = New-Object System.Diagnostics.StopWatch
}
Function Show-Stopwatch {
# Display stopwatch Elaped time
$ts = $Global:StopWatch.Elapsed
$timer = [System.String]::Format("{0:00}:{1:00}:{2:00}", $ts.Hours, $ts.Minutes, $ts.Seconds)
Write-Hos... |
PowerShellCorpus/Github/LevonBecker_VmwareTools/SubScripts/Func_Send-VMPowerOn_1.0.4.ps1 | Func_Send-VMPowerOn_1.0.4.ps1 | #requires –version 2.0
Function Send-VMPowerOn {
Param (
[parameter(Position=0,Mandatory=$true)][string]$ComputerName,
[parameter(Mandatory=$true)][string]$SubScripts,
[parameter(Mandatory=$false)][switch]$StayConnected = $false,
[parameter(Mandatory=$true)][string]$vCenter,
[parameter(Mandatory=$fa... |
PowerShellCorpus/Github/LevonBecker_VmwareTools/SubScripts/Func_Get-VmHardware_1.0.5.ps1 | Func_Get-VmHardware_1.0.5.ps1 | #requires –version 2.0
Function Get-VmHardware {
Param (
[parameter(Position=0,Mandatory=$true)][string]$ComputerName,
[parameter(Mandatory=$true)][string]$SubScripts,
[parameter(Mandatory=$false)][switch]$StayConnected,
[parameter(Mandatory=$true)][string]$vCenter,
[parameter(Mandatory=$false)][boo... |
PowerShellCorpus/Github/LevonBecker_VmwareTools/SubScripts/MultiFunc_Show-Script-Status_1.0.3.ps1 | MultiFunc_Show-Script-Status_1.0.3.ps1 | #requires –version 2.0
Function Show-ScriptStatus-StartInfo {
Param (
[parameter(Mandatory=$true)][string]$StartTimeF
)
Write-Host 'STARTING: ' -ForegroundColor Green -NoNewline
Write-Host "$StartTimeFormatted"
Write-Host ''
}
Function Show-ScriptStatus-QueuingJobs {
Write-Host "`r".padright(40,' ... |
PowerShellCorpus/Github/LevonBecker_VmwareTools/SubScripts/Func_Test-Connections_1.0.9.ps1 | Func_Test-Connections_1.0.9.ps1 | #requires –version 2.0
Function Test-Connections {
Param (
[parameter(Position=0,Mandatory=$false)][string]$ComputerName,
[parameter(Mandatory=$false)][array]$List,
[parameter(Mandatory=$true)][string]$SubScripts,
[parameter(Mandatory=$false)][int]$MaxJobs = '25',
[parameter(Mandatory=$true)][string... |
PowerShellCorpus/Github/LevonBecker_VmwareTools/SubScripts/Func_Send-VMPowerOff_1.0.4.ps1 | Func_Send-VMPowerOff_1.0.4.ps1 | #requires –version 2.0
Function Send-VMPowerOff {
Param (
[parameter(Position=0,Mandatory=$true)][string]$ComputerName,
[parameter(Mandatory=$true)][string]$SubScripts,
[parameter(Mandatory=$false)][switch]$StayConnected,
[parameter(Mandatory=$true)][string]$vCenter,
[parameter(Mandatory=$false)][bo... |
PowerShellCorpus/Github/LevonBecker_VmwareTools/SubScripts/Func_Restart-Host_1.0.8.ps1 | Func_Restart-Host_1.0.8.ps1 | #requires –version 2.0
Function Restart-Host {
param(
[parameter(Position=0,Mandatory=$true)][string]$ComputerName,
[parameter(Mandatory=$true)][string]$SubScripts
)
. "$SubScripts\Func_Get-Runtime_1.0.3.ps1"
. "$SubScripts\Func_Test-TCPPort_1.0.4.ps1"
# Clear old psobject if present
If ($glob... |
PowerShellCorpus/Github/LevonBecker_VmwareTools/SubScripts/Func_Connect-ViHost_1.0.8.ps1 | Func_Connect-ViHost_1.0.8.ps1 | #requires –version 2.0
Function Connect-ViHost {
[CmdletBinding()]
Param (
[parameter(Position=0,Mandatory=$true)][string]$ViHost,
[parameter(Mandatory=$true)][string]$SubScripts,
[parameter(Mandatory=$false)][switch]$AltViCreds,
# [parameter(Mandatory=$false)][switch]$Verbose,
[parameter(Mandatory... |
PowerShellCorpus/Github/LevonBecker_VmwareTools/SubScripts/Func_Reset-VmwareToolsUI_1.0.3.ps1 | Func_Reset-VmwareToolsUI_1.0.3.ps1 | #requires –version 2.0
Function Reset-VmwareToolsUI {
Param (
[parameter(Position=0,Mandatory=$true)][string]$StartingWindowTitle,
[parameter(Position=1,Mandatory=$true)][array]$StartupVariables,
[parameter(Mandatory=$true)][string]$SubScripts
)
If ((Get-Command -Name "Show-VmwareToolsHeader" -ErrorA... |
PowerShellCorpus/Github/LevonBecker_VmwareTools/SubScripts/Func_Add-HostToLogFile_1.0.4.ps1 | Func_Add-HostToLogFile_1.0.4.ps1 | #requires –version 2.0
Function Add-HostToLogFile {
Param (
[parameter(Mandatory=$true)][string]$ComputerName,
[parameter(Mandatory=$true)][string]$logfile
)
# CREATE EMPTY FILE IF NEEDED
If ((Test-Path -Path $logfile) -eq $false) {
New-Item -Item file -Path $logfile -Force | Out-Null
}
# WRI... |
PowerShellCorpus/Github/LevonBecker_VmwareTools/SubScripts/Func_Test-Permissions_1.1.0.ps1 | Func_Test-Permissions_1.1.0.ps1 | #requires –version 2.0
Function Test-Permissions {
Param (
[parameter(Position=0,Mandatory=$false)][string]$ComputerName,
[parameter(Mandatory=$false)][array]$List,
[parameter(Mandatory=$false)][int]$MaxJobs = '25',
[parameter(Mandatory=$true)][string]$SubScripts,
[parameter(Mandatory=$true)][... |
PowerShellCorpus/Github/LevonBecker_VmwareTools/SubScripts/Func_Update-VmTools_1.0.9.ps1 | Func_Update-VmTools_1.0.9.ps1 | #requires –version 2.0
Function Update-VmTools {
Param (
[parameter(Position=0,Mandatory=$true)][string]$ComputerName,
[parameter(Mandatory=$true)][string]$SubScripts,
[parameter(Mandatory=$false)][switch]$StayConnected,
[parameter(Mandatory=$true)][string]$vCenter,
[parameter(Mandatory=$false)][boo... |
PowerShellCorpus/Github/LevonBecker_VmwareTools/SubScripts/Func_Get-PendingReboot_1.0.6.ps1 | Func_Get-PendingReboot_1.0.6.ps1 | #requires –version 2.0
Function Get-PendingReboot {
Param (
[parameter(Position=0,Mandatory=$true)][string]$ComputerName,
[parameter(Mandatory=$true)][string]$SubScripts,
[parameter(Mandatory=$true)][string]$Assets
)
# CLEAR VARIABLES
[string]$Notes = ''
[boolean]$Success = $false
[datetime]$Sub... |
PowerShellCorpus/Github/LevonBecker_VmwareTools/SubScripts/Func_Get-JobCount_1.0.3.ps1 | Func_Get-JobCount_1.0.3.ps1 | #requires –version 2.0
Function Get-JobCount {
# CLEAR VARIBLES
[string]$Notes = ''
[boolean]$Success = $false
$JobCount = $null
If ($global:getJobCount) {
Remove-Variable getJobCount -Scope "Global"
}
#region Tasks
# GET TOTAL COUNT OF Jobs
[array]$Jobs = Get-Job
[int]$JobCoun... |
PowerShellCorpus/Github/LevonBecker_VmwareTools/SubScripts/Func_Remove-Jobs_1.0.6.ps1 | Func_Remove-Jobs_1.0.6.ps1 | #requires –version 2.0
Function Remove-Jobs {
Param (
[parameter(Position=0,Mandatory=$false)][string]$JobLogFullName,
[parameter(Mandatory=$false)][int]$Timeout = '400', # 2 minutes = 120 seconds (300 Milliseconds x 400 (Loopcount) = 120000 Milliseconds)
[parameter(Mandatory=$false)][switch]$SkipJobLog
... |
PowerShellCorpus/Github/LevonBecker_VmwareTools/SubScripts/Func_Get-HostIP_1.0.6.ps1 | Func_Get-HostIP_1.0.6.ps1 | #requires –version 2.0
Function Get-HostIP {
Param (
[parameter(Position=0,Mandatory=$true)][string]$ComputerName,
[parameter(Mandatory=$true)][string]$SubScripts,
[parameter(Mandatory=$false)][switch]$StayConnected,
[parameter(Mandatory=$false)][string]$vCenter,
[parameter(Mandatory=$false)][boolea... |
PowerShellCorpus/Github/LevonBecker_VmwareTools/SubScripts/Func_Get-Runtime_1.0.3.ps1 | Func_Get-Runtime_1.0.3.ps1 | #requires –version 2.0
Function Get-Runtime {
Param (
[parameter(Position=0,Mandatory=$true)][datetime]$StartTime
)
# Clear old psobject if present
If ($global:GetRuntime) {
Remove-Variable GetRuntime -Scope Global
}
[string]$Notes = ''
[boolean]$Success = $false
$Endtime = $null
$En... |
PowerShellCorpus/Github/LevonBecker_VmwareTools/SubScripts/Func_Get-VmTools_1.0.9.ps1 | Func_Get-VmTools_1.0.9.ps1 | #requires –version 2.0
Function Get-VmTools {
Param (
[parameter(Position=0,Mandatory=$true)][string]$ComputerName,
[parameter(Mandatory=$true)][string]$SubScripts,
[parameter(Mandatory=$false)][switch]$StayConnected,
[parameter(Mandatory=$true)][string]$vCenter,
[parameter(Mandatory=$false)][boole... |
PowerShellCorpus/Github/LevonBecker_VmwareTools/SubScripts/Func_Add-NFSMountToESXHost_1.0.3.ps1 | Func_Add-NFSMountToESXHost_1.0.3.ps1 | #requires –version 2.0
Function Add-NFSMountToESXHost {
Param (
[parameter(Mandatory=$true)][string]$ViHost,
[parameter(Mandatory=$true)][string]$NFSHost,
[parameter(Mandatory=$true)][string]$NFSPath,
[parameter(Mandatory=$true)][string]$DataStoreName,
[parameter(Mandatory=$true)][string]$vCenter,
... |
PowerShellCorpus/Github/LevonBecker_VmwareTools/SubScripts/Func_Test-TCPPort_1.0.4.ps1 | Func_Test-TCPPort_1.0.4.ps1 | #requires –version 2.0
Function Test-TCPPort {
Param (
[parameter(Position=0,Mandatory=$true)][string]$ComputerName,
[parameter(Mandatory=$true)][string]$SubScripts,
[parameter(Mandatory=$true)][int]$Port,
[parameter(Mandatory=$false)][int]$Timeout = '120'
)
# VARIABLES
[string]$Notes = ''
[boo... |
PowerShellCorpus/Github/LevonBecker_VmwareTools/SubScripts/Func_Get-TimeZone_1.0.0.ps1 | Func_Get-TimeZone_1.0.0.ps1 | #requires –version 2.0
Function Get-TimeZone {
Param (
[parameter(Position=0,Mandatory=$true)][string]$ComputerName
)
# CLEAR VARIBLES
[boolean]$Success= $false
[boolean]$WMISuccess = $false
[string]$Notes = $null
# REMOVE EXISTING OUTPUT PSOBJECT
If ($global:GetTimeZone) {
Remove-Variable... |
PowerShellCorpus/Github/LevonBecker_VmwareTools/SubScripts/Func_Get-OSVersion_1.1.0.ps1 | Func_Get-OSVersion_1.1.0.ps1 | #requires –version 2.0
Function Get-OSVersion {
Param (
[parameter(Position=0,Mandatory=$true)][string]$ComputerName,
[parameter(Mandatory=$true)][string]$SubScripts,
[parameter(Mandatory=$false)][switch]$StayConnected,
[parameter(Mandatory=$false)][string]$vCenter,
[parameter(Mandatory=$false)][boo... |
PowerShellCorpus/Github/LevonBecker_VmwareTools/SubScripts/Func_Get-DiskSpace_1.0.1.ps1 | Func_Get-DiskSpace_1.0.1.ps1 | #requires –version 2.0
Function Get-DiskSpace {
Param (
[parameter(Position=0,Mandatory=$true)][string]$ComputerName,
[parameter(Mandatory=$false)][int]$MinFreeMB = '500',
[parameter(Mandatory=$true)][string]$SubScripts
)
# CLEAR VARIBLES
[string]$Notes = ''
[boolean]$Success = $false
[datetime]... |
PowerShellCorpus/Github/LevonBecker_VmwareTools/SubScripts/Func_Disconnect-ViHost_1.0.1.ps1 | Func_Disconnect-ViHost_1.0.1.ps1 | #requires –version 2.0
Function Disconnect-VIHost {
# Variables
[boolean]$vidis = $false
$checksnap = $null
[boolean]$snapremoved = $false
[string]$Notes = ''
[boolean]$Success = $false
If ($global:DisconnectVIHost) {
Remove-Variable DisconnectVIHost -Scope "Global"
}
# Check if currently co... |
PowerShellCorpus/Github/LevonBecker_VmwareTools/SubScripts/Func_Get-ExitCodeDescription_1.0.0.ps1 | Func_Get-ExitCodeDescription_1.0.0.ps1 | #requires –version 2.0
Function Get-ExitCodeDescription {
Param (
[parameter(Position=0,Mandatory=$true)][int]$ExitCode,
[parameter(Mandatory=$true)][string]$SubScripts
)
# CLEAR VARIBLES
[string]$Notes = ''
[boolean]$Success = $false
[datetime]$SubStartTime = Get-Date
[string]$ComputerName = $Co... |
PowerShellCorpus/Github/LevonBecker_VmwareTools/SubScripts/Func_Get-VmGuestInfo_1.0.5.ps1 | Func_Get-VmGuestInfo_1.0.5.ps1 | #requires –version 2.0
Function Get-VmGuestInfo {
Param (
[parameter(Position=0,Mandatory=$true)][string]$ComputerName,
[parameter(Mandatory=$true)][string]$SubScripts,
[parameter(Mandatory=$false)][switch]$StayConnected,
[parameter(Mandatory=$true)][string]$vCenter,
[parameter(Mandatory=$false)][st... |
PowerShellCorpus/Github/LevonBecker_VmwareTools/SubScripts/MultiFunc_Show-VmwareToolsErrors_1.0.0.ps1 | MultiFunc_Show-VmwareToolsErrors_1.0.0.ps1 | #requires –version 2.0
Function Show-LBVmwareToolsDefaultsMissingError {
Write-Host ''
Write-Host 'ERROR: Please Run Set-LBVmwareToolsDefaults First' -ForegroundColor White -BackgroundColor Red
Write-Host ''
Write-Host "This can be added to your user profile script to have it set automatically when launching P... |
PowerShellCorpus/Github/LevonBecker_VmwareTools/SubScripts/Func_Watch-Jobs_1.0.5.ps1 | Func_Watch-Jobs_1.0.5.ps1 | #requires –version 2.0
Function Watch-Jobs {
Param (
[parameter(Mandatory=$true)][string]$SubScripts,
[parameter(Mandatory=$true)][string]$JobLogFullName,
[parameter(Mandatory=$false)][int]$Timeout = '1800',
[parameter(Mandatory=$true)][string]$WinTitle_Input,
[parameter(Mandatory=$false)][string]$A... |
PowerShellCorpus/Github/LevonBecker_VmwareTools/SubScripts/Func_Update-VmHardware_1.0.6.ps1 | Func_Update-VmHardware_1.0.6.ps1 | #requires –Version 2.0
Function Update-VmHardware {
Param (
[parameter(Position=0,Mandatory=$true)][string]$ComputerName,
[parameter(Mandatory=$true)][string]$SubScripts,
[parameter(Mandatory=$false)][switch]$StayConnected,
[parameter(Mandatory=$true)][string]$vCenter,
[parameter(Mandatory=$false)][... |
PowerShellCorpus/Github/LevonBecker_VmwareTools/SubScripts/Func_Show-ScriptHeader_1.0.2.ps1 | Func_Show-ScriptHeader_1.0.2.ps1 | #requires –version 2.0
Function Show-ScriptHeader {
Param (
[parameter(Mandatory=$false)][int]$blanklines = '1',
[parameter(Mandatory=$false)][int]$DashCount = '50',
[parameter(Mandatory=$true)][string]$ScriptTitle
)
# VARIABLES
[string]$Notes = ''
[boolean]$Success = $false
[datetime]$SubStartT... |
PowerShellCorpus/Github/LevonBecker_VmwareTools/SubScripts/MultiFunc_Set-WinTitle_1.0.5.ps1 | MultiFunc_Set-WinTitle_1.0.5.ps1 | #requires –version 2.0
Function Set-WinTitle-Start {
Param (
[parameter(Mandatory=$true)][string]$title
)
# Clear
$Host.UI.RawUI.WindowTitle = $title
}
Function Set-WinTitle-Base {
Param (
[parameter(Mandatory=$true)][string]$ScriptVersion,
[parameter(Mandatory=$false)][switch]$IncludePowerCLI
... |
PowerShellCorpus/Github/LevonBecker_VmwareTools/SubScripts/Func_Get-HostDomain_1.0.3.ps1 | Func_Get-HostDomain_1.0.3.ps1 | #requires –version 2.0
Function Get-HostDomain {
Param (
[parameter(Position=0,Mandatory=$true)][string]$ComputerName,
[parameter(Mandatory=$true)][string]$SubScripts,
[parameter(Mandatory=$false)][switch]$StayConnected, #Not used yet
[parameter(Mandatory=$false)][string]$vCenter,
[parameter(Mandato... |
PowerShellCorpus/Github/LevonBecker_VmwareTools/SubScripts/Func_Get-IPConfig_1.0.5.ps1 | Func_Get-IPConfig_1.0.5.ps1 | #requires –version 2.0
Function Get-IPConfig {
Param (
[parameter(Position=0,Mandatory=$true)][string]$ComputerName,
[parameter(Mandatory=$true)][string]$SubScripts
)
# CLEAR VARIBLES
[string]$Notes = ''
[boolean]$Success = $false
[datetime]$SubStartTime = Get-Date
[string]$ComputerName = $Comput... |
PowerShellCorpus/Github/LevonBecker_VmwareTools/SubScripts/Func_Show-VmwareToolsHeader_1.0.3.ps1 | Func_Show-VmwareToolsHeader_1.0.3.ps1 | #requires –version 2.0
Function Show-VmwareToolsHeader {
Param (
[parameter(Mandatory=$true)][string]$SubScripts,
[parameter(Mandatory=$false)][switch]$NoTips
)
If ((Get-Command -Name "Show-VmwareToolsTip" -ErrorAction SilentlyContinue) -eq $null){
. "$SubScripts\Func_Show-VmwareToolsTip_1.0.1.ps1"... |
PowerShellCorpus/Github/LevonBecker_VmwareTools/ParentScripts/Add-NFSDS_1.0.9.ps1 | Add-NFSDS_1.0.9.ps1 | #requires -version 2.0
Function Add-NFSDS {
#region Help
<#
.SYNOPSIS
Add a NFS Datastore to multiple Vmware hosts.
.DESCRIPTION
This Powershell script can be used to add an NFS Datastore to multiple Vmware hosts using Vmware PowerCLI PsSnapin.
.NOTES
AUTHOR: Levon Becker
TITLE: Ad... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.