full_path
stringlengths
31
232
filename
stringlengths
4
167
content
stringlengths
0
48.3M
PowerShellCorpus/PowerShellGallery/Image2Docker/1.8.2/Functions/Private/Artifacts/AddRemovePrograms/Tests/Generate_AddRemovePrograms.Tests.ps1
Generate_AddRemovePrograms.Tests.ps1
Describe 'Generate_AddRemovePrograms Tests' { Context 'Parameters for Generate_AddRemovePrograms'{ It 'Has a Parameter called ManifestPath' { $Function.Parameters.Keys.Contains('ManifestPath') | Should Be 'True' } It 'ManifestPath Parameter is Identified as Mandatory ...
PowerShellCorpus/PowerShellGallery/Image2Docker/1.8.2/Functions/Private/Artifacts/AddRemovePrograms/Tests/Discover_AddRemovePrograms.Tests.ps1
Discover_AddRemovePrograms.Tests.ps1
Describe 'Discover_AddRemovePrograms Tests' { Context 'Parameters for Discover_AddRemovePrograms'{ It 'Has a Parameter called MountPath' { $Function.Parameters.Keys.Contains('MountPath') | Should Be 'True' } It 'MountPath Parameter is Identified as Mandatory being Tru...
PowerShellCorpus/PowerShellGallery/Image2Docker/1.8.2/Functions/Private/Artifacts/IIS/Generate_IIS.ps1
Generate_IIS.ps1
Function Generate_IIS { <# .SYNOPSIS Generates Dockerfile contents for Internet Information Services (IIS) feature .PARAMETER ManifestPath The filesystem path where the JSON manifests are stored. .PARAMETER ArtifactParam Optional - one or more Website names to include in the output. #> [Diagnostics.CodeAn...
PowerShellCorpus/PowerShellGallery/Image2Docker/1.8.2/Functions/Private/Artifacts/IIS/GetManifestFromMetabase.ps1
GetManifestFromMetabase.ps1
function GetManifestFromMetabase { <# .SYNOPSIS Scans for presence of the Internet Information Services (IIS) Web Server on Windows Server 2003 images. .PARAMETER MountPath The path where the Windows image was mounted to. .PARAMETER OutputPath The filesystem path where the discovery manifest will be emitted....
PowerShellCorpus/PowerShellGallery/Image2Docker/1.8.2/Functions/Private/Artifacts/IIS/GetManifestFromApplicationHost.ps1
GetManifestFromApplicationHost.ps1
function GetManifestFromApplicationHost { <# .SYNOPSIS Scans for presence of the Internet Information Services (IIS) Web Server .PARAMETER MountPath The path where the Windows image was mounted to. .PARAMETER OutputPath The filesystem path where the discovery manifest will be emitted. .PARAMETER Artifact...
PowerShellCorpus/PowerShellGallery/Image2Docker/1.8.2/Functions/Private/Artifacts/IIS/Discover_IIS.ps1
Discover_IIS.ps1
function Discover_IIS { <# .SYNOPSIS Scans for presence of the Internet Information Services (IIS) Web Server .PARAMETER MountPath The path where the Windows image was mounted to. .PARAMETER OutputPath The filesystem path where the discovery manifest will be emitted. .PARAMETER ArtifactParam Optional - ...
PowerShellCorpus/PowerShellGallery/Image2Docker/1.8.2/Functions/Private/Artifacts/IIS/Tests/Generate_IIS.Tests.ps1
Generate_IIS.Tests.ps1
Describe 'Generate_IIS Tests' { Context 'Parameters for Generate_IIS'{ It 'Has a Parameter called ManifestPath' { $Function.Parameters.Keys.Contains('ManifestPath') | Should Be 'True' } It 'ManifestPath Parameter is Identified as Mandatory being True' { [...
PowerShellCorpus/PowerShellGallery/Image2Docker/1.8.2/Functions/Private/Artifacts/IIS/Tests/Discover_IIS.Tests.ps1
Discover_IIS.Tests.ps1
Describe 'Discover_IIS Tests' { Context 'Parameters for Discover_IIS'{ It 'Has a Parameter called MountPath' { $Function.Parameters.Keys.Contains('MountPath') | Should Be 'True' } It 'MountPath Parameter is Identified as Mandatory being True' { [String]$F...
PowerShellCorpus/PowerShellGallery/Image2Docker/1.8.2/Functions/Private/Artifacts/DNSServer/Generate_DNSServer.ps1
Generate_DNSServer.ps1
function Generate_DNSServer { <# .SYNOPSIS Generates Dockerfile contents for DNS Server component .PARAMETER ManifestPath The filesystem path where the JSON manifests are stored. #> [CmdletBinding()] param ( [Parameter(Mandatory = $true)] [string] $MountPath, [Parameter(Mandatory = $true...
PowerShellCorpus/PowerShellGallery/Image2Docker/1.8.2/Functions/Private/Artifacts/DNSServer/Discover_DNSServer.ps1
Discover_DNSServer.ps1
function Discover_DNSServer { <# .SYNOPSIS Scans for presence of DNS Server component in a Windows image. .PARAMETER MountPath The path where the Windows image was mounted to. .PARAMETER OutputPath The filesystem path where the discovery manifest will be emitted. #> [Diagnostics.CodeAnalysis.SuppressMessa...
PowerShellCorpus/PowerShellGallery/Image2Docker/1.8.2/Functions/Private/Artifacts/DNSServer/Tests/Generate_DNSServer.Tests.ps1
Generate_DNSServer.Tests.ps1
Describe 'Generate_DNSServer Tests' { Context 'Parameters for Generate_DNSServer'{ It 'Has a Parameter called ManifestPath' { $Function.Parameters.Keys.Contains('ManifestPath') | Should Be 'True' } It 'ManifestPath Parameter is Identified as Mandatory being True' { ...
PowerShellCorpus/PowerShellGallery/Image2Docker/1.8.2/Functions/Private/Artifacts/DNSServer/Tests/Discover_DNSServer.Tests.ps1
Discover_DNSServer.Tests.ps1
Describe 'Discover_DNSServer Tests' { Context 'Parameters for Discover_DNSServer'{ It 'Has a Parameter called MountPath' { $Function.Parameters.Keys.Contains('MountPath') | Should Be 'True' } It 'MountPath Parameter is Identified as Mandatory being True' { ...
PowerShellCorpus/PowerShellGallery/Image2Docker/1.8.2/Functions/Private/Artifacts/MSMQ/Generate_MSMQ.ps1
Generate_MSMQ.ps1
function Generate_MSMQ { <# .SYNOPSIS Generates Dockerfile contents for Microsoft Message Queue (MSMQ) Server feature .PARAMETER ManifestPath The filesystem path where the JSON manifests are stored. #> [CmdletBinding()] param ( [Parameter(Mandatory = $true)] [string] $MountPath, [Paramet...
PowerShellCorpus/PowerShellGallery/Image2Docker/1.8.2/Functions/Private/Artifacts/MSMQ/Discover_MSMQ.ps1
Discover_MSMQ.ps1
function Discover_MSMQ { <# .SYNOPSIS Scans for presence of the MSMQ Windows feature .PARAMETER MountPath The path where the Windows image was mounted to. .PARAMETER OutputPath The filesystem path where the discovery manifest will be emitted. #> [Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSShould...
PowerShellCorpus/PowerShellGallery/Image2Docker/1.8.2/Functions/Private/Artifacts/MSMQ/Tests/Generate_MSMQ.Tests.ps1
Generate_MSMQ.Tests.ps1
Describe 'Generate_MSMQ Tests' { Context 'Parameters for Generate_MSMQ'{ It 'Has a Parameter called ManifestPath' { $Function.Parameters.Keys.Contains('ManifestPath') | Should Be 'True' } It 'ManifestPath Parameter is Identified as Mandatory being True' { ...
PowerShellCorpus/PowerShellGallery/Image2Docker/1.8.2/Functions/Private/Artifacts/MSMQ/Tests/Discover_MSMQ.Tests.ps1
Discover_MSMQ.Tests.ps1
Describe 'Discover_MSMQ Tests' { Context 'Parameters for Discover_MSMQ'{ It 'Has a Parameter called MountPath' { $Function.Parameters.Keys.Contains('MountPath') | Should Be 'True' } It 'MountPath Parameter is Identified as Mandatory being True' { [String]...
PowerShellCorpus/PowerShellGallery/Image2Docker/1.8.2/Functions/Private/Tests/GetImageType.Tests.ps1
GetImageType.Tests.ps1
Describe 'GetImageType Tests' { Context 'Parameters for GetImageType'{ It 'Has a Parameter called Path' { $Function.Parameters.Keys.Contains('Path') | Should Be 'True' } It 'Path Parameter is Identified as Mandatory being False' { [String]$Function.Parame...
PowerShellCorpus/PowerShellGallery/Image2Docker/1.8.2/Functions/Private/Tests/GenerateDockerfile.Tests.ps1
GenerateDockerfile.Tests.ps1
Describe 'GenerateDockerfile Tests' { Context 'Parameters for GenerateDockerfile'{ It 'Has a Parameter called ArtifactPath' { $Function.Parameters.Keys.Contains('ArtifactPath') | Should Be 'True' } It 'ArtifactPath Parameter is Identified as Mandatory being True' { ...
PowerShellCorpus/PowerShellGallery/Image2Docker/1.8.2/Functions/Private/Tests/MountImage.Tests.ps1
MountImage.Tests.ps1
Describe 'MountImage Tests' { Context 'Parameters for MountImage'{ It 'Has a Parameter called ImagePath' { $Function.Parameters.Keys.Contains('ImagePath') | Should Be 'True' } It 'ImagePath Parameter is Identified as Mandatory being True' { [String]$Funct...
PowerShellCorpus/PowerShellGallery/Image2Docker/1.8.2/Functions/Private/Tests/GenerateOutputFolder.Tests.ps1
GenerateOutputFolder.Tests.ps1
Describe 'GenerateOutputFolder Tests' { Context 'Parameters for GenerateOutputFolder'{ It 'Has a Parameter called Path' { $Function.Parameters.Keys.Contains('Path') | Should Be 'True' } It 'Path Parameter is Identified as Mandatory being False' { [String]...
PowerShellCorpus/PowerShellGallery/Image2Docker/1.8.2/Functions/Private/Tests/DiscoverArtifacts.Tests.ps1
DiscoverArtifacts.Tests.ps1
Describe 'DiscoverArtifacts Tests' { Context 'Parameters for DiscoverArtifacts'{ It 'Has a Parameter called Artifact' { $Function.Parameters.Keys.Contains('Artifact') | Should Be 'True' } It 'Artifact Parameter is Identified as Mandatory being True' { [St...
PowerShellCorpus/PowerShellGallery/Image2Docker/1.8.2/Functions/Public/Clear/Clear-JunctionLink.ps1
Clear-JunctionLink.ps1
function Clear-JunctionLink { <# .Synopsis Simple helper script that removes any discovered junction links from user's $env:TEMP directory. .EXAMPLE Clear-JunctionLink This will remove any mounted images in the $env:TEMP directory #> [CmdletBinding()] param ( ...
PowerShellCorpus/PowerShellGallery/Image2Docker/1.8.2/Functions/Public/Clear/Tests/Clear-JunctionLink.Tests.ps1
Clear-JunctionLink.Tests.ps1
Describe 'Clear-JunctionLink Tests' { Context 'Parameters for Clear-JunctionLink'{ } Context "Function $($function.Name) - Help Section" { It "Function $($function.Name) Has show-help comment block" { $function.Definition.Contains('<#') | should be 'True' ...
PowerShellCorpus/PowerShellGallery/Image2Docker/1.8.2/Functions/Public/ConvertTo/ConvertTo-Dockerfile.ps1
ConvertTo-Dockerfile.ps1
function ConvertTo-Dockerfile { <# .SYNOPSIS Scans and converts a valid WIM or VHDX file into a Dockerfile. .DESCRIPTION This command is the main entrypoint into this PowerShell module. .PARAMETER ImagePath Use a Windows image file as the source for the artifacts. Specify the fi...
PowerShellCorpus/PowerShellGallery/Image2Docker/1.8.2/Functions/Public/ConvertTo/Tests/ConvertTo-Dockerfile.Tests.ps1
ConvertTo-Dockerfile.Tests.ps1
Describe 'ConvertTo-Dockerfile Tests' { Context 'Parameters for ConvertTo-Dockerfile'{ It 'Has a Parameter called ImagePath' { $Function.Parameters.Keys.Contains('ImagePath') | Should Be 'True' } It 'ImagePath Parameter is Identified as Mandatory being False' { ...
PowerShellCorpus/PowerShellGallery/Image2Docker/1.8.2/Functions/Public/Get/Get-WindowsArtifact.ps1
Get-WindowsArtifact.ps1
function Get-WindowsArtifact { <# .SYNOPSIS Returns a list of supported artifacts for discovery in a Windows image. .EXAMPLE $Artifacts = Get-WindowsArtifact This will return all of the discoverable artifacts and assign the result to the Artifacts Variable #> ...
PowerShellCorpus/PowerShellGallery/Image2Docker/1.8.2/Functions/Public/Get/Tests/Get-WindowsArtifact.Tests.ps1
Get-WindowsArtifact.Tests.ps1
Describe 'Get-WindowsArtifact Tests' { Context 'Parameters for Get-WindowsArtifact'{ } Context "Function $($function.Name) - Help Section" { It "Function $($function.Name) Has show-help comment block" { $function.Definition.Contains('<#') | should be 'True' ...
PowerShellCorpus/PowerShellGallery/Image2Docker/1.8.2/Completers/Artifacts.Completion.ps1
Artifacts.Completion.ps1
function Completion_Artifact { param($commandName, $parameterName, $wordToComplete, $commandAst, $fakeBoundParameter) Function Get-Artifacts { $artifacts = Get-ChildItem -Path $modulepath\Functions\Private\Artifacts -Directory | Select-Object -ExpandProperty BaseName $artifacts }...
PowerShellCorpus/PowerShellGallery/Image2Docker/1.8.2/Tests/DemoScript.ps1
DemoScript.ps1
$ErrorActionPreference = 'Stop' Remove-Module -Name Image2Docker -ErrorAction Ignore #Import-Module -Name (Split-Path -Path $PSScriptRoot -Parent) Import-Module -Name $PSScriptRoot\..\Image2Docker.psd1 Clear-JunctionLink Get-WindowsArtifact #$ImagePath = 'D:\data\Virtual Machines\Docker\docker-2016tp5\Vir...
PowerShellCorpus/PowerShellGallery/Image2Docker/1.8.2/Tests/ManualTests.ps1
ManualTests.ps1
### ES ### These are manual tests using curated VMs. ### We could plausibly use Packer to build test VMs for 2012 upwards, using trial licences, but it would be a lengthy process. ### And we couldn't do it for 2003 and 2008. ### Hence the manual tests. $ErrorActionPreference = 'Stop' $InputPath = 'E:\VMs\' ...
PowerShellCorpus/PowerShellGallery/Image2Docker/1.8.2/Tests/Image2Docker.tests.ps1
Image2Docker.tests.ps1
$ModuleRoot = Split-Path $PSScriptRoot -Parent $PrivateFunctions = Get-ChildItem "$ModuleRoot\Functions\Private\" -Filter '*.ps1' -Recurse | Where-Object {$_.name -NotMatch "Tests.ps1"} $PublicFunctions = Get-ChildItem "$ModuleRoot\Functions\Public\" -Filter '*.ps1' -Recurse | Where-Object {$_.name -NotMatch "Tests...
PowerShellCorpus/PowerShellGallery/DellBIOSProvider/1.2/Load-DellBIOSProvider.ps1
Load-DellBIOSProvider.ps1
<# Load-DellBIOSProvider.ps1 ############################################################################# Copyright 2015 Dell Inc. All rights reserved. THIS SOFTWARE IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL, BUT IS PROVIDED “AS IS” WITHOUT ANY WARRANTY, EXPRESS, IMPLIED OR OTHERWISE, INCL...
PowerShellCorpus/PowerShellGallery/DellBIOSProvider/1.2/Read-DellBIOSPassword.ps1
Read-DellBIOSPassword.ps1
Function Read-DellBIOSPassword { <# .Synopsis Reads a Dell BIOS Password from secure string storage .Description Reads a Dell BIOS Password from secure string storage. .Notes Reads System.Security.SecureString from the default user path. .Example Read-DellBIOSPassword .Example...
PowerShellCorpus/PowerShellGallery/DellBIOSProvider/1.2/Set-DellAutoOnForSelectDays.ps1
Set-DellAutoOnForSelectDays.ps1
function Set-DellAutoOnForSelectDays { <# .Synopsis Configures the system's auto-on capabilities that control individual days .Description This CmdLet sets the Auto-on to select days and enables or disables the individual days to automatically power on the system on a pre fixed . If a BIOS pass...
PowerShellCorpus/PowerShellGallery/DellBIOSProvider/1.2/Write-DellBIOSPassword.ps1
Write-DellBIOSPassword.ps1
Function Write-DellBIOSPassword { <# .Synopsis Writes a Dell BIOS password from secure string storage .Description Writes a DellBIOS password to System.Security.SecureString in the local app directory of the user. .Example Write-DellBIOSPassword .Example $DellBIOSCredential = Wr...
PowerShellCorpus/PowerShellGallery/DellBIOSProvider/1.2/Get-DellBIOSPasswordPath.ps1
Get-DellBIOSPasswordPath.ps1
Function Get-DellBIOSPasswordPath{ PROCESS{ $result = new-Object 'System.Object' $FilePath = "$env:LOCALAPPDATA\Dell\DellBIOSProvider\Bios.Password.txt" $result | Add-Member -MemberType noteproperty -Name DellBIOSPwdFilePath -value $FilePath $result } } # SIG # Begin signature block # MIIVSQYJK...
PowerShellCorpus/PowerShellGallery/DellBIOSProvider/1.2/Clear-DellAdminPassword.ps1
Clear-DellAdminPassword.ps1
Function Clear-DellAdminPassword { <# .Synopsis Erases the Admin (Setup) BIOS password .Description This CmdLet clears the Admin password in BIOS. Provide the existing password using -Password parameter. .Example Clear-DellAdminPassword -Password <existing password> #> param( [Paramet...
PowerShellCorpus/PowerShellGallery/DellBIOSProvider/1.2/Set-Dell1stBootdevice.ps1
Set-Dell1stBootdevice.ps1
function Set-Dell1stBootdevice { <# .Synopsis Sets a bootdevice first in the boot sequence .Description This CmdLet sets a boot device first in the boot sequence. You can specify a substring of the name of the boot device. If a BIOS password (Admin or System password) is set, supply it using the -Pa...
PowerShellCorpus/PowerShellGallery/DellBIOSProvider/1.2/Get-DellBiosSettings.ps1
Get-DellBiosSettings.ps1
function Get-DellBiosSettings { <# .Synopsis retrieves all BIOS settings applicable to the system .Description This CmdLet retrieves the BIOS settings that are applicable to the system. .Example Get-DellBiosSettings #> BEGIN { } PROCESS { $DellBIOS = get-childitem -path DellS...
PowerShellCorpus/PowerShellGallery/DellBIOSProvider/1.2/DSC_SampleScripts/Sample_SecureKey.ps1
Sample_SecureKey.ps1
$KeyFile = "\\Machine1\MySecurePath\AES.key" $Key = New-Object Byte[] 16 # You can use 16, 24, or 32 for AES [Security.Cryptography.RNGCryptoServiceProvider]::Create().GetBytes($Key) $Key | out-file $KeyFile $PasswordFile = "\\Machine1\SharedPath\Password.txt" $Key_file = Get-Content $KeyFile $Password = "P@s...
PowerShellCorpus/PowerShellGallery/DellBIOSProvider/1.2/DSC_SampleScripts/Sample_MultipleNodes_2.ps1
Sample_MultipleNodes_2.ps1
#$pwwd=Get-Content "c:\temp\userpwd.txt" Configuration MultipleCatConfiguration { param ( [string]$ComputerName ) Import-DscResource -ModuleName DellBIOSProvider Node $ComputerName { POSTBehavior POSTBehaviorSettings #resource name { Category = "POSTBehavi...
PowerShellCorpus/PowerShellGallery/DellBIOSProvider/1.2/DSC_SampleScripts/Sample_PassingCredentials.ps1
Sample_PassingCredentials.ps1
#$pwwd=Get-Content "c:\temp\userpwd.txt" Configuration MultipleCatConfiguration { Import-DscResource -ModuleName DellBIOSProvider Node 10.94.43.77 { POSTBehavior POSTBehaviorSettings #resource name { Category = "POSTBehavior" Keypad = "EnabledByNumlock...
PowerShellCorpus/PowerShellGallery/DellBIOSProvider/1.2/DSC_SampleScripts/Sample_All.ps1
Sample_All.ps1
#$pwwd=Get-Content "c:\temp\userpwd.txt" Configuration MultipleCatConfiguration { Import-DscResource -ModuleName DellBIOSProvider Node localhost { POSTBehavior POSTBehaviorSettings #resource name { Category = "POSTBehavior" Keypad = "EnabledByNuml...
PowerShellCorpus/PowerShellGallery/DellBIOSProvider/1.2/DSC_SampleScripts/Sample_ChangeLCMMetaConfig.ps1
Sample_ChangeLCMMetaConfig.ps1
Configuration LCMForRef { param ( [string]$ComputerName ) Node $ComputerName { LocalConfigurationManager { ConfigurationMode = "ApplyAndAutoCorrect" } } } LCMForRef -ComputerName 10.94.174.165 $secpwd=ConvertTo-SecureString "dell_123" -AsPlainText -force $mycred=New-Object System.Management.Au...
PowerShellCorpus/PowerShellGallery/DellBIOSProvider/1.2/DSC_SampleScripts/Sample_POSTBehavior.ps1
Sample_POSTBehavior.ps1
#$pwwd=Get-Content "c:\temp\userpwd.txt" Configuration POSTBehaviorConfiguration { Import-DscResource -ModuleName DellBIOSProvider Node localhost { POSTBehavior POSTBehaviorSettings #resource name { Category = "POSTBehavior" Keypad = "En...
PowerShellCorpus/PowerShellGallery/DellBIOSProvider/1.2/DSC_SampleScripts/Sample_PowerManagement.ps1
Sample_PowerManagement.ps1
#$pwwd=Get-Content "c:\temp\userpwd.txt" Configuration PowerManagementConfiguration { Import-DscResource -ModuleName DellBIOSProvider Node localhost { PowerManagement PowerManagementSettings #resource name { Category = "PowerManagement" BlockDefinition="1" ...
PowerShellCorpus/PowerShellGallery/DellBIOSProvider/1.2/DSC_SampleScripts/Sample_MultipleNodes_1.ps1
Sample_MultipleNodes_1.ps1
#$pwwd=Get-Content "c:\temp\userpwd.txt" Configuration MultipleCatConfiguration { Import-DscResource -ModuleName DellBIOSProvider Node $ComputerName { POSTBehavior POSTBehaviorSettings #resource name { Category = "POSTBehavior" Keypad = "EnabledByNumlo...
PowerShellCorpus/PowerShellGallery/DellBIOSProvider/1.2/ResourceDesignerScripts/GenerateDCPP-POSTBehaviorSchema.ps1
GenerateDCPP-POSTBehaviorSchema.ps1
<# This is a Resource designer script which generates a mof schema for DCPP_POSTBehavior resource in DellBIOSProvider module. #> $category = New-xDscResourceProperty -name Category -Type String -Attribute Key $keypad = New-xDscResourceProperty -name Keypad -Type String -Attribute Write -ValidateSet @("Enabled...
PowerShellCorpus/PowerShellGallery/DellBIOSProvider/1.2/ResourceDesignerScripts/GenerateDCPP-MiscellaneousDevicesSchema.ps1
GenerateDCPP-MiscellaneousDevicesSchema.ps1
<# This is a Resource designer script which generates a mof schema for DCPP_POSTBehavior resource in DellBIOSProvider module. #> $category = New-xDscResourceProperty -name Category -Type String -Attribute Key $microphone = New-xDscResourceProperty -name Microphone -Type String -Attribute Write -ValidateSet @(...
PowerShellCorpus/PowerShellGallery/DellBIOSProvider/1.2/ResourceDesignerScripts/GenerateDCPP-TPMSecuritySchema.ps1
GenerateDCPP-TPMSecuritySchema.ps1
<# This is a Resource designer script which generates a mof schema for DCPP_POSTBehavior resource in DellBIOSProvider module. #> $category = New-xDscResourceProperty -name Category -Type String -Attribute Key $tpmsecurity = New-xDscResourceProperty -name TPMSecurity -Type String -Attribute Write -ValidateSet ...
PowerShellCorpus/PowerShellGallery/DellBIOSProvider/1.2/ResourceDesignerScripts/GenerateDCPP-SecuritySchema.ps1
GenerateDCPP-SecuritySchema.ps1
<# This is a Resource designer script which generates a mof schema for DCPP_POSTBehavior resource in DellBIOSProvider module. #> $category = New-xDscResourceProperty -name Category -Type String -Attribute Key $strongPassword = New-xDscResourceProperty -name StrongPassword -Type String -Attribute Write -Valida...
PowerShellCorpus/PowerShellGallery/DellBIOSProvider/1.2/ResourceDesignerScripts/GenerateDCPP-PerformanceSchema.ps1
GenerateDCPP-PerformanceSchema.ps1
<# This is a Resource designer script which generates a mof schema for DCPP_POSTBehavior resource in DellBIOSProvider module. #> $category = New-xDscResourceProperty -name Category -Type String -Attribute Key $multiCoreSupport = New-xDscResourceProperty -name MultiCoreSupport -Type String -Attribute Write -Va...
PowerShellCorpus/PowerShellGallery/DellBIOSProvider/1.2/ResourceDesignerScripts/GenerateDCPP-VideoSchema.ps1
GenerateDCPP-VideoSchema.ps1
<# This is a Resource designer script which generates a mof schema for DCPP_POSTBehavior resource in DellBIOSProvider module. #> $category = New-xDscResourceProperty -name Category -Type String -Attribute Key $lcdBrightnessOnBattery = New-xDscResourceProperty -name LCDBrightnessOnBattery -Type Uint32 -Attribu...
PowerShellCorpus/PowerShellGallery/DellBIOSProvider/1.2/ResourceDesignerScripts/GenerateDCPP-SystemInformationSchema.ps1
GenerateDCPP-SystemInformationSchema.ps1
<# This is a Resource designer script which generates a mof schema for DCPP_POSTBehavior resource in DellBIOSProvider module. #> $category = New-xDscResourceProperty -name Category -Type String -Attribute Key $assettag = New-xDscResourceProperty -name AssetTag -Type String -Attribute Write $ownershiptag = ...
PowerShellCorpus/PowerShellGallery/DellBIOSProvider/1.2/ResourceDesignerScripts/GenerateDCPP-WirelessSchema.ps1
GenerateDCPP-WirelessSchema.ps1
<# This is a Resource designer script which generates a mof schema for DCPP_POSTBehavior resource in DellBIOSProvider module. #> $category = New-xDscResourceProperty -name Category -Type String -Attribute Key $wirelessswitchwwancontrol = New-xDscResourceProperty -name WirelessSwitchWWANControl -Type String -A...
PowerShellCorpus/PowerShellGallery/DellBIOSProvider/1.2/ResourceDesignerScripts/GenerateDCPP-VirtualizationSchema.ps1
GenerateDCPP-VirtualizationSchema.ps1
<# This is a Resource designer script which generates a mof schema for DCPP_POSTBehavior resource in DellBIOSProvider module. #> $category = New-xDscResourceProperty -name Category -Type String -Attribute Key $virtualization = New-xDscResourceProperty -name Virtualization -Type String -Attribute Write -Valida...
PowerShellCorpus/PowerShellGallery/DellBIOSProvider/1.2/ResourceDesignerScripts/GenerateDCPP-AdvancedBootOptionsSchema.ps1
GenerateDCPP-AdvancedBootOptionsSchema.ps1
<# This is a Resource designer script which generates a mof schema for DCPP_POSTBehavior resource in DellBIOSProvider module. #> $category = New-xDscResourceProperty -name Category -Type String -Attribute Key $enablelegacyoptionroms = New-xDscResourceProperty -name EnableLegacyOptionROMs -Type String -Attribu...
PowerShellCorpus/PowerShellGallery/DellBIOSProvider/1.2/ResourceDesignerScripts/GenerateDCPP-USBConfigurationSchema.ps1
GenerateDCPP-USBConfigurationSchema.ps1
<# This is a Resource designer script which generates a mof schema for DCPP_POSTBehavior resource in DellBIOSProvider module. #> $category = New-xDscResourceProperty -name Category -Type String -Attribute Key $externalusbport = New-xDscResourceProperty -name ExternalUSBPort -Type String -Attribute Write -Vali...
PowerShellCorpus/PowerShellGallery/DellBIOSProvider/1.2/ResourceDesignerScripts/GenerateDCPP-BootSequenceSchema.ps1
GenerateDCPP-BootSequenceSchema.ps1
<# This is a Resource designer script which generates a mof schema for DCPP_POSTBehavior resource in DellBIOSProvider module. #> $category = New-xDscResourceProperty -name Category -Type String -Attribute Key $bootlistoption = New-xDscResourceProperty -name BootListOption -Type String -Attribute Write -Valida...
PowerShellCorpus/PowerShellGallery/DellBIOSProvider/1.2/ResourceDesignerScripts/GenerateDCPP-SystemConfigurationSchema.ps1
GenerateDCPP-SystemConfigurationSchema.ps1
<# This is a Resource designer script which generates a mof schema for DCPP_POSTBehavior resource in DellBIOSProvider module. #> $category = New-xDscResourceProperty -name Category -Type String -Attribute Key $integratedNIC = New-xDscResourceProperty -name IntegratedNIC -Type String -Attribute Write -Validate...
PowerShellCorpus/PowerShellGallery/DellBIOSProvider/1.2/ResourceDesignerScripts/GenerateDCPP-PowerManagementSchema.ps1
GenerateDCPP-PowerManagementSchema.ps1
<# This is a Resource designer script which generates a mof schema for DCPP_POSTBehavior resource in DellBIOSProvider module. #> $blockdefinition = New-xDscResourceProperty -name BlockDefinition -Type String -Attribute Key $category = New-xDscResourceProperty -name Category -Type String -Attribute Write $aut...
PowerShellCorpus/PowerShellGallery/DellBIOSProvider/1.2/Tests/ResourceTests.ps1
ResourceTests.ps1
Test-xDscResource..\DSCResources\DCPP_POSTBehavior Test-xDscSchema..\DSCResources\DCPP_POSTBehavior\DCPP_POSTBehavior.schema.mof # SIG # Begin signature block # MIIVSQYJKoZIhvcNAQcCoIIVOjCCFTYCAQExDzANBglghkgBZQMEAgEFADB5Bgor # BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG # KX7zUQIBAAIBAAIBAAIB...
PowerShellCorpus/PowerShellGallery/VPLEX-Powershell/1.0.1/Private/Get-DirectorHexID.ps1
Get-DirectorHexID.ps1
function Get-DirectorHexID { [CmdletBinding()] Param( [Parameter(Mandatory = $true,HelpMessage = 'Please provide a VPLEX Seed')] [String]$Seed, [Parameter(Mandatory = $true,HelpMessage = 'Please provide an ID of a VPLEX Director')] [ValidateSet(0,1)] [Int]$Director ) $a = [Convert...
PowerShellCorpus/PowerShellGallery/VPLEX-Powershell/1.0.1/Private/Get-PortRole.ps1
Get-PortRole.ps1
Function Get-PortRole { [CmdletBinding()] Param( [Parameter(Mandatory = $true,HelpMessage = 'Please provide an ID of an IO Module - 0 to 3')] [ValidateSet(0,1,2,3)] [Int]$IOModuleID ) Switch ($IOModuleID) { 0 {$Role = "front-end"} 1 {$Role = "back-end"} 2 {$Role = "wan-com"} ...
PowerShellCorpus/PowerShellGallery/VPLEX-Powershell/1.0.1/Private/Get-PortObject.ps1
Get-PortObject.ps1
Function Get-PortObject { [CmdletBinding()] Param( [Parameter(Mandatory = $true,HelpMessage = 'Please provide a VPLEX Seed')] [string]$Seed, [Parameter(Mandatory = $true,HelpMessage = 'Please provide an ID of a VPLEX Director - A or B')] [ValidateSet('A','B')] [String]$Director ) ...
PowerShellCorpus/PowerShellGallery/VPLEX-Powershell/1.0.1/Public/Set-VPLEXDatastorePreferedPath.ps1
Set-VPLEXDatastorePreferedPath.ps1
Function Set-VPLEXDatastorePreferedPath { <# .SYNOPSIS Set datastore's prefered path. .DESCRIPTION Set datastore's prefered path. You can select the path with multiple argument like the VPLEX engine -based on the seed-, Director and/or Port. The function will select all the available paths matching ...
PowerShellCorpus/PowerShellGallery/VPLEX-Powershell/1.0.1/Public/Get-VPLEXPortWWNCalculator.ps1
Get-VPLEXPortWWNCalculator.ps1
Function Get-VPLEXPortWWNCalculator { <# .SYNOPSIS Generate informations about VPLEX ports based from the seed provided. .DESCRIPTION Retrieve informations about VPLEX ports based from the seed provided. The seed of a VPLEX can be find in vplexcli with the command "ls -t /engines/*::wwn-seed". .NOTE...
PowerShellCorpus/PowerShellGallery/VPLEX-Powershell/1.0.1/Public/Get-VPLEXDatastorePreferedPathStats.ps1
Get-VPLEXDatastorePreferedPathStats.ps1
Function Get-VPLEXDatastorePreferedPathStats { <# .SYNOPSIS Generate statistics on VPLEX's datastores prefered paths. .DESCRIPTION Generate statistics on VPLEX's datastores prefered paths. .NOTES Written by Erwan Quelin under MIT licence .LINK https://github.com/equelin/VPLEX-Powershell ...
PowerShellCorpus/PowerShellGallery/PSEnvironment/1.1.1/PSEnvironment.tests.ps1
PSEnvironment.tests.ps1
# this is a Pester test file #region Further Reading # http://www.powershellmagazine.com/2014/03/27/testing-your-powershell-scripts-with-pester-assertions-and-more/ #endregion #region LoadScript # load the script file into memory # attention: make sure the script only contains function definitions # and no act...
PowerShellCorpus/PowerShellGallery/EMLFileSorter/1.1.0.1/Public/Sort-EMLFiles.ps1
Sort-EMLFiles.ps1
function Sort-EMLFiles { <# .NOTES Company: BitTitan, Inc. Title: EMLFileSorter.psm1 Author: SUPPORT@BITTITAN.COM Requirements: Version: 1.0 Date: JANUARY 05, 2017 Disclaimer: This script is provided ‘AS IS’. No warrantee is provided either expresses or implied. Copyright: ...
PowerShellCorpus/PowerShellGallery/PSFzf/1.1.12/PSFzf.tests.ps1
PSFzf.tests.ps1
# # This is a PowerShell Unit Test file. # You need a unit test framework such as Pester to run PowerShell Unit tests. # You can download Pester from http://go.microsoft.com/fwlink/?LinkID=534084 # Get-Module PsFzf | Remove-Module # set env variable so Import-Module doesn't fail: if ([string]::IsNullOrEmpty($env:GOPA...
PowerShellCorpus/PowerShellGallery/PSFzf/1.1.12/PSFzf.Functions.ps1
PSFzf.Functions.ps1
#.ExternalHelp PSFzf.psm1-help.xml function Invoke-FuzzyEdit() { $files = @() try { Invoke-Fzf -Multi | ForEach-Object { $files += """$_""" } } catch { } # HACK to check to see if we're running under Visual Studio Code. # If so, reuse Visual Studio Code currently open windows: ...
PowerShellCorpus/PowerShellGallery/PoshGMaps/1.3/Private/Format-GmapPlaceDetail.ps1
Format-GmapPlaceDetail.ps1
Function Format-GmapPlaceDetail { [CmdletBinding()] param ( [Parameter(Mandatory=$False, ValueFromPipeline=$True)] $Results ) Process { $Results.PSTypeNames.Insert(0,"Gmap.Place") # Create easier to understand properties out of result but ...
PowerShellCorpus/PowerShellGallery/PoshGMaps/1.3/Private/Format-GmapPlaceSearch.ps1
Format-GmapPlaceSearch.ps1
Function Format-GmapPlaceSearch { [CmdletBinding()] param ( [Parameter(Mandatory=$False, ValueFromPipeline=$True)] $Results ) Process { $Results.PSTypeNames.Insert(0,"Gmap.PlaceSearch") # Create easier to understand properties out of resul...
PowerShellCorpus/PowerShellGallery/PoshGMaps/1.3/Private/New-GmapQuery.ps1
New-GmapQuery.ps1
Function New-GmapQuery { [CmdletBinding()] param ( [Parameter(Mandatory=$True, ValueFromPipeline=$True, ValueFromPipelinebyPropertyName=$true)] [string]$ApiKey, [Parameter(Mandatory=$False)] $options ) Begin{} Process { ...
PowerShellCorpus/PowerShellGallery/PoshGMaps/1.3/Private/Format-GmapDirection.ps1
Format-GmapDirection.ps1
Function Format-GmapDirection { [CmdletBinding()] param ( [Parameter(Mandatory=$False, ValueFromPipeline=$True)] $Results ) Process { $Results.PSTypeNames.Insert(0,"Gmap.Direction") # Create easier to understand properties out of result bu...
PowerShellCorpus/PowerShellGallery/PoshGMaps/1.3/Private/Format-GmapPlaceNearby.ps1
Format-GmapPlaceNearby.ps1
Function Format-GmapPlaceNearby { [CmdletBinding()] param ( [Parameter(Mandatory=$False, ValueFromPipeline=$True)] $Results ) Process { $Results.PSTypeNames.Insert(0,"Gmap.NearbyPlace") # Create easier to understand properties out of ...
PowerShellCorpus/PowerShellGallery/PoshGMaps/1.3/Private/Format-GmapGeoResult.ps1
Format-GmapGeoResult.ps1
Function Format-GmapGeoResult { [CmdletBinding()] param ( [Parameter(Mandatory=$False, ValueFromPipeline=$True)] $Results ) Process { $Results.PSTypeNames.Insert(0,"Gmap.GeoCode") # Create easier to understand properties out of result but ...
PowerShellCorpus/PowerShellGallery/PoshGMaps/1.3/Public/Get-GmapPlaceDetails.ps1
Get-GmapPlaceDetails.ps1
Function Get-GmapPlaceDetails { <# .SYNOPSIS This function gets information about a place_id returned by Google or provided by the person running the function. .DESCRIPTION This function gets information about a place_id returned by Google or provided by the person running the function...
PowerShellCorpus/PowerShellGallery/PoshGMaps/1.3/Public/Search-GmapNearbyPlace.ps1
Search-GmapNearbyPlace.ps1
Function Search-GmapNearbyPlace { <# .SYNOPSIS This will send a text query and return an object of place information back. .DESCRIPTION This will send a text query and return an object of place information back. Uses the Google Places API. .EXAMPLE Search-GmapNea...
PowerShellCorpus/PowerShellGallery/PoshGMaps/1.3/Public/Get-GmapReverseGeoCode.ps1
Get-GmapReverseGeoCode.ps1
Function Get-GmapReverseGeoCode { <# .SYNOPSIS This function gets address information from either $Latitude and $Longitude or froma $place_id. .DESCRIPTION This function gets address information from either $Latitude and $Longitude or froma $place_id. Uses the Google Places AP...
PowerShellCorpus/PowerShellGallery/PoshGMaps/1.3/Public/Get-GmapGeoCode.ps1
Get-GmapGeoCode.ps1
Function Get-GmapGeoCode { <# .SYNOPSIS This function returns information abobut an Address given to the Address parameter. .DESCRIPTION This function returns information abobut an Address given to the Address parameter. Uses the Google Geocode API. Object returned will be for...
PowerShellCorpus/PowerShellGallery/PoshGMaps/1.3/Public/Get-GmapDirections.ps1
Get-GmapDirections.ps1
Function Get-GmapDirections { <# .SYNOPSIS This function gets directions from the address provided to the Start parameter to the address provided to the End parameter. .DESCRIPTION This function gets directions from the address provided to the Start parameter to the address provided to...
PowerShellCorpus/PowerShellGallery/PoshGMaps/1.3/Public/Get-GmapPlaceNearby.ps1
Get-GmapPlaceNearby.ps1
Function Get-GmapPlaceNearby { <# .SYNOPSIS This function finds places that are nearby the specified $Latitude and $Longitude within the search $Radius .DESCRIPTION This function finds places that are nearby the specified $Latitude and $Longitude within the search $Radius. Use...
PowerShellCorpus/PowerShellGallery/xInternetExplorerHomePage/1.0.0/Examples/SetIEhomePage.ps1
SetIEhomePage.ps1
#--------------------------------------------------------------------------------- #The sample scripts are not supported under any Microsoft standard support #program or service. The sample scripts are provided AS IS without warranty #of any kind. Microsoft further disclaims all implied warranties including, #wit...
PowerShellCorpus/PowerShellGallery/Blade/0.15.0/Import-Blade.ps1
Import-Blade.ps1
<# .SYNOPSIS Imports the Blade module. .DESCRIPTION Normally, you shouldn't need to import Blade. Usually, you'll just call the `blade.ps1` script directly and it will import Blade for you. If Blade is already imported, it will be removed and then re-imported. .EXAMPLE Import-Blade.ps1 Demonstrates how...
PowerShellCorpus/PowerShellGallery/Blade/0.15.0/blade.ps1
blade.ps1
<# .SYNOPSIS Runs Blade tests in a file or directory. .DESCRIPTION The `blade.ps1` script, located in the root of the Blade module, is the script used to execute Blade tests. Given a path, it runs tests in any PowerShell script that begins with `Test-` (i.e. that matches the wildcard pattern `Test-*.ps1`. Tests a...
PowerShellCorpus/PowerShellGallery/Blade/0.15.0/Functions/Assert-FileDoesNotExist.ps1
Assert-FileDoesNotExist.ps1
# Copyright 2012 - 2015 Aaron Jensen # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
PowerShellCorpus/PowerShellGallery/Blade/0.15.0/Functions/Assert-NodeDoesNotExist.ps1
Assert-NodeDoesNotExist.ps1
# Copyright 2012 - 2015 Aaron Jensen # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
PowerShellCorpus/PowerShellGallery/Blade/0.15.0/Functions/Assert-Equal.ps1
Assert-Equal.ps1
# Copyright 2012 - 2015 Aaron Jensen # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
PowerShellCorpus/PowerShellGallery/Blade/0.15.0/Functions/Assert-ContainsLike.ps1
Assert-ContainsLike.ps1
# Copyright 2012 - 2015 Aaron Jensen # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
PowerShellCorpus/PowerShellGallery/Blade/0.15.0/Functions/Assert-GreaterThan.ps1
Assert-GreaterThan.ps1
# Copyright 2012 - 2015 Aaron Jensen # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
PowerShellCorpus/PowerShellGallery/Blade/0.15.0/Functions/Assert-FileExists.ps1
Assert-FileExists.ps1
# Copyright 2012 - 2015 Aaron Jensen # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
PowerShellCorpus/PowerShellGallery/Blade/0.15.0/Functions/Assert-Null.ps1
Assert-Null.ps1
# Copyright 2012 - 2015 Aaron Jensen # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
PowerShellCorpus/PowerShellGallery/Blade/0.15.0/Functions/New-AssertionException.ps1
New-AssertionException.ps1
# Copyright 2012 - 2015 Aaron Jensen # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
PowerShellCorpus/PowerShellGallery/Blade/0.15.0/Functions/Remove-ItemWithRetry.ps1
Remove-ItemWithRetry.ps1
# Copyright 2012 - 2015 Aaron Jensen # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
PowerShellCorpus/PowerShellGallery/Blade/0.15.0/Functions/Assert-DoesNotContain.ps1
Assert-DoesNotContain.ps1
# Copyright 2012 - 2015 Aaron Jensen # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
PowerShellCorpus/PowerShellGallery/Blade/0.15.0/Functions/Assert-NotEmpty.ps1
Assert-NotEmpty.ps1
# Copyright 2012 - 2015 Aaron Jensen # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
PowerShellCorpus/PowerShellGallery/Blade/0.15.0/Functions/Assert-False.ps1
Assert-False.ps1
# Copyright 2012 - 2015 Aaron Jensen # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
PowerShellCorpus/PowerShellGallery/Blade/0.15.0/Functions/Assert-Contains.ps1
Assert-Contains.ps1
# Copyright 2012 - 2015 Aaron Jensen # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...