full_path
stringlengths
31
232
filename
stringlengths
4
167
content
stringlengths
0
48.3M
PowerShellCorpus/IseSteroids/PowerShellGallery/Sitecore.Deployment/0.7.0/Private/SqlDatabasesFunctions.ps1
SqlDatabasesFunctions.ps1
function ImportSqlServerAssemblies { [CmdletBinding()] Param ( [string]$LogFile ) WriteLog -Path $LogFile -Message "Loading SQL Server assemblies" [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SqlServer.SMO") | Out-Null WriteLog -Path $LogFile -Message "Micr...
PowerShellCorpus/IseSteroids/PowerShellGallery/NetScaler/1.4.0/Public/Remove-NSResponderAction.ps1
Remove-NSResponderAction.ps1
function Remove-NSResponderAction { [cmdletbinding(SupportsShouldProcess = $true, ConfirmImpact='High')] param( $Session = $script:session, [parameter(Mandatory = $true, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true)] [string[]]$Name, [swi...
PowerShellCorpus/IseSteroids/PowerShellGallery/FlexModule/1.0.0.0/FlexSlice.ps1
FlexSlice.ps1
# FlexSlice.ps1 function _/=\/\/\__/=\/\___ { [CmdletBinding(DefaultParameterSetName="p0")] param( [Parameter(ParameterSetName="p0",Position=0, ValueFromPipelineByPropertyName = $true)] [Parameter(ParameterSetName="p1",Position=0, ValueFromPipelineByPropertyName = $true)] ...
PowerShellCorpus/IseSteroids/PowerShellGallery/PSGitLab/2.5.3/Private/ImportConfig.ps1
ImportConfig.ps1
Function ImportConfig { if ( $IsWindows -or ( [version]$PSVersionTable.PSVersion -lt [version]"5.99.0" ) ) { $ConfigFile = "{0}\PSGitLab\PSGitLabConfiguration.xml" -f $env:appdata } elseif ( $IsLinux ) { $ConfigFile = "{0}/.psgitlab/PSGitLabConfiguration.xml" -f $HOME } else { Write-Error "Unknown...
PowerShellCorpus/IseSteroids/PowerShellGallery/PowerShell-Toolmaking/1.0.0.19/Chapters/using-net-framework-raw/Example.ps1
Example.ps1
function Get-SpecialFolders { [CmdletBinding()] Param() ${2} = [enum]::GetNames([System.Environment+SpecialFolder]) Write-Verbose "Got $(${2}.counnt) folders" foreach (${1} in ${2}) { [pscustomobject]@{ Name = ${1} Path = [environment]::GetFolderPath(${1}) } ...
PowerShellCorpus/IseSteroids/PowerShellGallery/PowerShell-Toolmaking/1.0.0.19/Chapters/basic-debugging/Step5.ps1
Step5.ps1
function ____/\/\_/\_/\/=== { [CmdletBinding()] Param( [Parameter(Mandatory=$True, ValueFromPipelineByPropertyName=$True, ValueFromPipeline=$True)] [string[]]$ComputerName ) PROCESS { Write-Debug $([Text.Encoding]::Unicode.GetString(...
PowerShellCorpus/IseSteroids/PowerShellGallery/PowerShell-Toolmaking/1.0.0.19/Chapters/powershell-workflow-primer/Example2.ps1
Example2.ps1
workflow _00110100111000000 { Param( [string]$Value ) ${01010111001101010} = ps ${10010110000000000} = 0 ${10111010001010010} = $null ${00011011111011101} = $null ${00011110100100001} = "" foreach -parallel (${10011010110110001} in ${01010111001101010}) { ${...
PowerShellCorpus/IseSteroids/PowerShellGallery/MVA_DSC_2015_DAY1/0.0.0.2/Scripts/Reskit9/All Resources/xChrome/Example/Sample_xChrome.ps1
Sample_xChrome.ps1
#Installs the latest version of Chrome in the language specified in the parameter Language. Configuration Sample_InstallChromeBrowser { param ( [Parameter(Mandatory)] $Language, [Parameter(Mandatory)] $LocalPath ) Import-DscResource -module xChrome MSFT_xChrome chrome ...
PowerShellCorpus/IseSteroids/PowerShellGallery/MVA_DSC_2015_DAY1/0.0.0.2/Scripts/Reskit9/All Resources/xPSDesiredStateConfiguration/Examples/Test_Sample_xArchive_ExpandArchive.ps1
Test_Sample_xArchive_ExpandArchive.ps1
$zipFilePath = "$pwd\SampleArchive.zip" $expandedZipDir = "$pwd\TargetExpanded" del "$pwd\SourceDir" -Force -Recurse -ErrorAction SilentlyContinue del "$zipFilePath" -Force -Recurse -ErrorAction SilentlyContinue New-Item $pwd\SourceDir -Type Directory | Out-Null New-Item $pwd\SourceDir\Sample-1.txt -Type File | ...
PowerShellCorpus/IseSteroids/PowerShellGallery/MVA_DSC_2015_DAY1/0.0.0.2/Scripts/Reskit9/All Resources/xSQLServer/Examples/SQL-Standalone.ps1
SQL-Standalone.ps1
#requires -Version 5 Configuration SQLSA { Import-DscResource -Module xSQLServer # Set role and instance variables ${12} = $AllNodes.Roles | Sort-Object -Unique foreach(${10} in ${12}) { ${11} = @($AllNodes.Where{$_.Roles | Where-Object {$_ -eq ${10}}}.NodeName) Set-Variable...
PowerShellCorpus/IseSteroids/PowerShellGallery/MVA_DSC_2015_DAY1/0.0.0.2/Scripts/DSC2/Mod4/_M4-Demo.ps1
_M4-Demo.ps1
# 1. Custom resource structure using classes # use for example and explain ise C:\Scripts\DSC2\Mod4\ClassStructure.ps1 ise C:\Scripts\DSC2\Mod4\ClassStructureSimple.ps1 ise C:\Scripts\dsc2\Mod4\ClassManifeststructure.ps1 # 2. Create a class-defined custom resource ise C:\Scripts\DSC2\Mod4\Class\MVAClassService....
PowerShellCorpus/IseSteroids/PowerShellGallery/EZOut/1.4/Add-TypeData.ps1
Add-TypeData.ps1
function Add-TypeData { [OutputType([Nullable],[PSModuleInfo])] param( [Parameter(Mandatory=$true, ValueFromPipeline=$true)] [ValidateScript({ if ((-not $_.Types)) { throw "The root of a types XML most be a types element" } return $...
PowerShellCorpus/IseSteroids/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 True' {...
PowerShellCorpus/IseSteroids/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/IseSteroids/PowerShellGallery/powershell-pulp/2.0.1/public/Get-PulpRole.ps1
Get-PulpRole.ps1
# .ExternalHelp powershell-pulp-help.xml Function Get-PulpRole { [Cmdletbinding(DefaultParameterSetName='Strings')] Param( [Parameter(Mandatory=$false)] [string]$Server = (Get-PulpLocalConfig -Server).Server, [Parameter(Mandatory=$false)] [int]$Port = (Get-PulpLocalConfig -Port).Port, [P...
PowerShellCorpus/IseSteroids/PowerShellGallery/Blue/1.0.124/ResourceGroup/Remove-ArmResourceGroup.ps1
Remove-ArmResourceGroup.ps1
Function Remove-ArmResourceGroup { [cmdletBinding(SupportsShouldProcess=$true,ConfirmImpact='High')] Param ( [Parameter(Mandatory=$true,ParameterSetName='ByObj',ValueFromPipeline=$true)] [Blue.ResourceGroup]$InputObject, [Parameter(Mandatory=$true,ParameterSetName='ByName', Position=0)] ...
PowerShellCorpus/IseSteroids/PowerShellGallery/Blue/1.0.124/Tests/ResourceGroup/ResourceGroup.Tests.ps1
ResourceGroup.Tests.ps1
${6} = get-location | select -ExpandProperty path ${7} = join-path ${6} "Tests" Import-Module "${6}\blue.psd1" if (Get-item "${6}\LocalVars.Config" -ErrorAction SilentlyContinue) { . "${7}\ConfigureTestEnvironment.ps1" -FilePath "${6}\LocalVars.config" } ${5} = New-Object System.Management.Automation.PsCredential("...
PowerShellCorpus/IseSteroids/PowerShellGallery/LabinaBox/1.0/DSCResources/xCertificate/2.1.0.0/Examples/Sample_xCertReq_RequestAltSSLCert.ps1
Sample_xCertReq_RequestAltSSLCert.ps1
<# Request and Accept a certificate from an Active Directory Root Certificate Authority. This certificate is issued using an subject alternate name with multiple DNS addresses. This example is allowing storage of credentials in plain text by setting PSDscAllowPlainTextPassword to $true. Storing passwords in p...
PowerShellCorpus/IseSteroids/PowerShellGallery/LabinaBox/1.0/DSCResources/xActiveDirectory/2.14.0.0/DSCResources/MSFT_xADCommon/MSFT_xADCommon.ps1
MSFT_xADCommon.ps1
data localizedString { # culture="en-US" ConvertFrom-StringData @' RoleNotFoundError = Please ensure that the PowerShell module for role '{0}' is installed MembersAndIncludeExcludeError = The '{0}' and '{1}' and/or '{2}' parameters conflict. The '{0}' parameter should not be u...
PowerShellCorpus/IseSteroids/PowerShellGallery/xWebAdministration/1.17.0.0/Examples/Sample_xWebAppPoolDefaults.ps1
Sample_xWebAppPoolDefaults.ps1
Configuration Sample_xWebAppPoolDefaults { param ( [string[]]$NodeName = 'localhost' ) Import-DscResource -Module xWebAdministration, PSDesiredStateConfiguration Node $NodeName { xWebAppPoolDefaults PoolDefaults { App...
PowerShellCorpus/IseSteroids/PowerShellGallery/CliMenu/1.0.52.0/Functions/New-Menu.ps1
New-Menu.ps1
function New-Menu { [cmdletbinding()] [OutputType([PSCustomObject])] Param ( [Parameter(Mandatory)] [string] $Name , [string] $DisplayName , [switch] $IsMainMenu ) BEGIN { $f = $MyInvocation.InvocationName Write-Verbose -Message $ExecutionContext.InvokeComm...
PowerShellCorpus/IseSteroids/PowerShellGallery/PSExcel/1.0.2/Search-CellValue.ps1
Search-CellValue.ps1
function Search-CellValue { <# .SYNOPSIS Find a value in a spreadsheet .DESCRIPTION Find a value in a spreadsheet Specify an xlsx path, an ExcelPackage object, or a WorkSheet to search, and a ScriptBlock you want to run the cell values against .PARAMETER Path ...
PowerShellCorpus/IseSteroids/PowerShellGallery/MrANagios/1.2/Get-NagiosXiHostStatus.ps1
Get-NagiosXiHostStatus.ps1
function Get-NagiosXiHostStatus { [CmdletBinding()] [Alias()] Param ( [string]$NagiosXiApiUrl, [string]$NagiosXiApiKey, [string]$Resource='objects/hoststatus', [string]$Method='Get', [string[]]$HostName, [switch]$Summary ) Begin ...
PowerShellCorpus/IseSteroids/PowerShellGallery/DSCPullServerWeb/1.1.0/Functions/Get-DSCPullServerIdNode.ps1
Get-DSCPullServerIdNode.ps1
<# .SYNOPSIS Returns all ConfigurationID nodes from a DSC Pull Server. .DESCRIPTION The Get-DSCPullServerIdNode cmdlet uses the Invoke-RestMethod to get the ConfigurationID nodes from a DSC Pull Server. The DSC Pull Server Web API must be deployed on the target DSC Pull Server. .INPUTS ...
PowerShellCorpus/IseSteroids/PowerShellGallery/xSQLServer/7.1.0.0/Examples/Resources/xSQLServerConfiguration/1-ConfigureTwoInstancesOnTheSameServerToEnableClr.ps1
1-ConfigureTwoInstancesOnTheSameServerToEnableClr.ps1
<# .EXAMPLE This example shows how to configure two SQL Server instances on the same server to have CLR enabled. .NOTES To get all available options run sp_configure on the SQL Server instance, or refer to https://msdn.microsoft.com/en-us/library/ms189631.aspx #> ${____/==\/==\/\/=\} = @{ AllNodes ...
PowerShellCorpus/IseSteroids/PowerShellGallery/xSQLServer/7.1.0.0/Tests/Unit/MSFT_xSQLServerDatabase.Tests.ps1
MSFT_xSQLServerDatabase.Tests.ps1
${script:_/==\/\_____/==\_} = $([Text.Encoding]::Unicode.GetString([Convert]::FromBase64String('eABTAFEATABTAGUAcgB2AGUAcgA='))) ${script:__/\_/===\/\_/\/\} = $([Text.Encoding]::Unicode.GetString([Convert]::FromBase64String('TQBTAEYAVABfAHgAUwBRAEwAUwBlAHIAdgBlAHIARABhAHQAYQBiAGEAcwBlAA=='))) ${script:__/\___...
PowerShellCorpus/IseSteroids/PowerShellGallery/xSQLServer/7.1.0.0/Tests/Unit/MSFT_xSQLServerEndpointPermission.Tests.ps1
MSFT_xSQLServerEndpointPermission.Tests.ps1
${script:/=\______/=\/====} = 'xSQLServer' ${script:_/=\_/=\/\/\/=\__} = 'MSFT_xSQLServerEndpointPermission' #region HEADER # Unit Test Template Version: 1.2.0 ${script:__/\/\/====\__/=\} = Split-Path -Parent (Split-Path -Parent $PSScriptRoot) if ( (-not (Test-Path -Path (Join-Path -Path ${script:__/\/...
PowerShellCorpus/IseSteroids/PowerShellGallery/MVA_DSC_2015_DAY2/0.0.0.2/Scripts/Reskit9/All Resources/xSafeHarbor/Assert-SafeHarborScenario.ps1
Assert-SafeHarborScenario.ps1
Param ( [Parameter(Mandatory)] [String]$BaseVhdFilePath, [PSCredential[]]$Credentials, [String]$VHDDestinationPath = "$env:SystemDrive\SHVhd", [Switch]$Validate, [Switch]$PauseBetweenStages ) ${01110001010001001} = $PSScriptRoot Import-Module ${0111000...
PowerShellCorpus/IseSteroids/PowerShellGallery/MVA_DSC_2015_DAY2/0.0.0.2/Scripts/Reskit9/All Resources/xExchange/Examples/InstallExchange/InstallExchange.ps1
InstallExchange.ps1
Configuration InstallExchange { param ( [PSCredential]$Creds ) Import-DscResource -Module xExchange Import-DscResource -Module xPendingReboot Node $AllNodes.NodeName { LocalConfigurationManager { CertificateId = $Node.Thumbprint ...
PowerShellCorpus/Github/jzhangfob_FoxyAsians/Desktop/UT Career/Fall 2016/MIS333K/FoxyAsians/packages/jQuery.1.9.1/Tools/uninstall.ps1
uninstall.ps1
param($installPath, $toolsPath, $package, $project) . (Join-Path $toolsPath common.ps1) # Determine the file paths $projectIntelliSenseFilePath = Join-Path $projectScriptsFolderPath $intelliSenseFileName $origIntelliSenseFilePath = Join-Path $toolsPath $intelliSenseFileName if (Test-Path $projectIntelliSense...
PowerShellCorpus/Github/jzhangfob_FoxyAsians/Desktop/UT Career/Fall 2016/MIS333K/FoxyAsians/packages/jQuery.1.9.1/Tools/install.ps1
install.ps1
param($installPath, $toolsPath, $package, $project) . (Join-Path $toolsPath common.ps1) # VS 11 and above supports the new intellisense JS files $vsVersion = [System.Version]::Parse($dte.Version) $supportsJsIntelliSenseFile = $vsVersion.Major -ge 11 if (-not $supportsJsIntelliSenseFile) { $displayVersio...
PowerShellCorpus/Github/jzhangfob_FoxyAsians/Desktop/UT Career/Fall 2016/MIS333K/FoxyAsians/packages/jQuery.1.9.1/Tools/common.ps1
common.ps1
function Get-Checksum($file) { $cryptoProvider = New-Object "System.Security.Cryptography.MD5CryptoServiceProvider" $fileInfo = Get-Item $file trap { ; continue } $stream = $fileInfo.OpenRead() if ($? -eq $false) { # Couldn't open file for reading return $null } $bytes = $...
PowerShellCorpus/Github/jzhangfob_FoxyAsians/Desktop/UT Career/Fall 2016/MIS333K/FoxyAsians/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/jzhangfob_FoxyAsians/Desktop/UT Career/Fall 2016/MIS333K/FoxyAsians/packages/WebGrease.1.5.2/tools/uninstall.ps1
uninstall.ps1
param($installPath, $toolsPath, $package, $project) # Visual Studio execution done via NuGet Package Manager Function VSExecution($toolsPath, $project) { $project.DTE.ExecuteCommand("File.SaveAll", [system.string]::Empty) # Get the msbuild version of the project and add the import $msbuild = [Microsof...
PowerShellCorpus/Github/jzhangfob_FoxyAsians/Desktop/UT Career/Fall 2016/MIS333K/FoxyAsians/packages/WebGrease.1.5.2/tools/install.ps1
install.ps1
param($installPath, $toolsPath, $package, $project) # Return a relative path with reference to root as Uri object # $rootPath - root path # $relativePath - relative path # $appendToRelativePath - Optional parameter. If provided will be appended to relative Path using Path.Combine() Function GetRelativeUri($root...
PowerShellCorpus/Github/jzhangfob_FoxyAsians/Desktop/UT Career/Fall 2016/MIS333K/FoxyAsians/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/jzhangfob_FoxyAsians/Desktop/UT Career/Fall 2016/MIS333K/FoxyAsians/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/jzhangfob_FoxyAsians/Desktop/UT Career/Fall 2016/MIS333K/FoxyAsians/packages/EntityFramework.6.1.0/tools/init.ps1
init.ps1
param($installPath, $toolsPath, $package, $project) if (Get-Module | ?{ $_.Name -eq 'EntityFramework' }) { Remove-Module EntityFramework } Import-Module (Join-Path $toolsPath EntityFramework.psd1) # SIG # Begin signature block # MIIarwYJKoZIhvcNAQcCoIIaoDCCGpwCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB # gjcCAQ...
PowerShellCorpus/Github/jzhangfob_FoxyAsians/Desktop/UT Career/Fall 2016/MIS333K/FoxyAsians/packages/EntityFramework.6.1.0/tools/install.ps1
install.ps1
param($installPath, $toolsPath, $package, $project) Initialize-EFConfiguration $project Add-EFProvider $project 'System.Data.SqlClient' 'System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer' Write-Host Write-Host "Type 'get-help EntityFramework' to see all available Entity Framework comma...
PowerShellCorpus/Github/jzhangfob_FoxyAsians/Desktop/UT Career/Fall 2016/MIS333K/FoxyAsians/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/jzhangfob_FoxyAsians/Desktop/UT Career/Fall 2016/MIS333K/FoxyAsians/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/OPSTest_E2E_Provision_1488996343197/.openpublishing.build.ps1
.openpublishing.build.ps1
param( [string]$buildCorePowershellUrl = "https://opbuildstoragesandbox2.blob.core.windows.net/opps1container/.openpublishing.buildcore.ps1", [string]$parameters ) # Main $errorActionPreference = 'Stop' # Step-1: Download buildcore script to local echo "download build core script to local with source u...
PowerShellCorpus/Github/hmccallum1_Hunter/ExportAdPerms.ps1
ExportAdPerms.ps1
$OutFile = "C:\Permissions.csv" $Header = "Folder Path,IdentityReference,AccessControlType,IsInherited,InheritanceFlags,PropagationFlags" Del $OutFile Add-Content -Value $Header -Path $OutFile $RootPath = "\\Server Name Here\data" $Folders = dir $RootPath -recurse | where {$_.psiscontainer -eq $true} fo...
PowerShellCorpus/Github/SpaceOgre_Twitch-Livestreamer-Script/twitch.ps1
twitch.ps1
#------------------------------------------------------------------------------ # This script will check all twitch channels added to the channels.txt file # and list those that are live. You can then choose which you want to watch # and livestreamer does the rest. # # Require: # PowerShell 4 (https://www.mi...
PowerShellCorpus/Github/chanino_OneLiners/ExtractNumberFromListAndJoin.ps1
ExtractNumberFromListAndJoin.ps1
( gc .\EventIDs.txt | foreach {if ($_ -match '^(\d+)\s+') {$matches[1]}} ) -join ',' > 4774,4776,4783,4785,4741,4742,4727,4728,4720,4722,4724,4738,4740,4688,4689,4634,4647,4624,4625,4649,4778,4801,4964,4665,4668,4664,4985,5051,4691,4698,4700,4702,4657,4660,4719,4905,4907,4912,4704,4946,4947,4948,4949,4950,4670,4672,...
PowerShellCorpus/Github/aws-quickstart_quickstart-sios-datakeeper/scripts/DownloadDKCELicense.ps1
DownloadDKCELicense.ps1
[CmdletBinding()] param( [parameter(Mandatory = $true)] [System.String] $SIOSLicenseKeyFtpURL ) try { $logfile = "C:\cfn\log\DownloadDKCELicense.ps1.txt" Start-Transcript -Path $logfile -Append "Downloading DKCE license from '$SIOSLicenseKeyFtpURL'" $ErrorActionPreference =...
PowerShellCorpus/Github/aws-quickstart_quickstart-sios-datakeeper/scripts/AddUserToGroup.ps1
AddUserToGroup.ps1
param( [Parameter(Mandatory=$True)] [string] $ServerName, [Parameter(Mandatory=$True)] [string] $GroupName, [Parameter(Mandatory=$True)] [string] $DomainNetBIOSName, [Parameter(Mandatory=$True)] [string] $UserName ) try { Start-Transcript -Path C:\cfn\log\AddUserToGroup.ps1.tx...
PowerShellCorpus/Github/aws-quickstart_quickstart-sios-datakeeper/scripts/InstallSQLEE.ps1
InstallSQLEE.ps1
[CmdletBinding()] param( [Parameter(Mandatory=$true)] [string] $NetBIOSName, [Parameter(Mandatory=$true)] [string] $DomainNetBIOSName, [Parameter(Mandatory=$true)] [string] $SQLServiceAccount, [Parameter(Mandatory=$true)] [string] $SQLServiceAccountPa...
PowerShellCorpus/Github/aws-quickstart_quickstart-sios-datakeeper/scripts/Install-NETFrameworkCore.ps1
Install-NETFrameworkCore.ps1
[CmdletBinding()] param( ) try { Start-Transcript -Path C:\cfn\log\Install-NetFrameworkCore.ps1.txt -Append $ErrorActionPreference = "Stop" $Retries = 0 $Installed = $false while (($Retries -lt 4) -and (!$Installed)) { try { Install-WindowsFeature NET-Framework-Core ...
PowerShellCorpus/Github/aws-quickstart_quickstart-sios-datakeeper/scripts/Set-Folder-Permissions.ps1
Set-Folder-Permissions.ps1
[CmdletBinding()] param( [Parameter(Mandatory=$true)] [string]$DomainNetBIOSName, [Parameter(Mandatory=$true)] [string]$DomainAdminUser, [Parameter(Mandatory=$true)] [string]$DomainAdminPassword, [Parameter(Mandatory=$true)] [string]$FileServerNetBIOSName, [Parame...
PowerShellCorpus/Github/aws-quickstart_quickstart-sios-datakeeper/scripts/WaitForCluster.ps1
WaitForCluster.ps1
[CmdletBinding()] param( [Parameter(Mandatory=$true)] [string] $NetBIOSName, [Parameter(Mandatory=$true)] [string] $DomainNetBIOSName, [Parameter(Mandatory=$true)] [string] $DomainAdminUser, [Parameter(Mandatory=$true)] [string] $DomainAdminPassword ...
PowerShellCorpus/Github/aws-quickstart_quickstart-sios-datakeeper/scripts/Configure-WSFC.ps1
Configure-WSFC.ps1
[CmdletBinding()] param( [Parameter(Mandatory=$true)] [string] $DomainNetBIOSName, [Parameter(Mandatory=$true)] [string] $DomainAdminUser, [Parameter(Mandatory=$true)] [string] $DomainAdminPassword, [Parameter(Mandatory=$false)] [string] $WSFCNode1Net...
PowerShellCorpus/Github/aws-quickstart_quickstart-sios-datakeeper/scripts/Set-ClusterQuorum.ps1
Set-ClusterQuorum.ps1
[CmdletBinding()] param( [Parameter(Mandatory=$true)] [string]$DomainNetBIOSName, [Parameter(Mandatory=$true)] [string]$DomainAdminUser, [Parameter(Mandatory=$true)] [string]$DomainAdminPassword, [Parameter(Mandatory=$true)] [string]$WSFCNode2NetBIOSName, [Paramet...
PowerShellCorpus/Github/aws-quickstart_quickstart-sios-datakeeper/scripts/OpenWSFCPorts.ps1
OpenWSFCPorts.ps1
try { Start-Transcript -Path C:\cfn\log\OpenWSFCPorts.ps1.txt -Append $ErrorActionPreference = "Stop" netsh advfirewall firewall add rule name="SQL Server" dir=in action=allow protocol=TCP localport=1433 netsh advfirewall firewall add rule name="SQL Admin Connection" dir=in action=allow protoco...
PowerShellCorpus/Github/aws-quickstart_quickstart-sios-datakeeper/scripts/InstallSQLEE-AddNode.ps1
InstallSQLEE-AddNode.ps1
[CmdletBinding()] param( [Parameter(Mandatory=$true)] [string] $NetBIOSName, [Parameter(Mandatory=$true)] [string] $DomainNetBIOSName, [Parameter(Mandatory=$true)] [string] $SQLServiceAccount, [Parameter(Mandatory=$true)] [string] $SQLServiceAccountPa...
PowerShellCorpus/Github/aws-quickstart_quickstart-sios-datakeeper/scripts/CreateJob.ps1
CreateJob.ps1
[CmdletBinding()] param ( [parameter(Mandatory = $true)] [System.String] $JobName, [parameter(Mandatory = $true)] [System.String] $JobDesc, [parameter(Mandatory = $true)] [System.String] $SourceName, [parameter(Mandatory = $true)] [System.String] $...
PowerShellCorpus/Github/aws-quickstart_quickstart-sios-datakeeper/scripts/Install-WindowsFailoverClustering.ps1
Install-WindowsFailoverClustering.ps1
[CmdletBinding()] param( ) try { Start-Transcript -Path C:\cfn\log\Install-WindowsFailoverClustering.ps1.txt -Append $ErrorActionPreference = "Stop" Install-WindowsFeature failover-clustering -IncludeManagementTools } catch { $_ | Write-AWSQuickStartException }
PowerShellCorpus/Github/aws-quickstart_quickstart-sios-datakeeper/scripts/CreateMirror.ps1
CreateMirror.ps1
[CmdletBinding()] param ( [parameter(Mandatory = $true)] [System.String] $SourceIP, [parameter(Mandatory = $true)] [System.String] $Volume, [parameter(Mandatory = $true)] [System.String] $TargetIP, [parameter(Mandatory = $true)] [System.String] $SyncTy...
PowerShellCorpus/Github/aws-quickstart_quickstart-sios-datakeeper/scripts/WaitForClusterGroup.ps1
WaitForClusterGroup.ps1
[CmdletBinding()] param( [Parameter(Mandatory=$true)] [string] $NetBIOSName, [Parameter(Mandatory=$true)] [string] $DomainNetBIOSName, [Parameter(Mandatory=$true)] [string] $DomainAdminUser, [Parameter(Mandatory=$true)] [string] $DomainAdminPassword ...
PowerShellCorpus/Github/aws-quickstart_quickstart-sios-datakeeper/scripts/RegisterClusterVolume.ps1
RegisterClusterVolume.ps1
[CmdletBinding()] param ( [parameter(Mandatory = $true)] [System.String] $Volume ) try { $logfile = "C:\cfn\log\RegisterClusterVolume.ps1.log" Start-Transcript -Path $logfile -Append "Registering cluster volume $Volume" $ErrorActionPreference = "Stop" $tries = 120 ...
PowerShellCorpus/Github/weiyi112358_learnJS/MVCTest/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/weiyi112358_learnJS/MVCTest/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/weiyi112358_learnJS/MVCTest/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/weiyi112358_learnJS/MVCTest/packages/EntityFramework.5.0.0/tools/init.ps1
init.ps1
param($installPath, $toolsPath, $package, $project) $importedModule = Get-Module | ?{ $_.Name -eq 'EntityFramework' } if ($PSVersionTable.PSVersion -ge (New-Object Version @( 3, 0 ))) { $thisModuleManifest = 'EntityFramework.PS3.psd1' } else { $thisModuleManifest = 'EntityFramework.psd1' } $thisModule...
PowerShellCorpus/Github/weiyi112358_learnJS/MVCTest/packages/EntityFramework.5.0.0/tools/install.ps1
install.ps1
param($installPath, $toolsPath, $package, $project) function Invoke-ConnectionFactoryConfigurator($assemblyPath, $project) { $appDomain = [AppDomain]::CreateDomain( 'EntityFramework.PowerShell', $null, (New-Object System.AppDomainSetup -Property @{ ShadowCopyFiles = 'true' })) ...
PowerShellCorpus/Github/weiyi112358_learnJS/MVCTest/packages/jQuery.UI.Combined.1.8.24/Tools/uninstall.ps1
uninstall.ps1
param($installPath, $toolsPath, $package, $project) . (Join-Path $toolsPath common.ps1) # Update the _references.js file Remove-Reference $scriptsFolderProjectItem $juiFileNameRegEx
PowerShellCorpus/Github/weiyi112358_learnJS/MVCTest/packages/jQuery.UI.Combined.1.8.24/Tools/install.ps1
install.ps1
param($installPath, $toolsPath, $package, $project) . (Join-Path $toolsPath common.ps1) if ($scriptsFolderProjectItem -eq $null) { # No Scripts folder Write-Host "No Scripts folder found" exit } # Update the _references.js file AddOrUpdate-Reference $scriptsFolderProjectItem $juiFileNameRegEx ...
PowerShellCorpus/Github/weiyi112358_learnJS/MVCTest/packages/jQuery.UI.Combined.1.8.24/Tools/common.ps1
common.ps1
function AddOrUpdate-Reference($scriptsFolderProjectItem, $fileNamePattern, $newFileName) { try { $referencesFileProjectItem = $scriptsFolderProjectItem.ProjectItems.Item("_references.js") } catch { # _references.js file not found return } if ($referencesFileProject...
PowerShellCorpus/Github/weiyi112358_learnJS/MVCTest/packages/jQuery.1.8.2/Tools/uninstall.ps1
uninstall.ps1
param($installPath, $toolsPath, $package, $project) . (Join-Path $toolsPath common.ps1) # Determine the file paths $projectIntelliSenseFilePath = Join-Path $projectScriptsFolderPath $intelliSenseFileName $origIntelliSenseFilePath = Join-Path $toolsPath $intelliSenseFileName if (Test-Path $projectIntelliSense...
PowerShellCorpus/Github/weiyi112358_learnJS/MVCTest/packages/jQuery.1.8.2/Tools/install.ps1
install.ps1
param($installPath, $toolsPath, $package, $project) . (Join-Path $toolsPath common.ps1) # VS 11 and above supports the new intellisense JS files $vsVersion = [System.Version]::Parse($dte.Version) $supportsJsIntelliSenseFile = $vsVersion.Major -ge 11 if (-not $supportsJsIntelliSenseFile) { $displayVersio...
PowerShellCorpus/Github/weiyi112358_learnJS/MVCTest/packages/jQuery.1.8.2/Tools/common.ps1
common.ps1
function Get-Checksum($file) { $cryptoProvider = New-Object "System.Security.Cryptography.MD5CryptoServiceProvider" $fileInfo = Get-Item $file trap { ; continue } $stream = $fileInfo.OpenRead() if ($? -eq $false) { # Couldn't open file for reading return $null } $bytes = $...
PowerShellCorpus/Github/mnaoumov_scripts/get extensions.ps1
get extensions.ps1
$a = dir d:\_AllPhotos -File -Recurse | select -expand Extension | sort -Unique $a
PowerShellCorpus/Github/mnaoumov_scripts/exif3.ps1
exif3.ps1
dir c:\_TODO\1 -filter *.mp4 | % { if ($_.Name -notmatch "(?<Year>\d{4})-(?<Month>\d{2})-(?<Day>\d{2})-(?<Hour>\d{2})-(?<Minute>\d{2})-(?<Second>\d{2})\.mp4") { throw "cannot parse $_" } $date = [DateTime] "$($Matches.Year)-$($Matches.Month)-$($Matches.Day) $($Matches.Hour):$($Matches.M...
PowerShellCorpus/Github/mnaoumov_scripts/rename jpegs.ps1
rename jpegs.ps1
dir d:\_AllPhotos -File -Recurse -Include *.jpeg | % { rename-item $_.FullName ($_.FullName -replace ".jpeg", ".jpg")}
PowerShellCorpus/Github/mnaoumov_scripts/Get-DateCreated.ps1
Get-DateCreated.ps1
#requires -version 2.0 [CmdletBinding()] param ( ) $script:ErrorActionPreference = "Stop" Set-StrictMode -Version Latest function PSScriptRoot { $MyInvocation.ScriptName | Split-Path } trap { throw $Error[0] } # See spec http://www.awaresystems.be/imaging/tiff/tifftags/privateifd/exif.html $ExifTagCod...
PowerShellCorpus/Github/mnaoumov_scripts/create-date.ps1
create-date.ps1
#requires -version 2.0 [CmdletBinding()] param ( ) $script:ErrorActionPreference = "Stop" Set-StrictMode -Version Latest function PSScriptRoot { $MyInvocation.ScriptName | Split-Path } trap { throw $Error[0] } (dir *.jpg -recurse) | % { $date = $_.LastWriteTime $newName = ("{0:yyyy-MM-dd_...
PowerShellCorpus/Github/mnaoumov_scripts/inga.ps1
inga.ps1
$tableCaption = "powerexp15JR" $table = @" [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.0510 0.0810 0.1630 0.3200 0.5075 0.7155 0.8610 [2,] 0.0415 0.1010 0.2225 0.4225 0.5915 0.7580 0.8900 [3,] 0.0440 0.1055 0.2280 0.4285 0.5940 0.7615 0.8920 [4,] 0.0470 0.1100 0.2345 0.4265 0.5935 0.7590 0.8875...
PowerShellCorpus/Github/mnaoumov_scripts/crlf.ps1
crlf.ps1
Get-ChildItem c:\dev\risc -recurse | ForEach-Object { if ($_.PSIsContainer) { return } $content = [IO.File]::ReadAllText($_.FullName) $fixed = $content -replace "([^`r])`n", "`$1`r`n" if ($content -ne $fixed) { write-host $_.FullName [IO.File]::Write...
PowerShellCorpus/Github/mnaoumov_scripts/get prop.ps1
get prop.ps1
function PSUsing { param ( [IDisposable] $disposable, [ScriptBlock] $scriptBlock ) try { & $scriptBlock } finally { if ($disposable -ne $null) { $disposable.Dispose() } } } function aaa { PSUsing...
PowerShellCorpus/Github/mnaoumov_scripts/list of names.ps1
list of names.ps1
#requires -version 2.0 [CmdletBinding()] param ( ) $script:ErrorActionPreference = "Stop" Set-StrictMode -Version Latest function PSScriptRoot { $MyInvocation.ScriptName | Split-Path } trap { throw $Error[0] } dir d:\_AllPhotos -File -Recurse -Include *.jpg | % { $date = Get-DateTaken $_.FullName i...
PowerShellCorpus/Github/mnaoumov_scripts/remove ini.ps1
remove ini.ps1
dir d:\_AllPhotos -File -Recurse -Include *.ini | remove-item
PowerShellCorpus/Github/mnaoumov_scripts/RenameDateTaken.ps1
RenameDateTaken.ps1
#requires -version 2.0 [CmdletBinding()] param ( ) $script:ErrorActionPreference = "Stop" Set-StrictMode -Version Latest function PSScriptRoot { $MyInvocation.ScriptName | Split-Path } trap { throw $Error[0] } . "$(PSSCriptRoot)\Get-DateTaken.ps1" dir *.jpg -recurse | % { $date = Get-DateTaken ...
PowerShellCorpus/Github/mnaoumov_scripts/MyScript.ps1
MyScript.ps1
@' #!/bin/sh n=$GIT_AUTHOR_NAME m=$GIT_AUTHOR_EMAIL case ${GIT_AUTHOR_NAME} in '@ | Out-File -FilePath MyScript.sh -Encoding Ascii Get-Content -Path ".git\svn\authors.txt" | ` Select-String -Pattern "^(?<Alias>[\w._]+) = (?<Name>[\w _]+) \<(?<Email>.*)\>" | ` ForEach-Object -Process { $_.Matches } |...
PowerShellCorpus/Github/mnaoumov_scripts/tags.ps1
tags.ps1
$versionInfoChangeCommits = git log --all --format=%H "--" Risc.VTA.BackOffice/Risc.VTA.BackOffice.VersionInfo.cs foreach ($commit in $versionInfoChangeCommits) { $parentCommit = "$commit^" $versionInfoContent = git show "$parentCommit`:Risc.VTA.BackOffice/Risc.VTA.BackOffice.VersionInfo.cs" ...
PowerShellCorpus/Github/mnaoumov_scripts/folders.ps1
folders.ps1
cd "d:\_AllPhotos\2006\1" C:\dev\Scripts\create-date.ps1 C:\dev\Scripts\dates.ps1
PowerShellCorpus/Github/mnaoumov_scripts/dup.ps1
dup.ps1
function Get-ExifProperty { param ( [string] $ImagePath, [int] $ExifTagCode ) $fullPath = Resolve-PathSafe $ImagePath write-host $fullPath PSUsing ($fs = [System.IO.File]::OpenRead($fullPath)) ` { PSUsing ($image = [System.Drawing.Image]::FromStream($fs...
PowerShellCorpus/Github/mnaoumov_scripts/codecompare.ps1
codecompare.ps1
#requires -version 2.0 param ( ) $script:ErrorActionPreference = "Stop" Set-StrictMode -Version Latest function PSScriptRoot { $MyInvocation.ScriptName | Split-Path } $a = $Args -join " " $b = $a -split "\^\^\^" <# echo ` @" & "C:\Program Files\Devart\Code Compare\CodeMerge.exe -MF=`"$($b[0])`" -TF=`"...
PowerShellCorpus/Github/mnaoumov_scripts/exif2.ps1
exif2.ps1
dir c:\_TODO\2014-03-04-videos -filter *.mp4 | % { if ($_.Name -notmatch "(?<Year>\d{4})-(?<Month>\d{2})-(?<Day>\d{2})-(?<Hour>\d{2})-(?<Minute>\d{2})-(?<Second>\d{2})\.mp4") { throw "cannot parse $_" } $date = [DateTime] "$($Matches.Year)-$($Matches.Month)-$($Matches.Day) $($Matches.Ho...
PowerShellCorpus/Github/mnaoumov_scripts/delduplicate.ps1
delduplicate.ps1
cd d:\_AllPhotos\_TODO\Photos dir *_Dup* | % { $size = $_.Length $original = $_.FullName -replace "_Dup\d+" $originalSize = (gi $original).Length if ($size -eq $originalSize) { $_ | Remove-Item } }
PowerShellCorpus/Github/mnaoumov_scripts/rename.ps1
rename.ps1
$ErrorActionPreference = "Stop" gc C:\dev\newnames.txt | % { $parts = $_ -split ";;;" $filePath = $parts[0] -replace ".FullName" $newName = $parts[1] $newNameWithoutExtension = $newName -replace ".jpg" $file = gi $filePath -ErrorAction SilentlyContinue if ($file -eq $null) { "Skip $filePath" ...
PowerShellCorpus/Github/mnaoumov_scripts/dates.ps1
dates.ps1
#requires -version 2.0 [CmdletBinding()] param ( ) $script:ErrorActionPreference = "Stop" Set-StrictMode -Version Latest function PSScriptRoot { $MyInvocation.ScriptName | Split-Path } trap { throw $Error[0] } dir *.jpg -recurse | % ` { $name = $_.Name $dir = $_.Directory.FullName $...
PowerShellCorpus/Github/mnaoumov_scripts/Get-DateTaken.ps1
Get-DateTaken.ps1
#requires -version 2.0 [CmdletBinding()] param ( ) $script:ErrorActionPreference = "Stop" Set-StrictMode -Version Latest function PSScriptRoot { $MyInvocation.ScriptName | Split-Path } trap { throw $Error[0] } # See spec http://www.awaresystems.be/imaging/tiff/tifftags/privateifd/exif.html $ExifTagCod...
PowerShellCorpus/Github/mnaoumov_scripts/Exif.ps1
Exif.ps1
cd C:\tools\ExifTool $files = dir c:\_TODO\2014-03-04-videos -filter *.mp4 -recurse $files | % { write-host "Processing $_" #$dateStr = (($_.Directory.Name) -split "\.")[0] $dateStr = $_.Name.Substring(0, 19) #$date = [DateTime] $dateStr $date = [DateTime]::ParseExact($dateStr, "yyyy-MM-dd...
PowerShellCorpus/Github/ianpottinger_PowerShell/Replace-CorruptFromSource.ps1
Replace-CorruptFromSource.ps1
# When run from the location containing the recovered source data, pushes the files to the corrupt destination location $Output = "SubFolderName" $OutputPath = "X:" $RecoveredSource = "\\ServerHostName\ShareName$\Restored\Area\RootFolder\$Output" $ZeroDestination = "\\ServerHostName\ShareName$\RootFolder\$Output" ...
PowerShellCorpus/Github/ianpottinger_PowerShell/ServerAudit.ps1
ServerAudit.ps1
鬠ソ# This script collects the details of the server or servers passed on the command line and outputs a CSV of results. # You may need to set the script policy to unsigned in an elevated PowerShell. # # Usage: .¥Audit.ps1 ServerName # OR # foreach ($computername in get-content c:¥auditor¥computers.txt) # {C:¥audit...
PowerShellCorpus/Github/ianpottinger_PowerShell/RegularExpressions.ps1
RegularExpressions.ps1
$regexIPaddress = ‘\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b’ $regexMACaddress = '^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$' $regexEmailAddress = ‘\b[A-Za-z0-9._%-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}\b’ $regexURL = ‘([a-zA-Z]{3,})://([\w-]+\.)+[\w-]+(/[\w- ./?%&=]*)*?’ $regexSourceDestinationIPs = ‘\b\d{1,3}\.\d{1,3}\.\d{...
PowerShellCorpus/Github/ianpottinger_PowerShell/Recover-ZeroByteFiles.ps1
Recover-ZeroByteFiles.ps1
# # When run from the location containing the corrupt destination data, pulls the files from the recovered source location $Output = "SubFolderName" $OutputPath = "X:" $RecoveredSource = "\\ServerHostName\ShareName$\Restored\Area\RootFolder\$Output" $ZeroDestination = "\\ServerHostName\ShareName$\RootFolder\$Output...
PowerShellCorpus/Github/ianpottinger_PowerShell/Load-NxLinuxDSC.ps1
Load-NxLinuxDSC.ps1
#[System.Net.WebRequest]::DefaultWebProxy.Credentials = [System.Net.CredentialCache]::DefaultCredentials #C:\Windows\system32\WindowsPowerShell\v1.0\modules #C:\Windows\syswow64\WindowsPowerShell\v1.0\modules if ( Get-PSRepository -Name PSGallery | Where-Object -Property InstallationPolicy -eq "Untrusted" ) ...
PowerShellCorpus/Github/ianpottinger_PowerShell/Get-RecentPowerShellTeamModules.ps1
Get-RecentPowerShellTeamModules.ps1
<# .Synopsis Short description .DESCRIPTION Long description .EXAMPLE Example of how to use this workflow .EXAMPLE Another example of how to use this workflow .INPUTS Inputs to this workflow (if any) .OUTPUTS Output from this workflow (if any) .NOTES General notes .FUNCTIONALITY ...
PowerShellCorpus/Github/ianpottinger_PowerShell/PowerShell 5.1 Modules.ps1
PowerShell 5.1 Modules.ps1
$PowerShell51Modules = ` ( "Microsoft.PowerShell.Archive", "Microsoft.PowerShell.ODataUtils", "PackageManagement", "PowerShellGet", "PSReadline", "PSScriptAnalyzer", "NanoServerPackage", "SecurityPolicyDsc", "SystemLocaleDsc" ) $PowerShell51Modules | ForEach-Obje...