filename
stringlengths
5
142
content
stringlengths
2
26M
label
int64
0
1
1316.ps1
function Install-CJunction { [CmdletBinding(SupportsShouldProcess=$true)] [OutputType([IO.DirectoryInfo])] param( [Parameter(Mandatory=$true)] [Alias("Junction")] [string] $Link, [Parameter(Mandatory=$true)] [string] $Target, [Switch] $PassThru, [Switch] $Force ) Set-StrictMode -Version 'Latest' Use-CallerPreference -Cmdlet $PSCmdlet -Session $ExecutionContext.SessionState $Link = Resolve-CFullPath -Path $Link $Target = Resolve-CFullPath -Path $Target if( Test-Path -LiteralPath $Target -PathType Leaf ) { Write-Error ('Unable to create junction {0}: target {1} exists and is a file.' -f $Link,$Target) return } if( -not (Test-Path -LiteralPath $Target -PathType Container) ) { if( $Force ) { New-Item -Path $Target -ItemType Directory -Force | Out-String | Write-Verbose } else { Write-Error ('Unable to create junction {0}: target {1} not found. Use the `-Force` switch to create target paths that don''t exist.' -f $Link,$Target) return } } if( Test-Path -LiteralPath $Link -PathType Container ) { $junction = Get-Item -LiteralPath $Link -Force if( -not $junction.IsJunction ) { Write-Error ('Failed to create junction ''{0}'': a directory exists with that path and it is not a junction.' -f $Link) return } if( $junction.TargetPath -eq $Target ) { return } Remove-CJunction -LiteralPath $Link } if( $PSCmdlet.ShouldProcess( $Target, ("creating '{0}' junction" -f $Link) ) ) { $result = New-CJunction -Link $Link -Target $target -Verbose:$false if( $PassThru ) { return $result } } }
0
AutoArchive.ps1
# AutoArchive PowerShell Script # http://powershell.codeplex.com param ( [ValidateNotNullOrEmpty()] [Parameter( Mandatory = $true) ] [string] $Source, [int] $RetentionDays, [array] $Include, [array] $Exclude, [switch] $Recurse ) # Load Zip Module Import-Module PowerZip # Check source presence if ( -not ( Test-Path -Path "$Source" -ErrorAction SilentlyContinue ) ) { throw "ERROR : Source not found { $Source }" } # Set variables $DirectoryTimeStamp = (Get-Date).ToString("yyyy\\\\MM") $ArchiveTimeStamp = (Get-Date).ToString("yyyyMMddHHmmss") if ( $Recurse -eq $true ) { $RecurseArgument = "-Recurse" } if ( $Include ) { $Include = $Include -join "," $IncludeArgument = "-Include $Include" $Source = $Source+"\\*" } $Exclude += @("*.zip") $Exclude = $Exclude -join "," $ExcludeArgument = "-Exclude $Exclude" $GetCommand = "Get-ChildItem -Path '$Source' $IncludeArgument $ExcludeArgument $RecurseArgument" Invoke-Expression -Command $GetCommand | Where-Object { ( $_.LastWriteTime -lt (Get-Date).AddDays(-$RetentionDays) ) -and ( $_.psIsContainer -eq $false ) -and ( $_ -cnotmatch "\\\\_AutoArchive_\\\\" ) } | ForEach-Object { $ArchiveDirectory = $_.DirectoryName $ArchiveDirectory = "$ArchiveDirectory\\_AutoArchive_\\$DirectoryTimeStamp" Write-Output "Moving { $($_.FullName) } to { $ArchiveDirectory } ..." $DirectoryToZipArray += @($ArchiveDirectory) if ( -not ( Test-Path -Path "$ArchiveDirectory" -ErrorAction SilentlyContinue ) ) { New-Item -ItemType Directory -Path "$ArchiveDirectory" | Out-Null if ( $? -ne $true ) { $ErrorsArray += @("! Unable to create directory {$ArchiveDirectory}") } } Move-Item -Path $_.FullName -Destination "$ArchiveDirectory" -Force -ErrorAction SilentlyContinue if ( $? -ne $true ) { $ErrorsArray += @("! Unable to move file {$($_.FullName)}") } } foreach ( $DirectoryToZip in $DirectoryToZipArray | Sort-Object -Unique ) { Write-Output "Zipping { $DirectoryToZip } ..." $ZipFile = "$DirectoryToZip\\$ArchiveTimeStamp.zip" $Zip = New-Zip -Source "$DirectoryToZip" -ZipFile "$ZipFile" -DeleteAfterZip -Exclude "*.zip" if ( $? -ne $true ) { $ErrorsArray += @("! Unable to zip directory {$DirectoryToZip}") } } if ( $ErrorsArray ) { Write-Output "`n[ ERRORS OCCURED ]" $ErrorsArray return $false } else { return $true }
0
3424.ps1
function Test-ResourceLockCRUD { $rgname = Get-ResourceGroupName $rname = Get-ResourceName $rglocation = Get-ProviderLocation ResourceManagement $apiversion = "2014-04-01" $rg = New-AzureRMResourceGroup -Name $rgname -Location $rglocation $actual = New-AzureRMResourceLock -LockName $rname -LockLevel CanNotDelete -Force -Scope $rg.ResourceId $expected = Get-AzureRMResourceLock -LockName $rname -Scope $rg.ResourceId Assert-AreEqual $expected.Name $actual.Name Assert-AreEqual $expected.ResourceId $actual.ResourceId Assert-AreEqual $expected.ResourceName $actual.ResourceName Assert-AreEqual $expected.ResourceType $actual.ResourceType Assert-AreEqual $expected.LockId $actual.LockId $expectedSet = Set-AzureRMResourceLock -LockId $expected.LockId -LockLevel CanNotDelete -LockNotes test -Force Assert-AreEqual $expectedSet.Properties.Notes "test" $removed = Remove-AzureRMResourceLock -LockId $expectedSet.LockId -Force Assert-AreEqual True $removed $actual = New-AzureRMResourceLock -LockName $rname -LockLevel CanNotDelete -Force -Scope $rg.ResourceId $removed = Remove-AzureRMResourceLock -ResourceId $actual.ResourceId -Force Assert-AreEqual True $removed $actual = New-AzureRMResourceLock -LockName $rname -LockLevel ReadOnly -Force -Scope $rg.ResourceId Assert-AreEqual $expected.Name $actual.Name $expected = Get-AzureRMResourceLock -LockName $rname -Scope $rg.ResourceId Assert-AreEqual $expected.Properties.Level "ReadOnly" $removed = Remove-AzureRMResourceLock -ResourceId $actual.ResourceId -Force Assert-AreEqual True $removed } function Test-ResourceLockNonExisting { $rgname = Get-ResourceGroupName $rglocation = Get-ProviderLocation ResourceManagement $rg = New-AzureRMResourceGroup -Name $rgname -Location $rglocation Assert-AreEqual $rgname $rg.ResourceGroupName $lock = Get-AzureRMResourceLock -LockName "NonExisting" -Scope $rg.ResourceId -ErrorAction SilentlyContinue Assert-True { $Error[0] -like "*LockNotFound : The lock 'NonExisting' could not be found." } Assert-Null $lock $Error.Clear() }
0
788.ps1
 function Register-EditorCommand { [CmdletBinding()] param( [Parameter(Mandatory=$true)] [ValidateNotNullOrEmpty()] [string]$Name, [Parameter(Mandatory=$true)] [ValidateNotNullOrEmpty()] [string]$DisplayName, [Parameter( Mandatory=$true, ParameterSetName="Function")] [ValidateNotNullOrEmpty()] [string]$Function, [Parameter( Mandatory=$true, ParameterSetName="ScriptBlock")] [ValidateNotNullOrEmpty()] [ScriptBlock]$ScriptBlock, [switch]$SuppressOutput ) Process { $commandArgs = @($Name, $DisplayName, $SuppressOutput.IsPresent) if ($ScriptBlock -ne $null) { Write-Verbose "Registering command '$Name' which executes a ScriptBlock" $commandArgs += $ScriptBlock } else { Write-Verbose "Registering command '$Name' which executes a function" $commandArgs += $Function } $editorCommand = New-Object Microsoft.PowerShell.EditorServices.Services.PowerShellContext.EditorCommand -ArgumentList $commandArgs if ($psEditor.RegisterCommand($editorCommand)) { Write-Verbose "Registered new command '$Name'" } else { Write-Verbose "Updated existing command '$Name'" } } } function Unregister-EditorCommand { [CmdletBinding()] param( [Parameter(Mandatory=$true)] [ValidateNotNullOrEmpty()] [string]$Name ) Process { Write-Verbose "Unregistering command '$Name'" $psEditor.UnregisterCommand($Name); } } function New-EditorFile { [CmdletBinding()] param( [Parameter()] [String[]] [ValidateNotNullOrEmpty()] $Path, [Parameter(ValueFromPipeline=$true)] $Value, [Parameter()] [switch] $Force ) begin { $valueList = @() } process { $valueList += $Value } end { if ($Path) { foreach ($fileName in $Path) { if (-not (Test-Path $fileName) -or $Force) { New-Item -Path $fileName -ItemType File | Out-Null if ($Path.Count -gt 1) { $preview = $false } else { $preview = $true } if (!([System.IO.Path]::IsPathRooted($fileName))) { $fileName = $ExecutionContext.SessionState.Path.GetUnresolvedProviderPathFromPSPath($fileName) } $psEditor.Workspace.OpenFile($fileName, $preview) $psEditor.GetEditorContext().CurrentFile.InsertText(($valueList | Out-String)) } else { $PSCmdlet.WriteError( ( New-Object -TypeName System.Management.Automation.ErrorRecord -ArgumentList @( [System.IO.IOException]"The file '$fileName' already exists.", 'NewEditorFileIOError', [System.Management.Automation.ErrorCategory]::WriteError, $fileName) ) ) } } } else { $psEditor.Workspace.NewFile() $psEditor.GetEditorContext().CurrentFile.InsertText(($valueList | Out-String)) } } } function Open-EditorFile { [CmdletBinding()] param( [Parameter(Mandatory=$true, ValueFromPipeline=$true)] [ValidateNotNullOrEmpty()] $Path ) begin { $Paths = @() } process { $Paths += $Path } end { if ($Paths.Count -gt 1) { $preview = $false } else { $preview = $true } Get-ChildItem $Paths -File | ForEach-Object { $psEditor.Workspace.OpenFile($_.FullName, $preview) } } } Set-Alias psedit Open-EditorFile -Scope Global Export-ModuleMember -Function Open-EditorFile,New-EditorFile
0
sample_5_74.ps1
ConvertFrom-StringData @' id_ctsDFSserver=DFS Server id_ctsDFSserverDescription=Collects information about DFS Server. '@ # SIG # Begin signature block # MIIoKgYJKoZIhvcNAQcCoIIoGzCCKBcCAQExDzANBglghkgBZQMEAgEFADB5Bgor # BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG # KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCCUF6lM4os/IBcZ # WHqMNBoxFU6Z8dCNivO7IWniUpvuJKCCDXYwggX0MIID3KADAgECAhMzAAAEBGx0 # Bv9XKydyAAAAAAQEMA0GCSqGSIb3DQEBCwUAMH4xCzAJBgNVBAYTAlVTMRMwEQYD # VQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNy # b3NvZnQgQ29ycG9yYXRpb24xKDAmBgNVBAMTH01pY3Jvc29mdCBDb2RlIFNpZ25p # bmcgUENBIDIwMTEwHhcNMjQwOTEyMjAxMTE0WhcNMjUwOTExMjAxMTE0WjB0MQsw # CQYDVQQGEwJVUzETMBEGA1UECBMKV2FzaGluZ3RvbjEQMA4GA1UEBxMHUmVkbW9u # ZDEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMR4wHAYDVQQDExVNaWNy # b3NvZnQgQ29ycG9yYXRpb24wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIB # AQC0KDfaY50MDqsEGdlIzDHBd6CqIMRQWW9Af1LHDDTuFjfDsvna0nEuDSYJmNyz # NB10jpb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Dp+haUIlXcN1rn+sIohFQZ5J5UJkV2+QGfM3JStUjQ4gDBcmbAR # ifSliu37SJpfyW+hi+6lkORRdGOB0jiuO8jfdmpls8S8l4C5QE/sVn55sIHITRpg # zgW9aSV0OqjDWsGoAzUjITFe0gbQWX3HRPFd7Fk7r7UtbYmR74zflhkKsgS89MJX # BEYE680SrGSl7P9G3oSkVTnGZ7iF5ePxjiucg+F2EX8h+CEDMyt1yiL6jWfKLJYh # fbwBgnkzwRnkBe6SJ2uD/RIuhcsv8V/IXIm3DhDbTD5Ji/Dq5UrM+RCgo3cqJ1WE # sSHkUblj2k1ARof7nRSjGbVj4jY66w5wULypWTw7RKtDVu28VA720m9QMnWkKn4j # Ou0M7JGwc8dTysCNqU8= # SIG # End signature block
0
Format-TablePlus_1.ps1
#requires -version 2.0 ## Format-Table with wrapping and string trimming. function Format-TablePlus() { [CmdletBinding()] param( [Switch] ${AutoSize}, [Switch] ${HideTableHeaders}, [Switch] ${Wrap}, [Parameter(Position=0)] [System.Object[]] ${Property}, [System.Object] ${GroupBy}, [System.String] ${View}, [Switch] ${ShowError}, [Switch] ${DisplayError}, [Switch] ${Force}, [ValidateSet('CoreOnly','EnumOnly','Both')] [System.String] ${Expand}, [System.Int32] ${Width} = $Host.Ui.RawUI.BufferSize.Width, [Switch] ${PadEnd}, [Parameter(ValueFromPipeline=$true)] [System.Management.Automation.PSObject] ${InputObject} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } # need to get rid of these before we pass this to the Format-Table cmdlet $null = $PSBoundParameters.Remove("Width") $null = $PSBoundParameters.Remove("TrimEnd") $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand('Format-Table', [System.Management.Automation.CommandTypes]::Cmdlet) ## I made the trimming optional, but defaulted it to on ;) $scriptCmd = &{ if($PadEnd) { {& $wrappedCmd @PSBoundParameters | Out-String -Stream -Width $Width } } else { {& $wrappedCmd @PSBoundParameters | Out-String -Stream -Width $Width | % { $_.TrimEnd() } } } } $steppablePipeline = $scriptCmd.($myInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } <# .ForwardHelpTargetName Format-Table .ForwardHelpCategory Cmdlet #> }
0
1719.ps1
Function Get-ServiceNowAttachment { [System.Diagnostics.CodeAnalysis.SuppressMessage('PSAvoidUsingConvertToSecureStringWithPlainText','')] [System.Diagnostics.CodeAnalysis.SuppressMessage('PSAvoidGlobalVars','')] [CmdletBinding(DefaultParameterSetName,SupportsShouldProcess=$true)] Param( [Parameter( Mandatory=$true, ValueFromPipelineByPropertyName = $true )] [Alias('sys_id')] [string]$SysID, [Parameter( Mandatory=$true, ValueFromPipelineByPropertyName = $true )] [Alias('file_name')] [string]$FileName, [parameter(Mandatory=$false)] [ValidateScript({ Test-Path $_ })] [string]$Destination = $PWD.Path, [parameter(Mandatory=$false)] [switch]$AllowOverwrite, [parameter(Mandatory=$false)] [switch]$AppendNameWithSysID, [Parameter(ParameterSetName='SpecifyConnectionFields', Mandatory=$true)] [ValidateNotNullOrEmpty()] [Alias('ServiceNowCredential')] [PSCredential]$Credential, [Parameter(ParameterSetName='SpecifyConnectionFields', Mandatory=$true)] [ValidateScript({Test-ServiceNowURL -Url $_})] [ValidateNotNullOrEmpty()] [Alias('Url')] [string]$ServiceNowURL, [Parameter(ParameterSetName='UseConnectionObject', Mandatory=$true)] [ValidateNotNullOrEmpty()] [Hashtable]$Connection ) begin {} process { Try { Switch ($PSCmdlet.ParameterSetName) { 'SpecifyConnectionFields' { $ApiUrl = 'https://' + $ServiceNowURL + '/api/now/v1/attachment' break } 'UseConnectionObject' { $SecurePassword = ConvertTo-SecureString $Connection.Password -AsPlainText -Force $Credential = New-Object System.Management.Automation.PSCredential ($Connection.Username, $SecurePassword) $ApiUrl = 'https://' + $Connection.ServiceNowUri + '/api/now/v1/attachment' break } Default { If ((Test-ServiceNowAuthIsSet)) { $Credential = $Global:ServiceNowCredentials $ApiUrl = $Global:ServiceNowRESTURL + '/attachment' } Else { Throw "Exception: You must do one of the following to authenticate: `n 1. Call the Set-ServiceNowAuth cmdlet `n 2. Pass in an Azure Automation connection object `n 3. Pass in an endpoint and credential" } } } $Uri = $ApiUrl + '/' + $SysID + '/file' If ($True -eq $PSBoundParameters.ContainsKey('AppendNameWithSysID')) { $FileName = "{0}_{1}{2}" -f [io.path]::GetFileNameWithoutExtension($FileName), $SysID,[io.path]::GetExtension($FileName) } $OutFile = $Null $OutFile = Join-Path $Destination $FileName If ((Test-Path $OutFile) -and -not $PSBoundParameters.ContainsKey('AllowOverwrite')) { $ThrowMessage = "The file [{0}] already exists. Please choose a different name, use the -AppendNameWithSysID switch parameter, or use the -AllowOverwrite switch parameter to overwrite the file." -f $OutFile Throw $ThrowMessage } $invokeRestMethodSplat = @{ Uri = $Uri Credential = $Credential OutFile = $OutFile } If ($PSCmdlet.ShouldProcess($Uri,$MyInvocation.MyCommand)) { Invoke-RestMethod @invokeRestMethodSplat } } Catch { Write-Error $PSItem } } end {} }
0
Remove-XmlNamespace.ps1
function Remove-XmlNamespace { #.Synopsis # Removes namespace definitions and prefixes from xml documents #.Description # Runs an xml document through an XSL Transformation to remove namespaces from it if they exist. # Entities are also naturally expanded #.Parameter Content # Specifies a string that contains the XML to transform. #.Parameter Path # Specifies the path and file names of the XML files to transform. Wildcards are permitted. # # There will bne one output document for each matching input file. #.Parameter Xml # Specifies one or more XML documents to transform # [CmdletBinding(DefaultParameterSetName="Xml")] PARAM( [Parameter(ParameterSetName="Content",Mandatory=$true)] [String[]]$Content , [Parameter(Position=0,ParameterSetName="Path",Mandatory=$true,ValueFromPipelineByPropertyName=$true)] [Alias("FullName")] [String[]]$Path , [Parameter(Position=0,ParameterSetName="Xml",Mandatory=$true,ValueFromPipeline=$true)] [Alias("IO","InputObject")] [System.Xml.XmlDocument[]]$Xml ) BEGIN { $xslt = New-Object System.Xml.Xsl.XslCompiledTransform $xslt.Load(([System.Xml.XmlReader]::Create((New-Object System.IO.StringReader @" <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="xml" indent="yes"/> <xsl:template match="/|comment()|processing-instruction()"> <xsl:copy> <xsl:apply-templates/> </xsl:copy> </xsl:template> <xsl:template match="*"> <xsl:element name="{local-name()}"> <xsl:apply-templates select="@*|node()"/> </xsl:element> </xsl:template> <xsl:template match="@*"> <xsl:attribute name="{local-name()}"> <xsl:value-of select="."/> </xsl:attribute> </xsl:template> </xsl:stylesheet> "@)))) } PROCESS { switch($PSCmdlet.ParameterSetName) { "Content" { [System.Xml.XmlDocument[]]$Xml = @( [Xml]($Content -Join "`n") ) } "Path" { [System.Xml.XmlDocument[]]$Xml = @() foreach($file in Get-ChildItem $Path) { $Xml += [Xml](Get-Content $file) } } "Xml" { } } foreach($input in $Xml) { $Output = New-Object System.Xml.XmlDocument $writer =$output.CreateNavigator().AppendChild() $xslt.Transform( $input.CreateNavigator(), $null, $writer ) $writer.Close() # $writer.Dispose() Write-Output $output } } }
0
sample_0_79.ps1
##---------------------------------------------------------------------------- ## Copyright (c) Axis Communications AB, SWEDEN. All rights reserved. ##---------------------------------------------------------------------------- # Import string constants . ./StringConstants.ps1 Stop-Service -Name $ServiceConstants.serviceName # SIG # Begin signature block # MIIoIgYJKoZIhvcNAQcCoIIoEzCCKA8CAQExDzANBglghkgBZQMEAgEFADB5Bgor # BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG # KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCAW7wwqQJ4OHGcv # 6bLN7vx21lDcEnYp8vpAWEb+0YOYFqCCDY4wggawMIIEmKADAgECAhAIrUCyYNKc # TJ9ezam9k67ZMA0GCSqGSIb3DQEBDAUAMGIxCzAJBgNVBAYTAlVTMRUwEwYDVQQK # Ewx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y9GHCtReQ6tUGLASl3FidbzMGWhV9rSweMDcGCyqG # SIb3DQEJEAIvMSgwJjAkMCIEINL25G3tdCLM0dRAV2hBNm+CitpVmq4zFq9NGprU # DHgoMA0GCSqGSIb3DQEBAQUABIICAI3lmFvoMG/s+IpgKF8RfaZJo34x0D7U/+Q+ # BLirQTEZrQRiqV5O0oo0IWaFEhfrasyv/WCH49cM3S4Ro9LtH90zE3jIpK7vNBCH # 5W5mS78qfDZrnXUOknXKWqdZsRql26SpKIzJcFhaJ+6iDKj42szk7GzacThuIYOK # 2t81QvuC2LaeCOs8K5zRrDJmbFylrS1LoaSxslq1gMx7udwoCrmlaCRFfrQcI/D6 # mWP6O7dKOyDp8clqfVNiQdYsWAYpZGjQaO7WXFmuIx25wesgg9bpu5PVYMJ/UNHk # I6QsWy+HavwFhATSYnjWWt5QhczpYc3/+ChsWKK7v8tTrfUW4Qq4v3OkJBMU7Gtu # q3l6WyYjgDx35VBeYFND6SVx6NhmCmSD+8ikWiF5klSh192YE2wTrlf05AlofyTy # whDCROLw7bDWkx6Jmt9HZCtE+A3Atxyc98Z8+bpamU/gw179qYTs+9D/6PixnQ5v # ez0u0GCKlpyGFsBYmmL0wrQH80/+kzzRzuUbJHSqkgFeMiQPcEgsmWFXqQPQuyD3 # wCI7RiSoR0VRtrzWVoJZO3GRVQBs+70ykMJsMFpGV/PeTelPDbftdOIGmy/rY4YB # iy4JuBgdRHFeUWScDGjMw4SyqlFWyxHeRaaycLNJY1WnXVjD5jvA0SZfgKEX7BfX # a0bx3+GP # SIG # End signature block
0
2974.ps1
param ( [Parameter(Mandatory)] [String] $CertificateThumbprint, [Parameter(Mandatory)] [String] $NugetApiKey, [String] $ChocolateyApiKey, [Parameter(Mandatory)] [String] $PsGalleryApiKey ) .\updateGherkinLanguageFile.ps1 $ErrorActionPreference = 'Stop' $process = Start-Process powershell -ArgumentList "-c", ".\testRelease.ps1 -LocalBuild" -NoNewWindow -Wait -PassThru if ($process.ExitCode -ne 0) { throw "Testing failed with exit code $($process.ExitCode)." } .\getNugetExe.ps1 .\cleanUpBeforeBuild.ps1 .\signModule.ps1 -Thumbprint $CertificateThumbprint .\buildNugetPackage.ps1 .\buildPSGalleryPackage.ps1
0
2495.ps1
param( $SQLServer = 'STGSQLDOC710', $ScriptDir = '\\messano338\e$\dexma\logs\', $FilePrefix = 'Log', [switch]$Log ) $IndicesUnused = Get-ChildItem -Path $ScriptDir -Filter *IndexesUnused*.xlsx | sort-object -desc $IndicesMissing = Get-ChildItem -Path $ScriptDir -Filter *IndexesMissing*.xlsx | sort-object -desc function Import-Excel { [CmdletBinding()] Param([Parameter(Mandatory=$true,ValueFromPipeline=$true)][string]$Path, [Parameter(Mandatory=$false)][switch]$NoHeaders ) $Path = if([IO.Path]::IsPathRooted($Path)){$Path}else{Join-Path -Path (Get-Location) -ChildPath $Path} if(!(Test-Path $Path) -or $Path -notmatch ".xls$|.xlsx$") { Write-Host "ERROR: Invalid excel file [$Path]." -ForeGroundColor Red; return } $excel = New-Object -ComObject Excel.Application if(!$excel) { Write-Host "ERROR: Please install Excel first. I haven't figured out how to read an Excel file as xml yet." -ForeGroundColor Red; return } $content = @() $workbooks = $excel.Workbooks $workbook = $workbooks.Open($Path) $worksheets = $workbook.Worksheets $sheet = $worksheets.Item(1) $range = $sheet.UsedRange $rows = $range.Rows $columns = $range.Columns $headers = @() $top = if($NoHeaders){1}else{2} if($NoHeaders) { for($c=1;$c-le$columns.Count;$c++) { $headers += "Column$c" } } else { $headers = $rows | Where-Object { $_.Row -eq 1 } | %{ $_.Value2 } for($i=0;$i-lt$headers.Count;$i++) { if(!$headers[$i]) { $headers[$i] = "Column$($i+1)" } } } for($r=$top;$r-le$rows.Count;$r++) { $data = $rows | Where-Object { $_.Row -eq $r } | %{ $_.Value2 } $line = New-Object PSOBject for($c=0;$c-lt$columns.Count;$c++) { $line | Add-Member NoteProperty $headers[$c]($data[$c]) } $content += $line } do { $o = [System.Runtime.InteropServices.Marshal]::ReleaseComObject($columns) } while($o -gt -1) do { $o = [System.Runtime.InteropServices.Marshal]::ReleaseComObject($rows) } while($o -gt -1) do { $o = [System.Runtime.InteropServices.Marshal]::ReleaseComObject($range) } while($o -gt -1) do { $o = [System.Runtime.InteropServices.Marshal]::ReleaseComObject($sheet) } while($o -gt -1) do { $o = [System.Runtime.InteropServices.Marshal]::ReleaseComObject($worksheets) } while($o -gt -1) $workbook.Close($false) do { $o = [System.Runtime.InteropServices.Marshal]::ReleaseComObject($workbook) } while($o -gt -1) do { $o = [System.Runtime.InteropServices.Marshal]::ReleaseComObject($workbooks) } while($o -gt -1) $excel.Quit() do { $o = [System.Runtime.InteropServices.Marshal]::ReleaseComObject($excel) } while($o -gt -1) return $content }
0
1899.ps1
Describe "Read-Host Test" -tag "CI" { BeforeAll { $th = New-TestHost $rs = [runspacefactory]::Createrunspace($th) $rs.open() $ps = [powershell]::Create() $ps.Runspace = $rs $ps.Commands.Clear() } AfterEach { $ps.Commands.Clear() } AfterAll { $rs.Close() $rs.Dispose() $ps.Dispose() } It "Read-Host returns expected string" { $result = $ps.AddCommand("Read-Host").Invoke() $result | Should -Be $th.UI.ReadLineData } It "Read-Host sets the prompt correctly" { $result = $ps.AddScript("Read-Host -prompt myprompt").Invoke() $prompt = $th.ui.streams.prompt[0] $prompt | Should -Not -BeNullOrEmpty $prompt.split(":")[-1] | Should -Be myprompt } It "Read-Host returns a secure string when using -AsSecureString parameter" { $result = $ps.AddScript("Read-Host -AsSecureString").Invoke() | select-object -first 1 $result | Should -BeOfType SecureString [pscredential]::New("foo",$result).GetNetworkCredential().Password | Should -BeExactly TEST } It "Read-Host doesn't enter command prompt mode" { $result = "!1" | pwsh -NoProfile -c "Read-host -Prompt 'foo'" if ($IsWindows) { $expected = @('!1','!1') } else { $expected = @('foo: !1','!1') } $result | should -BeExactly $expected } }
0
sample_24_60.ps1
# # Script module for module 'PackageManagement' # Set-StrictMode -Version Latest Microsoft.PowerShell.Utility\Import-LocalizedData LocalizedData -filename PackageManagement.Resources.psd1 # Summary: PackageManagement is supported on Windows PowerShell 3.0 or later, Nano Server and PowerShellCore $isCore = ($PSVersionTable.Keys -contains "PSEdition") -and ($PSVersionTable.PSEdition -ne 'Desktop') $binarySubPath = '' if ($isCore) { $binarySubPath = Join-Path -Path 'coreclr' -ChildPath 'netstandard2.0' } else { $binarySubPath = 'fullclr' } # Set up some helper variables to make it easier to work with the module $script:PSModule = $ExecutionContext.SessionState.Module $script:PSModuleRoot = $script:PSModule.ModuleBase $script:PkgMgmt = 'Microsoft.PackageManagement.dll' $script:PSPkgMgmt = 'Microsoft.PowerShell.PackageManagement.dll' # Try to import the OneGet assemblies at the same directory regardless fullclr or coreclr $OneGetModulePath = Join-Path -Path $script:PSModuleRoot -ChildPath $script:PkgMgmt $binaryModuleRoot = $script:PSModuleRoot if(-not (Test-Path -Path $OneGetModulePath)) { # Import the appropriate nested binary module based on the current PowerShell version $binaryModuleRoot = Join-Path -Path $script:PSModuleRoot -ChildPath $binarySubPath $OneGetModulePath = Join-Path -Path $binaryModuleRoot -ChildPath $script:PkgMgmt } $PSOneGetModulePath = Join-Path -Path $binaryModuleRoot -ChildPath $script:PSPkgMgmt $OneGetModule = Import-Module -Name $OneGetModulePath -PassThru $PSOneGetModule = Import-Module -Name $PSOneGetModulePath -PassThru # When the module is unloaded, remove the nested binary module that was loaded with it if($OneGetModule) { $script:PSModule.OnRemove = { Remove-Module -ModuleInfo $OneGetModule } } if($PSOneGetModule) { $script:PSModule.OnRemove = { Remove-Module -ModuleInfo $PSOneGetModule } } # SIG # Begin signature block # MIIoNwYJKoZIhvcNAQcCoIIoKDCCKCQCAQExDzANBglghkgBZQMEAgEFADB5Bgor # BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG # KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCAu+2bjkKZwIc24 # sUnQmGnTVuZ6xttIA9Ea89zWbpdeVaCCDYUwggYD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gNVBAYTAlVT # MRMwEQYDVQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQK # ExVNaWNyb3NvZnQgQ29ycG9yYXRpb24xJjAkBgNVBAMTHU1pY3Jvc29mdCBUaW1l # LVN0YW1wIFBDQSAyMDEwAhMzAAAB5y6PL5MLTxvpAAEAAAHnMCIEIObLazbGGwCU # nCgBOWhty6JuS76EubRcaAUOHvHyDR3tMA0GCSqGSIb3DQEBCwUABIICACl7jWSN # EQZWrkyXnXUZwV7J3kt4GAnrxX3f+WjZ5q/ZZ9yfkFn/qaJKNv4PSYoWuQH/ebIo # XagTGMxH40VjgpZBfaJ/pX10p7ixokIHRvyD+lZe/+792H8Qw6o2oQuHqfnJ9MfO # DCbH0s8mgwkIMpfVcltkMDfSiF1jFujT9Nb3rwZKuq3NDrr21rzBJJft59JGugo5 # 4QeTRy78s2UlLs1Ce1KlWWRYTuke5/+Do5hW55hn7Oe81cJUCBaT0VfOkBbHdUy0 # Sl5Gak/bYG+kTJywWiGeCBx35U4cDapOFZ9Mo3eB7QnbiFjpz0WqLMcFA7VbApjQ # dmKEbnIChJFHgxDPZQKOL4WS2esg9HX+aVpjdMC6yyRsfiEpoLDkarnVyWBXcu6m # V+QFsAy08pI0mRm+Q/kAJZw8P4Duyo9KEiupGXIdCRFjvNgO77zfg20vY6yznSuS # PogaXjYdc+G12UsHz3jiVEV1eK7KFKxkxBxivGvuHCsZ+1YDRiFHY+62Rv0/sY84 # ZERIFhx+vcgX7x03oo4ogy+SoEFNKOFQx5QuDzL1eFBNcNBGH9AFFK4CuyYiUvdG # LAqaphSTBN3Hje3KUWCwef6/tqs7GENSs5fcQ/YiS0exsjYbJsxpBiOlFaSjDTgO # j404t4u3+26e466uzvNz5gnABmK6TbonyRZn # SIG # End signature block
0
2283.ps1
[CmdletBinding(SupportsShouldProcess=$true)] param( [parameter(Mandatory=$false, HelpMessage="Site server where the SMS Provider is installed")] [string]$SiteServer = "CAS01", [parameter(Mandatory=$false, HelpMessage="ResourceID of the device")] [string]$ResourceID = "16777224" ) Begin { try { Write-Verbose "Determining SiteCode for Site Server: '$($SiteServer)'" $SiteCodeObjects = Get-WmiObject -Namespace "root\SMS" -Class SMS_ProviderLocation -ComputerName $SiteServer -ErrorAction Stop foreach ($SiteCodeObject in $SiteCodeObjects) { if ($SiteCodeObject.ProviderForLocalSite -eq $true) { $SiteCode = $SiteCodeObject.SiteCode } } } catch [Exception] { Throw "Unable to determine SiteCode" } $IconExtractor = @" using System; using System.Drawing; using System.Runtime.InteropServices; namespace System { public class IconExtractor { public static Icon Extract(string file, int number, bool largeIcon) { IntPtr large; IntPtr small; ExtractIconEx(file, number, out large, out small, 1); try { return Icon.FromHandle(largeIcon ? large : small); } catch { return null; } } [DllImport("Shell32.dll", EntryPoint = "ExtractIconExW", CharSet = CharSet.Unicode, ExactSpelling = true, CallingConvention = CallingConvention.StdCall)] private static extern int ExtractIconEx(string sFile, int iIndex, out IntPtr piLargeVersion, out IntPtr piSmallVersion, int amountIcons); } } "@ Add-Type -AssemblyName "System.Drawing" Add-Type -AssemblyName "System.Windows.Forms" Add-Type -TypeDefinition $IconExtractor -ReferencedAssemblies "System.Drawing" } Process { function Load-Form { $Form.Controls.AddRange(@( $TreeView, $GroupBox )) $Form.Add_Shown({ Build-TreeView -ResourceID $ResourceID $Form.Activate() }) [void]$Form.ShowDialog() } function Get-CollectionName { param( [parameter(Mandatory=$true)] [string]$CollectionID ) $Collection = Get-WmiObject -Namespace "root\SMS\Site_$($SiteCode)" -Class SMS_Collection -ComputerName $SiteServer -Filter "CollectionID like '$($CollectionID)'" if ($Collection -ne $null) { return $Collection.Name } } function Set-NodeCollection { param( [parameter(Mandatory=$true)] [int]$ContainerNodeID, [parameter(Mandatory=$true)] $Node ) $NodeCollections = Get-WmiObject -Namespace "root\SMS\Site_$($SiteCode)" -Class SMS_ObjectContainerItem -ComputerName $SiteServer -Filter "ContainerNodeID = $($ContainerNodeID) AND ObjectType = 5000" foreach ($NodeCollection in $NodeCollections) { if ($NodeCollection.InstanceKey -in $DeviceCollectionIDs) { $CollectionName = Get-CollectionName -CollectionID $NodeCollection.InstanceKey $CollNode = $Node.Nodes.Add($CollectionName) $CollNode.ImageIndex = 2 $CollNode.Expand() $Script:ExpandNode = $true } } } function Expand-TreeNode { param( [parameter(Mandatory=$true)] $ParentNode ) do { $Node = $ParentNode.Parent.Expand() Expand-TreeNode -ParentNode $Node } until ($Node.Parent -eq $null) } function Get-SubNode { param( [parameter(Mandatory=$true)] [int]$ParentContainerNodeID, [parameter(Mandatory=$true)] $ParentNode ) $SubNodes = Get-WmiObject -Namespace "root\SMS\Site_$($SiteCode)" -Class SMS_ObjectContainerNode -ComputerName $SiteServer -Filter "ParentContainerNodeID = $($ParentContainerNodeID) AND ObjectType = 5000" if ($SubNodes -ne $null) { foreach ($SubNode in ($SubNodes | Sort-Object -Property Name)) { $Script:ExpandNode = $false $Node = $ParentNode.Nodes.Add($SubNode.Name) $Node.ImageIndex = 1 Get-SubNode -ParentContainerNodeID $SubNode.ContainerNodeID -ParentNode $Node Set-NodeCollection -ContainerNodeID $SubNode.ContainerNodeID -Node $Node if ($Script:ExpandNode -eq $true) { $Node.Expand() } } } } function Build-TreeView { param( [parameter(Mandatory=$true)] $ResourceID ) $TreeView.Nodes.Clear() $RootNode = $TreeView.Nodes.Add("Root") $RootNode.ImageIndex = 1 $DeviceCollectionIDs = Get-WmiObject -Namespace "root\SMS\Site_$($SiteCode)" -Class SMS_FullCollectionMembership -ComputerName $SiteServer -Filter "ResourceID like '$($ResourceID)'" | Select-Object -ExpandProperty CollectionID $RootNodes = Get-WmiObject -Namespace "root\SMS\Site_$($SiteCode)" -Class SMS_ObjectContainerNode -ComputerName $SiteServer -Filter "ParentContainerNodeID = 0 AND ObjectType = 5000" foreach ($Node in ($RootNodes | Sort-Object -Property Name)) { $CurrentNode = $RootNode.Nodes.Add($Node.Name) $CurrentNode.ImageIndex = 1 Set-NodeCollection -ContainerNodeID $Node.ContainerNodeID -Node $CurrentNode Get-SubNode -ParentContainerNodeID $Node.ContainerNodeID -ParentNode $CurrentNode } $RootNode.Expand() } $Script:ExpandNode = $false $BinaryFormatter = New-Object -TypeName System.Runtime.Serialization.Formatters.Binary.BinaryFormatter $MemoryStream = New-Object -TypeName System.IO.MemoryStream (,[byte[]][System.Convert]::FromBase64String( 'AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAu MC4wLCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAA ACZTeXN0ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkD AAAADwMAAABwCgAAAk1TRnQBSQFMAgEBBAEAAUABAAFAAQABEAEAARABAAT/AQkBAAj/AUIBTQE2 AQQGAAE2AQQCAAEoAwABQAMAASADAAEBAQABCAYAAQgYAAGAAgABgAMAAoABAAGAAwABgAEAAYAB AAKAAgADwAEAAcAB3AHAAQAB8AHKAaYBAAEzBQABMwEAATMBAAEzAQACMwIAAxYBAAMcAQADIgEA AykBAANVAQADTQEAA0IBAAM5AQABgAF8Af8BAAJQAf8BAAGTAQAB1gEAAf8B7AHMAQABxgHWAe8B AAHWAucBAAGQAakBrQIAAf8BMwMAAWYDAAGZAwABzAIAATMDAAIzAgABMwFmAgABMwGZAgABMwHM AgABMwH/AgABZgMAAWYBMwIAAmYCAAFmAZkCAAFmAcwCAAFmAf8CAAGZAwABmQEzAgABmQFmAgAC mQIAAZkBzAIAAZkB/wIAAcwDAAHMATMCAAHMAWYCAAHMAZkCAALMAgABzAH/AgAB/wFmAgAB/wGZ AgAB/wHMAQABMwH/AgAB/wEAATMBAAEzAQABZgEAATMBAAGZAQABMwEAAcwBAAEzAQAB/wEAAf8B MwIAAzMBAAIzAWYBAAIzAZkBAAIzAcwBAAIzAf8BAAEzA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AaALmgF0Av8BBwPvAfcB7QGYAXgBmQEH A+8B7AP/AZkCGgGgBJoCegF5AVID/wGZAaABmgGZAXkBmgF5AVIFmgF0Av8BmQGgC5oBdAL/AbwD 8wG8AZIBBwHvAQcB8QLzAfIB7QP/AZkCGgGgBJoCegF5AVID/wGZAaABmgJ5AXQCUgWaAXQC/wGZ AaALmgF0Av8BvAEHAu8B9wPtAe8CBwLvAe0D/wGZARoBmgKZBnkBUgP/AZkBwwGaBHQBeQGgBJoB dAL/AZkBwwaaAaAEmgF0Av8CvAIHAvcCBwO8AgcBkgP/AZkBGgGZAxoDmgFSAXkBUgP/AZkBwwOa AqABmQWaAXQC/wGZAcMDmgKgAZkFmgF0Av8CvAHrAewCBwLzAfABvAHtAW0BBwH3A/8BmQEaAZkC 9gTDAVIBeQFSA/8BmQWgAZoCdAV5Av8BmQWgAZoCdAV5Av8BvAEHApIB7wH3ApIB7wG8Ae8BkgHv AfcD/wGZAhoC9gTDAVgBeQFSA/8BmQGaBBoBdAOaApkBmgF5Av8BeQGaBBoBdAOaApkBmgF5Av8D 9AHyAbwB8QK8Ae8B8AT0A/8BmQMaApkDeQFYAXkBUgP/ARsGeQGaAvYB1gG0AZoBmQL/AZkGeQGa AvYB1gG0AZoBeQX/AfQBvAH3ARIB7AHvAfAH/wFRARwBeQN0AVIEUQEqCf8BwwZ5AcMI/wGaBnkB mgX/AfQBvAEHAu8B9wHxB/8MUUL/AUIBTQE+BwABPgMAASgDAAFAAwABIAMAAQEBAAEBBgABARYA A///AAIACw==' )) $Form = New-Object -TypeName System.Windows.Forms.Form $Form.Size = New-Object -TypeName System.Drawing.Size(350,450) $Form.MinimumSize = New-Object -TypeName System.Drawing.Size(350,450) $Form.MaximumSize = New-Object -TypeName System.Drawing.Size([System.Int32]::MaxValue,[System.Int32]::MaxValue) $Form.SizeGripStyle = "Show" $Form.Icon = [System.Drawing.Icon]::ExtractAssociatedIcon($PSHome + "\powershell.exe") $Form.Text = "Collection Membership" $Form.ControlBox = $true $Form.TopMost = $true $ImageList = New-Object -TypeName System.Windows.Forms.ImageList $ImageList.ImageStream = $BinaryFormatter.Deserialize($MemoryStream) $ImageList.Images $BinaryFomatter = $null $MemoryStream = $null $TreeView = New-Object -TypeName System.Windows.Forms.TreeView $TreeView.Location = New-Object -TypeName System.Drawing.Size(20,25) $TreeView.Size = New-Object -TypeName System.Drawing.Size(290,355) $TreeView.Anchor = "Top, Left, Bottom, Right" $TreeView.ImageList = $ImageList $GroupBox = New-Object -TypeName System.Windows.Forms.GroupBox $GroupBox.Location = New-Object -TypeName System.Drawing.Size(10,5) $GroupBox.Size = New-Object -TypeName System.Drawing.Size(310,385) $GroupBox.Anchor = "Top, Left, Bottom, Right" $GroupBox.Text = "Collections" Load-Form }
0
3824.ps1
function Test-VirtualMachineBootDiagnostics { $rgname = Get-ComputeTestResourceName try { $loc = Get-ComputeVMLocation; New-AzResourceGroup -Name $rgname -Location $loc -Force; $vmsize = 'Standard_A4'; $vmname = 'vm' + $rgname; $p = New-AzVMConfig -VMName $vmname -VMSize $vmsize; Assert-AreEqual $p.HardwareProfile.VmSize $vmsize; $subnet = New-AzVirtualNetworkSubnetConfig -Name ('subnet' + $rgname) -AddressPrefix "10.0.0.0/24"; $vnet = New-AzVirtualNetwork -Force -Name ('vnet' + $rgname) -ResourceGroupName $rgname -Location $loc -AddressPrefix "10.0.0.0/16" -Subnet $subnet; $vnet = Get-AzVirtualNetwork -Name ('vnet' + $rgname) -ResourceGroupName $rgname; $subnetId = $vnet.Subnets[0].Id; $pubip = New-AzPublicIpAddress -Force -Name ('pubip' + $rgname) -ResourceGroupName $rgname -Location $loc -AllocationMethod Dynamic -DomainNameLabel ('pubip' + $rgname); $pubip = Get-AzPublicIpAddress -Name ('pubip' + $rgname) -ResourceGroupName $rgname; $pubipId = $pubip.Id; $nic = New-AzNetworkInterface -Force -Name ('nic' + $rgname) -ResourceGroupName $rgname -Location $loc -SubnetId $subnetId -PublicIpAddressId $pubip.Id; $nic = Get-AzNetworkInterface -Name ('nic' + $rgname) -ResourceGroupName $rgname; $nicId = $nic.Id; $p = Add-AzVMNetworkInterface -VM $p -Id $nicId; Assert-AreEqual $p.NetworkProfile.NetworkInterfaces.Count 1; Assert-AreEqual $p.NetworkProfile.NetworkInterfaces[0].Id $nicId; $p = Add-AzVMNetworkInterface -VM $p -Id $nicId -Primary; Assert-AreEqual $p.NetworkProfile.NetworkInterfaces.Count 1; Assert-AreEqual $p.NetworkProfile.NetworkInterfaces[0].Id $nicId; Assert-AreEqual $p.NetworkProfile.NetworkInterfaces[0].Primary $true; $stoname = 'sto' + $rgname; $stotype = 'Standard_GRS'; New-AzStorageAccount -ResourceGroupName $rgname -Name $stoname -Location $loc -Type $stotype; $stoaccount = Get-AzStorageAccount -ResourceGroupName $rgname -Name $stoname; $osDiskName = 'osDisk'; $osDiskCaching = 'ReadWrite'; $osDiskVhdUri = "https://$stoname.blob.core.windows.net/test/os.vhd"; $dataDiskVhdUri1 = "https://$stoname.blob.core.windows.net/test/data1.vhd"; $dataDiskVhdUri2 = "https://$stoname.blob.core.windows.net/test/data2.vhd"; $p = Set-AzVMOSDisk -VM $p -Name $osDiskName -VhdUri $osDiskVhdUri -Caching $osDiskCaching -CreateOption FromImage; $p = Add-AzVMDataDisk -VM $p -Name 'testDataDisk1' -Caching 'ReadOnly' -DiskSizeInGB 10 -Lun 1 -VhdUri $dataDiskVhdUri1 -CreateOption Empty; $p = Add-AzVMDataDisk -VM $p -Name 'testDataDisk2' -Caching 'ReadOnly' -DiskSizeInGB 11 -Lun 2 -VhdUri $dataDiskVhdUri2 -CreateOption Empty; Assert-AreEqual $p.StorageProfile.OSDisk.Caching $osDiskCaching; Assert-AreEqual $p.StorageProfile.OSDisk.Name $osDiskName; Assert-AreEqual $p.StorageProfile.OSDisk.Vhd.Uri $osDiskVhdUri; Assert-AreEqual $p.StorageProfile.DataDisks.Count 2; Assert-AreEqual $p.StorageProfile.DataDisks[0].Caching 'ReadOnly'; Assert-AreEqual $p.StorageProfile.DataDisks[0].DiskSizeGB 10; Assert-AreEqual $p.StorageProfile.DataDisks[0].Lun 1; Assert-AreEqual $p.StorageProfile.DataDisks[0].Vhd.Uri $dataDiskVhdUri1; Assert-AreEqual $p.StorageProfile.DataDisks[1].Caching 'ReadOnly'; Assert-AreEqual $p.StorageProfile.DataDisks[1].DiskSizeGB 11; Assert-AreEqual $p.StorageProfile.DataDisks[1].Lun 2; Assert-AreEqual $p.StorageProfile.DataDisks[1].Vhd.Uri $dataDiskVhdUri2; $user = "Foo12"; $password = $PLACEHOLDER; $securePassword = ConvertTo-SecureString $password -AsPlainText -Force; $cred = New-Object System.Management.Automation.PSCredential ($user, $securePassword); $computerName = 'test'; $vhdContainer = "https://$stoname.blob.core.windows.net/test"; $p = Set-AzVMOperatingSystem -VM $p -Windows -ComputerName $computerName -Credential $cred; $imgRef = Get-DefaultCRPImage -loc $loc; $p = ($imgRef | Set-AzVMSourceImage -VM $p); Assert-AreEqual $p.OSProfile.AdminUsername $user; Assert-AreEqual $p.OSProfile.ComputerName $computerName; Assert-AreEqual $p.OSProfile.AdminPassword $password; Assert-AreEqual $p.StorageProfile.ImageReference.Offer $imgRef.Offer; Assert-AreEqual $p.StorageProfile.ImageReference.Publisher $imgRef.PublisherName; Assert-AreEqual $p.StorageProfile.ImageReference.Sku $imgRef.Skus; Assert-AreEqual $p.StorageProfile.ImageReference.Version $imgRef.Version; New-AzVM -ResourceGroupName $rgname -Location $loc -VM $p; $vm1 = Get-AzVM -Name $vmname -ResourceGroupName $rgname; Assert-AreEqual $vm1.Name $vmname; Assert-AreEqual $vm1.NetworkProfile.NetworkInterfaces.Count 1; Assert-AreEqual $vm1.NetworkProfile.NetworkInterfaces[0].Id $nicId; Assert-AreEqual $vm1.StorageProfile.ImageReference.Offer $imgRef.Offer; Assert-AreEqual $vm1.StorageProfile.ImageReference.Publisher $imgRef.PublisherName; Assert-AreEqual $vm1.StorageProfile.ImageReference.Sku $imgRef.Skus; Assert-AreEqual $vm1.StorageProfile.ImageReference.Version $imgRef.Version; Assert-AreEqual $vm1.OSProfile.AdminUsername $user; Assert-AreEqual $vm1.OSProfile.ComputerName $computerName; Assert-AreEqual $vm1.HardwareProfile.VmSize $vmsize; Assert-AreEqual $true $vm1.DiagnosticsProfile.BootDiagnostics.Enabled; Assert-AreEqual $stoaccount.PrimaryEndpoints.Blob $vm1.DiagnosticsProfile.BootDiagnostics.StorageUri; Wait-Seconds 600; $localpath = (Get-Item -Path ".\" -Verbose).FullName Get-AzVMBootDiagnosticsData -Windows -ResourceGroupName $rgname -Name $vmname -LocalPath $localpath; Remove-AzVM -Name $vmname -ResourceGroupName $rgname -Force; $osDiskVhdUri = "https://$stoname.blob.core.windows.net/test/linuxos.vhd"; $osDiskName = 'linuxOsDisk'; $p = New-AzVMConfig -VMName $vmname -VMSize $vmsize; $p = Add-AzVMNetworkInterface -VM $p -Id $nicId; $p = Set-AzVMOSDisk -VM $p -Name $osDiskName -VhdUri $osDiskVhdUri -Caching $osDiskCaching -CreateOption FromImage; $imgRef = Get-DefaultCRPLinuxImageOffline; $p = Set-AzVMOperatingSystem -VM $p -Linux -ComputerName $computerName -Credential $cred $p = ($imgRef | Set-AzVMSourceImage -VM $p); New-AzVM -ResourceGroupName $rgname -Location $loc -VM $p; $vm1 = Get-AzVM -Name $vmname -ResourceGroupName $rgname; Assert-AreEqual $vm1.Name $vmname; Assert-AreEqual $vm1.NetworkProfile.NetworkInterfaces.Count 1; Assert-AreEqual $vm1.NetworkProfile.NetworkInterfaces[0].Id $nicId; Assert-AreEqual $vm1.StorageProfile.ImageReference.Offer $imgRef.Offer; Assert-AreEqual $vm1.StorageProfile.ImageReference.Publisher $imgRef.PublisherName; Assert-AreEqual $vm1.StorageProfile.ImageReference.Sku $imgRef.Skus; Assert-AreEqual $vm1.StorageProfile.ImageReference.Version $imgRef.Version; Assert-AreEqual $vm1.OSProfile.AdminUsername $user; Assert-AreEqual $vm1.OSProfile.ComputerName $computerName; Assert-AreEqual $vm1.HardwareProfile.VmSize $vmsize; Assert-AreEqual $true $vm1.DiagnosticsProfile.BootDiagnostics.Enabled; Assert-AreEqual $stoaccount.PrimaryEndpoints.Blob $vm1.DiagnosticsProfile.BootDiagnostics.StorageUri; Wait-Seconds 600; $bddata = Get-AzVMBootDiagnosticsData -Linux -ResourceGroupName $rgname -Name $vmname | Out-String; Write-Output("BootDiagnosticsData:"); Write-Output($bddata); } finally { Clean-ResourceGroup $rgname } } function Test-VirtualMachineBootDiagnosticsPremium { $rgname = Get-ComputeTestResourceName try { $loc = Get-ComputeVMLocation; New-AzResourceGroup -Name $rgname -Location $loc -Force; $vmsize = 'Standard_DS1'; $vmname = 'vm' + $rgname; $p = New-AzVMConfig -VMName $vmname -VMSize $vmsize; Assert-AreEqual $p.HardwareProfile.VmSize $vmsize; $subnet = New-AzVirtualNetworkSubnetConfig -Name ('subnet' + $rgname) -AddressPrefix "10.0.0.0/24"; $vnet = New-AzVirtualNetwork -Force -Name ('vnet' + $rgname) -ResourceGroupName $rgname -Location $loc -AddressPrefix "10.0.0.0/16" -Subnet $subnet; $vnet = Get-AzVirtualNetwork -Name ('vnet' + $rgname) -ResourceGroupName $rgname; $subnetId = $vnet.Subnets[0].Id; $pubip = New-AzPublicIpAddress -Force -Name ('pubip' + $rgname) -ResourceGroupName $rgname -Location $loc -AllocationMethod Dynamic -DomainNameLabel ('pubip' + $rgname); $pubip = Get-AzPublicIpAddress -Name ('pubip' + $rgname) -ResourceGroupName $rgname; $pubipId = $pubip.Id; $nic = New-AzNetworkInterface -Force -Name ('nic' + $rgname) -ResourceGroupName $rgname -Location $loc -SubnetId $subnetId -PublicIpAddressId $pubip.Id; $nic = Get-AzNetworkInterface -Name ('nic' + $rgname) -ResourceGroupName $rgname; $nicId = $nic.Id; $p = Add-AzVMNetworkInterface -VM $p -Id $nicId; Assert-AreEqual $p.NetworkProfile.NetworkInterfaces.Count 1; Assert-AreEqual $p.NetworkProfile.NetworkInterfaces[0].Id $nicId; $p = Add-AzVMNetworkInterface -VM $p -Id $nicId -Primary; Assert-AreEqual $p.NetworkProfile.NetworkInterfaces.Count 1; Assert-AreEqual $p.NetworkProfile.NetworkInterfaces[0].Id $nicId; Assert-AreEqual $p.NetworkProfile.NetworkInterfaces[0].Primary $true; $stoname = 'sto' + $rgname; $stotype = 'Premium_LRS'; New-AzStorageAccount -ResourceGroupName $rgname -Name $stoname -Location $loc -Type $stotype; $stoaccount = Get-AzStorageAccount -ResourceGroupName $rgname -Name $stoname; $osDiskName = 'osDisk'; $osDiskCaching = 'None'; $osDiskVhdUri = "https://$stoname.blob.core.windows.net/test/os.vhd"; $p = Set-AzVMOSDisk -VM $p -Name $osDiskName -VhdUri $osDiskVhdUri -Caching $osDiskCaching -CreateOption FromImage; Assert-AreEqual $p.StorageProfile.OSDisk.Caching $osDiskCaching; Assert-AreEqual $p.StorageProfile.OSDisk.Name $osDiskName; Assert-AreEqual $p.StorageProfile.OSDisk.Vhd.Uri $osDiskVhdUri; $user = "Foo12"; $password = $PLACEHOLDER; $securePassword = ConvertTo-SecureString $password -AsPlainText -Force; $cred = New-Object System.Management.Automation.PSCredential ($user, $securePassword); $computerName = 'test'; $vhdContainer = "https://$stoname.blob.core.windows.net/test"; $p = Set-AzVMOperatingSystem -VM $p -Windows -ComputerName $computerName -Credential $cred; $imgRef = Get-DefaultCRPImage -loc $loc; $p = ($imgRef | Set-AzVMSourceImage -VM $p); Assert-AreEqual $p.OSProfile.AdminUsername $user; Assert-AreEqual $p.OSProfile.ComputerName $computerName; Assert-AreEqual $p.OSProfile.AdminPassword $password; Assert-AreEqual $p.StorageProfile.ImageReference.Offer $imgRef.Offer; Assert-AreEqual $p.StorageProfile.ImageReference.Publisher $imgRef.PublisherName; Assert-AreEqual $p.StorageProfile.ImageReference.Sku $imgRef.Skus; Assert-AreEqual $p.StorageProfile.ImageReference.Version $imgRef.Version; New-AzVM -ResourceGroupName $rgname -Location $loc -VM $p; $vm1 = Get-AzVM -Name $vmname -ResourceGroupName $rgname; Assert-AreEqual $vm1.Name $vmname; Assert-AreEqual $vm1.NetworkProfile.NetworkInterfaces.Count 1; Assert-AreEqual $vm1.NetworkProfile.NetworkInterfaces[0].Id $nicId; Assert-AreEqual $vm1.StorageProfile.ImageReference.Offer $imgRef.Offer; Assert-AreEqual $vm1.StorageProfile.ImageReference.Publisher $imgRef.PublisherName; Assert-AreEqual $vm1.StorageProfile.ImageReference.Sku $imgRef.Skus; Assert-AreEqual $vm1.StorageProfile.ImageReference.Version $imgRef.Version; Assert-AreEqual $vm1.OSProfile.AdminUsername $user; Assert-AreEqual $vm1.OSProfile.ComputerName $computerName; Assert-AreEqual $vm1.HardwareProfile.VmSize $vmsize; Assert-AreEqual $true $vm1.DiagnosticsProfile.BootDiagnostics.Enabled; Assert-AreNotEqual $stoaccount.PrimaryEndpoints.Blob $vm1.DiagnosticsProfile.BootDiagnostics.StorageUri; } finally { Clean-ResourceGroup $rgname } } function Test-LinuxVirtualMachineBootDiagnostics { $rgname = Get-ComputeTestResourceName try { $loc = Get-ComputeVMLocation; New-AzResourceGroup -Name $rgname -Location $loc -Force; $vmsize = 'Standard_A4'; $vmname = 'vm' + $rgname; $p = New-AzVMConfig -VMName $vmname -VMSize $vmsize; Assert-AreEqual $p.HardwareProfile.VmSize $vmsize; $subnet = New-AzVirtualNetworkSubnetConfig -Name ('subnet' + $rgname) -AddressPrefix "10.0.0.0/24"; $vnet = New-AzVirtualNetwork -Force -Name ('vnet' + $rgname) -ResourceGroupName $rgname -Location $loc -AddressPrefix "10.0.0.0/16" -Subnet $subnet; $vnet = Get-AzVirtualNetwork -Name ('vnet' + $rgname) -ResourceGroupName $rgname; $subnetId = $vnet.Subnets[0].Id; $pubip = New-AzPublicIpAddress -Force -Name ('pubip' + $rgname) -ResourceGroupName $rgname -Location $loc -AllocationMethod Dynamic -DomainNameLabel ('pubip' + $rgname); $pubip = Get-AzPublicIpAddress -Name ('pubip' + $rgname) -ResourceGroupName $rgname; $pubipId = $pubip.Id; $nic = New-AzNetworkInterface -Force -Name ('nic' + $rgname) -ResourceGroupName $rgname -Location $loc -SubnetId $subnetId -PublicIpAddressId $pubip.Id; $nic = Get-AzNetworkInterface -Name ('nic' + $rgname) -ResourceGroupName $rgname; $nicId = $nic.Id; $p = Add-AzVMNetworkInterface -VM $p -Id $nicId; Assert-AreEqual $p.NetworkProfile.NetworkInterfaces.Count 1; Assert-AreEqual $p.NetworkProfile.NetworkInterfaces[0].Id $nicId; $stoname = 'sto' + $rgname; $stotype = 'Standard_GRS'; New-AzStorageAccount -ResourceGroupName $rgname -Name $stoname -Location $loc -Type $stotype; $stoaccount = Get-AzStorageAccount -ResourceGroupName $rgname -Name $stoname; $osDiskName = 'osDisk'; $osDiskCaching = 'ReadWrite'; $osDiskVhdUri = "https://$stoname.blob.core.windows.net/test/os.vhd"; $p = Set-AzVMOSDisk -VM $p -Name $osDiskName -VhdUri $osDiskVhdUri -Caching $osDiskCaching -CreateOption FromImage; Assert-AreEqual $p.StorageProfile.OSDisk.Caching $osDiskCaching; Assert-AreEqual $p.StorageProfile.OSDisk.Name $osDiskName; Assert-AreEqual $p.StorageProfile.OSDisk.Vhd.Uri $osDiskVhdUri; $user = "Foo12"; $password = $PLACEHOLDER; $securePassword = ConvertTo-SecureString $password -AsPlainText -Force; $cred = New-Object System.Management.Automation.PSCredential ($user, $securePassword); $computerName = 'test'; $vhdContainer = "https://$stoname.blob.core.windows.net/test"; $imgRef = Get-DefaultCRPLinuxImageOffline; $p = Set-AzVMOperatingSystem -VM $p -Linux -ComputerName $computerName -Credential $cred $p = ($imgRef | Set-AzVMSourceImage -VM $p); Assert-AreEqual $p.OSProfile.AdminUsername $user; Assert-AreEqual $p.OSProfile.ComputerName $computerName; Assert-AreEqual $p.OSProfile.AdminPassword $password; Assert-AreEqual $p.StorageProfile.ImageReference.Offer $imgRef.Offer; Assert-AreEqual $p.StorageProfile.ImageReference.Publisher $imgRef.PublisherName; Assert-AreEqual $p.StorageProfile.ImageReference.Sku $imgRef.Skus; Assert-AreEqual $p.StorageProfile.ImageReference.Version $imgRef.Version; New-AzVM -ResourceGroupName $rgname -Location $loc -VM $p; $vm1 = Get-AzVM -Name $vmname -ResourceGroupName $rgname; Assert-AreEqual $vm1.Name $vmname; Assert-AreEqual $vm1.NetworkProfile.NetworkInterfaces.Count 1; Assert-AreEqual $vm1.NetworkProfile.NetworkInterfaces[0].Id $nicId; Assert-AreEqual $vm1.StorageProfile.ImageReference.Offer $imgRef.Offer; Assert-AreEqual $vm1.StorageProfile.ImageReference.Publisher $imgRef.PublisherName; Assert-AreEqual $vm1.StorageProfile.ImageReference.Sku $imgRef.Skus; Assert-AreEqual $vm1.StorageProfile.ImageReference.Version $imgRef.Version; Assert-AreEqual $vm1.OSProfile.AdminUsername $user; Assert-AreEqual $vm1.OSProfile.ComputerName $computerName; Assert-AreEqual $vm1.HardwareProfile.VmSize $vmsize; Assert-AreEqual $true $vm1.DiagnosticsProfile.BootDiagnostics.Enabled; Assert-AreEqual $stoaccount.PrimaryEndpoints.Blob $vm1.DiagnosticsProfile.BootDiagnostics.StorageUri; Remove-AzVM -Name $vmname -ResourceGroupName $rgname -Force; } finally { Clean-ResourceGroup $rgname } } function Test-VirtualMachineBootDiagnosticsSet { $rgname = Get-ComputeTestResourceName try { $loc = Get-ComputeVMLocation; New-AzResourceGroup -Name $rgname -Location $loc -Force; $vmsize = 'Standard_A4'; $vmname = 'vm' + $rgname; $p = New-AzVMConfig -VMName $vmname -VMSize $vmsize; Assert-AreEqual $p.HardwareProfile.VmSize $vmsize; $subnet = New-AzVirtualNetworkSubnetConfig -Name ('subnet' + $rgname) -AddressPrefix "10.0.0.0/24"; $vnet = New-AzVirtualNetwork -Force -Name ('vnet' + $rgname) -ResourceGroupName $rgname -Location $loc -AddressPrefix "10.0.0.0/16" -Subnet $subnet; $vnet = Get-AzVirtualNetwork -Name ('vnet' + $rgname) -ResourceGroupName $rgname; $subnetId = $vnet.Subnets[0].Id; $pubip = New-AzPublicIpAddress -Force -Name ('pubip' + $rgname) -ResourceGroupName $rgname -Location $loc -AllocationMethod Dynamic -DomainNameLabel ('pubip' + $rgname); $pubip = Get-AzPublicIpAddress -Name ('pubip' + $rgname) -ResourceGroupName $rgname; $pubipId = $pubip.Id; $nic = New-AzNetworkInterface -Force -Name ('nic' + $rgname) -ResourceGroupName $rgname -Location $loc -SubnetId $subnetId -PublicIpAddressId $pubip.Id; $nic = Get-AzNetworkInterface -Name ('nic' + $rgname) -ResourceGroupName $rgname; $nicId = $nic.Id; $p = Add-AzVMNetworkInterface -VM $p -Id $nicId; Assert-AreEqual $p.NetworkProfile.NetworkInterfaces.Count 1; Assert-AreEqual $p.NetworkProfile.NetworkInterfaces[0].Id $nicId; $p = Add-AzVMNetworkInterface -VM $p -Id $nicId -Primary; Assert-AreEqual $p.NetworkProfile.NetworkInterfaces.Count 1; Assert-AreEqual $p.NetworkProfile.NetworkInterfaces[0].Id $nicId; Assert-AreEqual $p.NetworkProfile.NetworkInterfaces[0].Primary $true; $stoname = 'sto' + $rgname; $stotype = 'Standard_GRS'; New-AzStorageAccount -ResourceGroupName $rgname -Name $stoname -Location $loc -Type $stotype; $stoaccount = Get-AzStorageAccount -ResourceGroupName $rgname -Name $stoname; $stoname2 = $stoname + 'add'; $stotype2 = 'Standard_GRS'; New-AzStorageAccount -ResourceGroupName $rgname -Name $stoname2 -Location $loc -Type $stotype2; $stoaccount2 = Get-AzStorageAccount -ResourceGroupName $rgname -Name $stoname2; $osDiskName = 'osDisk'; $osDiskCaching = 'ReadWrite'; $osDiskVhdUri = "https://$stoname.blob.core.windows.net/test/os.vhd"; $p = Set-AzVMOSDisk -VM $p -Name $osDiskName -VhdUri $osDiskVhdUri -Caching $osDiskCaching -CreateOption FromImage; Assert-AreEqual $p.StorageProfile.OSDisk.Caching $osDiskCaching; Assert-AreEqual $p.StorageProfile.OSDisk.Name $osDiskName; Assert-AreEqual $p.StorageProfile.OSDisk.Vhd.Uri $osDiskVhdUri; $user = "Foo12"; $password = $PLACEHOLDER; $securePassword = ConvertTo-SecureString $password -AsPlainText -Force; $cred = New-Object System.Management.Automation.PSCredential ($user, $securePassword); $computerName = 'test'; $vhdContainer = "https://$stoname.blob.core.windows.net/test"; $p = Set-AzVMOperatingSystem -VM $p -Windows -ComputerName $computerName -Credential $cred; $imgRef = Get-DefaultCRPImage -loc $loc; $p = ($imgRef | Set-AzVMSourceImage -VM $p); Assert-AreEqual $p.OSProfile.AdminUsername $user; Assert-AreEqual $p.OSProfile.ComputerName $computerName; Assert-AreEqual $p.OSProfile.AdminPassword $password; Assert-AreEqual $p.StorageProfile.ImageReference.Offer $imgRef.Offer; Assert-AreEqual $p.StorageProfile.ImageReference.Publisher $imgRef.PublisherName; Assert-AreEqual $p.StorageProfile.ImageReference.Sku $imgRef.Skus; Assert-AreEqual $p.StorageProfile.ImageReference.Version $imgRef.Version; $p = Set-AzVMBootDiagnostic -VM $p -Enable -ResourceGroupName $rgname -StorageAccountName $stoname2; New-AzVM -ResourceGroupName $rgname -Location $loc -VM $p; $vm1 = Get-AzVM -Name $vmname -ResourceGroupName $rgname; Assert-AreEqual $vm1.Name $vmname; Assert-AreEqual $vm1.NetworkProfile.NetworkInterfaces.Count 1; Assert-AreEqual $vm1.NetworkProfile.NetworkInterfaces[0].Id $nicId; Assert-AreEqual $vm1.StorageProfile.ImageReference.Offer $imgRef.Offer; Assert-AreEqual $vm1.StorageProfile.ImageReference.Publisher $imgRef.PublisherName; Assert-AreEqual $vm1.StorageProfile.ImageReference.Sku $imgRef.Skus; Assert-AreEqual $vm1.StorageProfile.ImageReference.Version $imgRef.Version; Assert-AreEqual $vm1.OSProfile.AdminUsername $user; Assert-AreEqual $vm1.OSProfile.ComputerName $computerName; Assert-AreEqual $vm1.HardwareProfile.VmSize $vmsize; Assert-AreEqual $true $vm1.DiagnosticsProfile.BootDiagnostics.Enabled; Assert-AreEqual $stoaccount2.PrimaryEndpoints.Blob $vm1.DiagnosticsProfile.BootDiagnostics.StorageUri; $vm1 | Set-AzVMBootDiagnostic -Disable | Update-AzVM $vm1 = Get-AzVM -Name $vmname -ResourceGroupName $rgname; Assert-AreEqual $vm1.Name $vmname; Assert-AreEqual $vm1.NetworkProfile.NetworkInterfaces.Count 1; Assert-AreEqual $vm1.NetworkProfile.NetworkInterfaces[0].Id $nicId; Assert-AreEqual $vm1.StorageProfile.ImageReference.Offer $imgRef.Offer; Assert-AreEqual $vm1.StorageProfile.ImageReference.Publisher $imgRef.PublisherName; Assert-AreEqual $vm1.StorageProfile.ImageReference.Sku $imgRef.Skus; Assert-AreEqual $vm1.StorageProfile.ImageReference.Version $imgRef.Version; Assert-AreEqual $vm1.OSProfile.AdminUsername $user; Assert-AreEqual $vm1.OSProfile.ComputerName $computerName; Assert-AreEqual $vm1.HardwareProfile.VmSize $vmsize; Assert-AreEqual $false $vm1.DiagnosticsProfile.BootDiagnostics.Enabled; Assert-AreEqual $stoaccount2.PrimaryEndpoints.Blob $vm1.DiagnosticsProfile.BootDiagnostics.StorageUri; } finally { Clean-ResourceGroup $rgname } }
0
sample_3_73.ps1
#************************************************ # TS_IPv6Check.ps1 # Version 1.0 # Date: 5-1-2012 # Author: davidcop # Description: Checks for nics with IPv6 unchecked and the disabledcomponents registry value does not exist #************************************************ #_# update for Win10 if ((($OSVersion.major -eq 6) -and ($OSVersion.minor -ge 0 -and $OSVersion.minor -le 2)) -or ($OSVersion.major -eq 10)) # Win 7/R2 .. Win10 { $NetworkAdapterConfigWMI = $null $NetworkAdapterConfigWMIInstance = $null $NetworkAdapterWMIQuery = $null $NetworkAdapterWMI = $null $IPv6Linkage = $null $IPv6Bindings = $null $IPv6BindingInstance = $null $BindingFound = $null $NoBindingFound = $null $IPv6ParametersKey = $null $DisabledComponents = $null [array] $UnboundInterfaces = $null $UnboundInterfaceInstance = $null $NetworkAdapterWMIQuery2 = $null $NetworkAdapterWMIInstance = $null $NetworkAdapterWMIInstance2 = $null $NetworkAdapterGuid = $null $EmptyString = $null $WinOS = $null Import-LocalizedData -BindingVariable ScriptVariable Write-DiagProgress -Activity $ScriptVariable.ID_CTSIPv6Check -Status $ScriptVariable.ID_CTSIPv6CheckDescription $RootCauseName = "RC_IPv6Check" $RootCauseDetected=$false $IPv6ParametersKey = get-itemproperty -path "hklm:\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters" $DisabledComponents = $IPv6ParametersKey.DisabledComponents if ($null -eq $DisabledComponents) { $NetworkAdapterConfigWMI= Get-CimInstance -query "select * from win32_networkadapterconfiguration where IPEnabled = 'True'" if ($null -ne $NetworkAdapterConfigWMI) { if ($null -eq $NetworkAdapterConfigWMI.count) { $count2 = 1 } else { $count2 = $NetworkAdapterConfigWMI.count } foreach ($NetworkAdapterConfigWMIInstance in $NetworkAdapterConfigWMI) { $NetworkAdapterWMIQuery = "select * from win32_networkadapter where MACAddress = '" + $NetworkAdapterConfigWMIInstance.MACAddress + "'" $NetworkAdapterWMI = Get-CimInstance -query $NetworkAdapterWMIQuery $IPv6Linkage = get-itemproperty -path "hklm:\SYSTEM\CurrentControlSet\Services\Tcpip6\Linkage" $IPv6Bindings = $IPv6Linkage.Bind if ($null -ne $IPv6Bindings) { $found = $false foreach ($IPv6BindingInstance in $IPv6Bindings) { if ($null -ne $NetworkAdapterWMI.count) { foreach ($NetworkAdapterWMIInstance2 in $NetworkAdapterWMI) { if ($NetworkAdapterWMIInstance2.ServiceName -eq "VMSMP") { $NetworkAdapterGuid = $NetworkAdapterWMIInstance2.guid } } $BindingFound = $IPv6BindingInstance.ToString().ToLower().Contains($NetworkAdapterGuid.ToString().ToLower()) if ($BindingFound -eq $true) { $Count += 1 $found = $true } } else { $BindingFound = $IPv6BindingInstance.ToString().ToLower().Contains($NetworkAdapterWMI.guid.ToString().ToLower()) $NetworkAdapterGuid = $NetworkAdapterWMI.guid if ($BindingFound -eq $true) { $Count += 1 $found = $true } } } if ($found -eq $false) { $UnboundInterfaces += $NetworkAdapterGuid } } } } if ($count -ne $count2) { $NoBindingFound = $true } } if ($null -eq $DisabledComponents -and $NoBindingFound -eq $true) { $RootCauseDetected = $true foreach ($UnboundInterfaceInstance in $UnboundInterfaces) { $InformationCollected = new-object PSObject $NetworkAdapterWMIQuery2 = "select * from win32_networkadapter where GUID = '" + $UnboundInterfaceInstance + "'" $NetworkAdapterWMIInstance = Get-CimInstance -query $NetworkAdapterWMIQuery2 add-member -inputobject $InformationCollected -membertype noteproperty -name "Network Connection Name" -value $NetworkAdapterWMIInstance.NetConnectionId Write-GenericMessage -RootCauseId $RootCauseName -PublicContentURL "http://support.microsoft.com/kb/929852" -Verbosity "Warning" -InformationCollected $InformationCollected -Visibility 4 -SupportTopicsID 8041 } } if($RootCauseDetected) { Update-DiagRootCause -id $RootCauseName -Detected $true } else { Update-DiagRootCause -id $RootCauseName -Detected $false } $NetworkAdapterConfigWMI = $null $NetworkAdapterConfigWMIInstance = $null $NetworkAdapterWMIQuery = $null $NetworkAdapterWMI = $null $IPv6Linkage = $null $IPv6Bindings = $null $IPv6BindingInstance = $null $BindingFound = $null $NoBindingFound = $null $IPv6ParametersKey = $null $DisabledComponents = $null [array] $UnboundInterfaces = $null $UnboundInterfaceInstance = $null $NetworkAdapterWMIQuery2 = $null $NetworkAdapterWMIInstance = $null $NetworkAdapterWMIInstance2 = $null $NetworkAdapterGuid = $null $EmptyString = $null $count = $null $count2 = $null $string = $null } ## 04/03: Added new Trap info #Trap{WriteTo-StdOut "$($_.InvocationInfo.ScriptName)($($_.InvocationInfo.ScriptLineNumber)): $_" -shortformat;Continue} Trap [Exception] { WriteTo-ErrorDebugReport -ErrorRecord $_ continue } # SIG # Begin signature block # MIIoQwYJKoZIhvcNAQcCoIIoNDCCKDACAQExDzANBglghkgBZQMEAgEFADB5Bgor # BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG # KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCDroz0xEKDido9Q # gWvZCIqzTnVFmQLerM82TbC/LUSGMaCCDXYwggX0M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YSupHkeF1p6GFwjKBs8lRB4NRzCBmDCBgKR+MHwx # CzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRt # b25kMR4wHAYDVQQKExVNaWNyb3NvZnQgQ29ycG9yYXRpb24xJjAkBgNVBAMTHU1p # Y3Jvc29mdCBUaW1lLVN0YW1wIFBDQSAyMDEwAhMzAAAB/XP5aFrNDGHtAAEAAAH9 # MCIEILkYvpuRiODssJyAPH65EnrV3KtBv8aYFkft91FYt/GwMA0GCSqGSIb3DQEB # CwUABIICAGyOtzkCXzmqP1bFEFJINqJv5VQ0k4rhNFQdczZ2P7apmQoJ3vyeKLq0 # F/veopHu35g22C7aq5unqwLSVGdNOX15ZlKWqiKR249wHNenid6Uy1TwIm6O5jox # oj08Fr5Xgmcs6ZhBASBN2faYN5PCI4S8zUIE1fX9oiqRWLDJzBu65tmbC9Ui5Kss # 1CU1N0rR3JgYXU+nUsRKP46tZefn+z47iM3RAh1xD1/UMUG22MU88leIYBfDoaTK # TWKNHeybK3nLfuWZ+TLRcZL+sEHpsi+cb3RdVsPeWTDA6Pood720Cg9ykfcZogWl # o2sH3uBi1XEoxRptSuMnoS6YHcDhnPyUeiKLPj3WlODhLOGgAsn+yDtgG5xMQptj # /ASqq+p+dV8xUAZwzL4KpFre1MmQLwrpdTzvQ23sJ0wsrIphE93iCx365ynMHKiX # SlrchiYjYiZ9BtYNPhtwLpBsfuAvr9db0m1eGqwW+wkSMCFIVVErrmNI/0fXZbJn # CqjeL22ym24TPoT1dZ5Jynpp+YavviBCXXR2ua2Y0WL9i/AlPPzIta6nuaVjow2E # LF6lWppQWI56l0WrF5+P203/U/LKO62p0cWnfmcCP7Cfx/YaY9qsjdS6JVGnCC36 # PdmpBHZeSNUIfdaJJ1XqNep0mYmGfS5ftNojC4yQ/aX4OeF5jlrb # SIG # End signature block
0
sample_32_74.ps1
# # Module manifest for module 'OCI.PSModules.Vbsinst' # # Generated by: Oracle Cloud Infrastructure # # @{ # Script module or binary module file associated with this manifest. RootModule = 'assemblies/OCI.PSModules.Vbsinst.dll' # Version number of this module. ModuleVersion = '83.2.0' # Supported PSEditions CompatiblePSEditions = 'Core' # ID used to uniquely identify this module GUID = 'cc03b9ae-8da9-4b89-b900-8f068d3d2c43' # Author of this module Author = 'Oracle Cloud Infrastructure' # Company or vendor of this module CompanyName = 'Oracle Corporation' # Copyright statement for this module Copyright = '(c) Oracle Cloud Infrastructure. All rights reserved.' # Description of the functionality provided by this module Description = 'This modules provides Cmdlets for OCI Vbsinst Service' # Minimum version of the PowerShell engine required by this module PowerShellVersion = '6.0' # Name of the PowerShell host required by this module # PowerShellHostName = '' # Minimum version of the PowerShell host required by this module # PowerShellHostVersion = '' # Minimum version of Microsoft .NET Framework required by this module. This prerequisite is valid for the PowerShell Desktop edition only. # DotNetFrameworkVersion = '' # Minimum version of the common language runtime (CLR) required by this module. This prerequisite is valid for the PowerShell Desktop edition only. # ClrVersion = '' # Processor architecture (None, X86, Amd64) required by this module # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '83.2.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Vbsinst.dll' # Script files (.ps1) that are run in the caller's environment prior to importing this module. # ScriptsToProcess = @() # Type files (.ps1xml) to be loaded when importing this module # TypesToProcess = @() # Format files (.ps1xml) to be loaded when importing this module # FormatsToProcess = @() # Modules to import as nested modules of the module specified in RootModule/ModuleToProcess # NestedModules = @() # Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export. FunctionsToExport = '*' # Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export. CmdletsToExport = 'Get-OCIVbsinstance', 'Get-OCIVbsinstancesList', 'Get-OCIVbsinstWorkRequest', 'Get-OCIVbsinstWorkRequestErrorsList', 'Get-OCIVbsinstWorkRequestLogsList', 'Get-OCIVbsinstWorkRequestsList', 'Move-OCIVbsinstanceCompartment', 'New-OCIVbsinstance', 'Remove-OCIVbsinstance', 'Update-OCIVbsinstance' # Variables to export from this module VariablesToExport = '*' # Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export. AliasesToExport = '*' # DSC resources to export from this module # DscResourcesToExport = @() # List of all modules packaged with this module # ModuleList = @() # List of all files packaged with this module # FileList = @() # Private data to pass to the module specified in RootModule/ModuleToProcess. This may also contain a PSData hashtable with additional module metadata used by PowerShell. PrivateData = @{ PSData = @{ # Tags applied to this module. These help with module discovery in online galleries. Tags = 'PSEdition_Core','Windows','Linux','macOS','Oracle','OCI','Cloud','OracleCloudInfrastructure','Vbsinst' # A URL to the license for this module. LicenseUri = 'https://github.com/oracle/oci-powershell-modules/blob/master/LICENSE.txt' # A URL to the main website for this project. ProjectUri = 'https://github.com/oracle/oci-powershell-modules/' # A URL to an icon representing this module. IconUri = 'https://github.com/oracle/oci-powershell-modules/blob/master/icon.png' # ReleaseNotes of this module ReleaseNotes = 'https://github.com/oracle/oci-powershell-modules/blob/master/CHANGELOG.md' # Prerelease string of this module # Prerelease = '' # Flag to indicate whether the module requires explicit user acceptance for install/update/save # RequireLicenseAcceptance = $false # External dependent modules of this module # ExternalModuleDependencies = @() } # End of PSData hashtable } # End of PrivateData hashtable # HelpInfo URI of this module # HelpInfoURI = '' # Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix. # DefaultCommandPrefix = '' }
0
Set-IPAddress_6.ps1
function Set-IPAddress { param( [string]$networkinterface =$(read-host "Enter the name of the NIC (ie Local Area Connection)"), [string]$ip = $(read-host "Enter an IP Address (ie 10.10.10.10)"), @@[string]$mask = $(read-host "Enter the subnet mask (ie 255.255.255.0)"), [string]$gateway = $(read-host "Enter the current name of the NIC you want to rename"), [string]$dns1 = $(read-host "Enter the first DNS Server (ie 10.2.0.28)"), [string]$dns2, [string]$registerDns = "TRUE" ) $dns = $dns1 if($dns2){$dns ="$dns1,$dns2"} $index = (gwmi Win32_NetworkAdapter | where {$_.netconnectionid -eq $networkinterface}).InterfaceIndex $NetInterface = Get-WmiObject Win32_NetworkAdapterConfiguration | where {$_.InterfaceIndex -eq $index} @@$NetInterface.EnableStatic($ip, $subnetmask) $NetInterface.SetGateways($gateway) $NetInterface.SetDNSServerSearchOrder($dns) $NetInterface.SetDynamicDNSRegistration($registerDns) } Fourth line from the bottom should read $NetInterface.EnableStatic($ip, $mask) You had the variables wrong - you had 1st variable as "$mask" ([string]$mask) and the next usage as "$subnetmask" - both should match. Either have both as "$mask" or both as "$subnetmask."
0
3970.ps1
function Check-CmdletReturnType { param($cmdletName, $cmdletReturn) $cmdletData = Get-Command $cmdletName Assert-NotNull $cmdletData [array]$cmdletReturnTypes = $cmdletData.OutputType.Name | Foreach-Object { return ($_ -replace "Microsoft.Azure.Commands.Network.Models.","") } [array]$cmdletReturnTypes = $cmdletReturnTypes | Foreach-Object { return ($_ -replace "System.","") } $realReturnType = $cmdletReturn.GetType().Name -replace "Microsoft.Azure.Commands.Network.Models.","" return $cmdletReturnTypes -contains $realReturnType } function Test-VirtualRouterCRUD { $rgname = Get-ResourceGroupName $rname = Get-ResourceName $domainNameLabel = Get-ResourceName $vnetName = Get-ResourceName $publicIpName = Get-ResourceName $vnetGatewayConfigName = Get-ResourceName $rglocation = Get-ProviderLocation ResourceManagement "southcentralus" $resourceTypeParent = "Microsoft.Network/virtualNetworkGateways" $location = Get-ProviderLocation $resourceTypeParent "southcentralus" $virtualRouterName = Get-ResourceName try { $resourceGroup = New-AzResourceGroup -Name $rgname -Location $rglocation -Tags @{ testtag = "testval" } $subnet = New-AzVirtualNetworkSubnetConfig -Name "GatewaySubnet" -AddressPrefix 10.0.0.0/24 $vnet = New-AzVirtualNetwork -Name $vnetName -ResourceGroupName $rgname -Location $location -AddressPrefix 10.0.0.0/16 -Subnet $subnet $vnet = Get-AzVirtualNetwork -Name $vnetName -ResourceGroupName $rgname $subnet = Get-AzVirtualNetworkSubnetConfig -Name "GatewaySubnet" -VirtualNetwork $vnet $publicip = New-AzPublicIpAddress -ResourceGroupName $rgname -name $publicIpName -location $location -AllocationMethod Dynamic -DomainNameLabel $domainNameLabel $vnetIpConfig = New-AzVirtualNetworkGatewayIpConfig -Name $vnetGatewayConfigName -PublicIpAddress $publicip -Subnet $subnet $actual = New-AzVirtualNetworkGateway -ResourceGroupName $rgname -name $rname -location $location -IpConfigurations $vnetIpConfig -GatewayType ExpressRoute -GatewaySku HighPerformance -VpnType RouteBased -VpnGatewayGeneration None -Force $expected = Get-AzVirtualNetworkGateway -ResourceGroupName $rgname -name $rname Assert-AreEqual $expected.ResourceGroupName $actual.ResourceGroupName Assert-AreEqual $expected.Name $actual.Name Assert-AreEqual "ExpressRoute" $expected.GatewayType Assert-AreEqual "None" $expected.VpnGatewayGeneration $actualvr = New-AzVirtualRouter -ResourceGroupName $rgname -location $location -Name $virtualRouterName -HostedGateway $expected $expectedvr = Get-AzVirtualRouter -ResourceGroupName $rgname -RouterName $virtualRouterName Assert-AreEqual $expectedvr.ResourceGroupName $actualvr.ResourceGroupName Assert-AreEqual $expectedvr.Name $actualvr.Name $list = Get-AzVirtualRouter -ResourceGroupName $rgname Assert-AreEqual 1 @($list).Count Assert-AreEqual $list[0].ResourceGroupName $actualvr.ResourceGroupName Assert-AreEqual $list[0].Name $actualvr.Name Assert-AreEqual $list[0].Location $actualvr.Location $deletevR = Remove-AzVirtualRouter -ResourceGroupName $rgname -RouterName $virtualRouterName -PassThru -Force Assert-AreEqual true $deletevR $delete = Remove-AzVirtualNetworkGateway -ResourceGroupName $actual.ResourceGroupName -name $rname -PassThru -Force Assert-AreEqual true $delete $list = Get-AzVirtualRouter -ResourceGroupName $rgname Assert-AreEqual 0 @($list).Count } finally { Clean-ResourceGroup $rgname } }
0
2940.ps1
properties { $testMessage = 'Executed Test!' $compileMessage = 'Executed Compile!' $cleanMessage = 'Executed Clean!' } task default -depends Test task Test -depends Compile, Clean { $testMessage } task Compile -depends Clean { $compileMessage } task Clean { $cleanMessage }
0
Get-PerformanceHistory _1.ps1
#requires -version 2.0 ## Get-PerformanceHistory.ps1 ############################################################################################################## ## Lets you see the amount of time recent commands in your history have taken ## History: ## v2.5 - added "average" calculation if the first thing in your command line is a range: 1..x ## v2 - added measuring the scripts involved in the command, (uses Tokenizer) ## - adds a ton of parsing to make the output pretty ############################################################################################################## #requires -version 2.0 param( [int]$count=1, [int]$id=((Get-History -count 1| Select Id).Id) ) $Parser = [System.Management.Automation.PsParser] function FormatTimeSpan($ts) { if($ts.Minutes) { if($ts.Hours) { if($ts.Days) { return "{0:##}d {1:00}:{2:00}:{3:00}.{4:00000}" -f $ts.Days, $ts.Hours, $ts.Minutes, $ts.Seconds, [int](100000 * ($ts.TotalSeconds - [Math]::Floor($ts.TotalSeconds))) } return "{0:##}:{1:00}:{2:00}.{3:00000}" -f $ts.Hours, $ts.Minutes, $ts.Seconds, [int](100000 * ($ts.TotalSeconds - [Math]::Floor($ts.TotalSeconds))) } return "{0:##}:{1:00}.{2:00000}" -f $ts.Minutes, $ts.Seconds, [int](100000 * ($ts.TotalSeconds - [Math]::Floor($ts.TotalSeconds))) } return "{0:#0}.{1:00000}" -f $ts.Seconds, [int](100000 * ($ts.TotalSeconds - [Math]::Floor($ts.TotalSeconds))) } Get-History -count $count -id $id | ForEach { $msr = $null $cmd = $_ # default formatting values $avg = 7; $len = 8; $count = 1 $tok = $Parser::Tokenize( $cmd.CommandLine, [ref]$null ) if( ($tok[0].Type -eq "Number") -and ($tok[0].Content -le 1) -and ($tok[2].Type -eq "Number") -and ($tok[1].Content -eq "..") ) { $count = ([int]$tok[2].Content) - ([int]$tok[0].Content) + 1 } $com = @( $tok | where {$_.Type -eq "Command"} | foreach { get-command $_.Content } | where { $_.CommandType -eq "ExternalScript" } | foreach { $_.Path } ) # If we actually got a script, measure it out if($com.Count -gt 0){ $msr = Get-Content -path $com | Measure-Object -L -W -C } else { $msr = Measure-Object -in $cmd.CommandLine -L -W -C } "" | Select @{n="Id"; e={$cmd.Id}}, @{n="Duration"; e={FormatTimeSpan ($cmd.EndExecutionTime - $cmd.StartExecutionTime)}}, @{n="Average"; e={FormatTimeSpan ([TimeSpan]::FromTicks( (($cmd.EndExecutionTime - $cmd.StartExecutionTime).Ticks / $count) ))}}, @{n="Lines"; e={$msr.Lines}}, @{n="Words"; e={$msr.Words}}, @{n="Chars"; e={$msr.Characters}}, @{n="Type"; e={if($com.Count -gt 0){"Script"}else{"Command"}}}, @{n="Commmand"; e={$cmd.CommandLine}} } | # I have to figure out what the longest time string is to make it look its best Foreach { $avg = [Math]::Max($avg,$_.Average.Length); $len = [Math]::Max($len,$_.Duration.Length); $_ } | Sort Id | Format-Table @{l="Duration";e={"{0,$len}" -f $_.Duration}},@{l="Average";e={"{0,$avg}" -f $_.Average}},Lines,Words,Chars,Type,Commmand -auto
0
sample_41_68.ps1
function trySetDesignerProp(tname, ttype, val) { var trait = document.designerProps.getOrCreateTrait(tname, ttype, 0); trait.value = val; } if (command.getTrait("state").value == 0) { command.getTrait("state").value = 2; trySetDesignerProp("manipulationWorldMode", "bool", true); } else { command.getTrait("state").value = 0; trySetDesignerProp("manipulationWorldMode", "bool", false); } // SIG // Begin signature block // SIG // MIIoKgYJKoZIhvcNAQcCoIIoGzCCKBcCAQExDzANBglg // SIG // hkgBZQMEAgEFADB3BgorBgEEAYI3AgEEoGkwZzAyBgor // SIG // BgEEAYI3AgEeMCQCAQEEEBDgyQbOONQRoqMAEEvTUJAC // SIG // AQACAQACAQACAQACAQAwMTANBglghkgBZQMEAgEFAAQg // SIG // KVtxCsw1n+s5JscNmtA4d1Sm7d5JwNXlqDOxhfR8P+Wg // SIG // gg12MIIF9DCCA9ygAwIBAgITMwAAA68wQA5Mo00FQQAA // SIG // AAADrzANBgkqhkiG9w0BAQsFADB+MQswCQYDVQQGEwJV // SIG // UzETMBEGA1UECBMKV2FzaGluZ3RvbjEQMA4GA1UEBxMH // SIG // UmVkbW9uZDEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBv // SIG // cmF0aW9uMSgwJgYDVQQDEx9NaWNyb3NvZnQgQ29kZSBT // SIG // aWduaW5nIFBDQSAyMDExMB4XDTIzMTExNjE5MDkwMFoX // SIG // DTI0MTExNDE5MDkwMFowdDELMAkGA1UEBhMCVVMxEzAR // SIG // BgNVBAgTCldhc2hpbmd0b24xEDAOBgNVBAcTB1JlZG1v // SIG // bmQxHjAcBgNVBAoTFU1pY3Jvc29mdCBDb3Jwb3JhdGlv // SIG // bjEeMBwGA1UEAxMVTWljcm9zb2Z0IENvcnBvcmF0aW9u // SIG // MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA // SIG // zkvLNa2un9GBrYNDoRGkGv7d0PqtTBB4ViYakFbjuWpm // SIG // F0KcvDAzzaCWJPhVgIXjz+S8cHEoHuWnp/n+UOljT3eh // SIG // A8Rs6Lb1aTYub3tB/e0txewv2sQ3yscjYdtTBtFvEm9L // SIG // 8Yv76K3Cxzi/Yvrdg+sr7w8y5RHn1Am0Ff8xggY1xpWC // SIG // XFI+kQM18njQDcUqSlwBnexYfqHBhzz6YXA/S0EziYBu // SIG // 2O2mM7R6gSyYkEOHgIGTVOGnOvvC5xBgC4KNcnQuQSRL // SIG // iUI2CmzU8vefR6ykruyzt1rNMPI8OqWHQtSDKXU5JNqb // SIG // k4GNjwzcwbSzOHrxuxWHq91l/vLdVDGDUwIDAQABo4IB // SIG // czCCAW8wHwYDVR0lBBgwFgYKKwYBBAGCN0wIAQYIKwYB // SIG // BQUHAwMwHQYDVR0OBBYEFEcccTTyBDxkjvJKs/m4AgEF // SIG // hl7BMEUGA1UdEQQ+MDykOjA4MR4wHAYDVQQLExVNaWNy // SIG // b3NvZnQgQ29ycG9yYXRpb24xFjAUBgNVBAUTDTIzMDAx // SIG // Mis1MDE4MjYwHwYDVR0jBBgwFoAUSG5k5VAF04KqFzc3 // SIG // IrVtqMp1ApUwVAYDVR0fBE0wSzBJoEegRYZDaHR0cDov // SIG // L3d3dy5taWNyb3NvZnQuY29tL3BraW9wcy9jcmwvTWlj // SIG // Q29kU2lnUENBMjAxMV8yMDExLTA3LTA4LmNybDBhBggr // SIG // BgEFBQcBAQRVMFMwUQYIKwYBBQUHMAKGRWh0dHA6Ly93 // SIG // d3cubWljcm9zb2Z0LmNvbS9wa2lvcHMvY2VydHMvTWlj // SIG // Q29kU2lnUENBMjAxMV8yMDExLTA3LTA4LmNydDAMBgNV // SIG // HRMBAf8EAjAAMA0GCSqGSIb3DQEBCwUAA4ICAQCEsRbf // SIG // 80dn60xTweOWHZoWaQdpzSaDqIvqpYHE5ZzuEMJWDdcP // SIG // 72MGw8v6BSaJQ+a+hTCXdERnIBDPKvU4ENjgu4EBJocH // SIG // lSe8riiZUAR+z+z4OUYqoFd3EqJyfjjOJBR2z94Dy4ss // SIG // 7LEkHUbj2NZiFqBoPYu2OGQvEk+1oaUsnNKZ7Nl7FHtV // SIG // 7CI2lHBru83e4IPe3glIi0XVZJT5qV6Gx/QhAFmpEVBj // SIG // SAmDdgII4UUwuI9yiX6jJFNOEek6MoeP06LMJtbqA3Bq // SIG // +ZWmJ033F97uVpyaiS4bj3vFI/ZBgDnMqNDtZjcA2vi4 // SIG // RRMweggd9vsHyTLpn6+nXoLy03vMeebq0C3k44pgUIEu // SIG // PQUlJIRTe6IrN3GcjaZ6zHGuQGWgu6SyO9r7qkrEpS2p // SIG // RjnGZjx2RmCamdAWnDdu+DmfNEPAddYjaJJ7PTnd+PGz // SIG // G+WeH4ocWgVnm5fJFhItjj70CJjgHqt57e1FiQcyWCwB // SIG // hKX2rGgN2UICHBF3Q/rsKOspjMw2OlGphTn2KmFl5J7c // SIG // Qxru54A9roClLnHGCiSUYos/iwFHI/dAVXEh0S0KKfTf // SIG // M6AC6/9bCbsD61QLcRzRIElvgCgaiMWFjOBL99pemoEl // SIG // AHsyzG6uX93fMfas09N9YzA0/rFAKAsNDOcFbQlEHKiD // SIG // T7mI20tVoCcmSIhJATCCB3owggVioAMCAQICCmEOkNIA // SIG // AAAAAAMwDQYJKoZIhvcNAQELBQAwgYgxCzAJBgNVBAYT // SIG // AlVTMRMwEQYDVQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQH // SIG // EwdSZWRtb25kMR4wHAYDVQQKExVNaWNyb3NvZnQgQ29y // SIG // cG9yYXRpb24xMjAwBgNVBAMTKU1pY3Jvc29mdCBSb290 // SIG // IENlcnRpZmljYXRlIEF1dGhvcml0eSAyMDExMB4XDTEx // SIG // MDcwODIwNTkwOVoXDTI2MDcwODIxMDkwOVowfjELMAkG // SIG // A1UEBhMCVVMxEzARBgNVBAgTCldhc2hpbmd0b24xEDAO // SIG // BgNVBAcTB1JlZG1vbmQxHjAcBgNVBAoTFU1pY3Jvc29m // SIG // dCBDb3Jwb3JhdGlvbjEoMCYGA1UEAxMfTWljcm9zb2Z0 // SIG // IENvZGUgU2lnbmluZyBQQ0EgMjAxMTCCAiIwDQYJKoZI // SIG // hvcNAQEBBQADggIPADCCAgoCggIBAKvw+nIQHC6t2G6q // SIG // ghBNNLrytlghn0IbKmvpWlCquAY4GgRJun/DDB7dN2vG // SIG // EtgL8DjCmQawyDnVARQxQtOJDXlkh36UYCRsr55JnOlo // SIG // XtLfm1OyCizDr9mpK656Ca/XllnKYBoF6WZ26DJSJhIv // SIG // 56sIUM+zRLdd2MQuA3WraPPLbfM6XKEW9Ea64DhkrG5k // SIG // NXimoGMPLdNAk/jj3gcN1Vx5pUkp5w2+oBN3vpQ97/vj // SIG // K1oQH01WKKJ6cuASOrdJXtjt7UORg9l7snuGG9k+sYxd // SIG // 6IlPhBryoS9Z5JA7La4zWMW3Pv4y07MDPbGyr5I4ftKd // SIG // gCz1TlaRITUlwzluZH9TupwPrRkjhMv0ugOGjfdf8NBS // SIG // v4yUh7zAIXQlXxgotswnKDglmDlKNs98sZKuHCOnqWbs // SIG // YR9q4ShJnV+I4iVd0yFLPlLEtVc/JAPw0XpbL9Uj43Bd // SIG // D1FGd7P4AOG8rAKCX9vAFbO9G9RVS+c5oQ/pI0m8GLhE // SIG // fEXkwcNyeuBy5yTfv0aZxe/CHFfbg43sTUkwp6uO3+xb // SIG // n6/83bBm4sGXgXvt1u1L50kppxMopqd9Z4DmimJ4X7Iv // SIG // hNdXnFy/dygo8e1twyiPLI9AN0/B4YVEicQJTMXUpUMv // SIG // dJX3bvh4IFgsE11glZo+TzOE2rCIF96eTvSWsLxGoGyY // SIG // 0uDWiIwLAgMBAAGjggHtMIIB6TAQBgkrBgEEAYI3FQEE // SIG // AwIBADAdBgNVHQ4EFgQUSG5k5VAF04KqFzc3IrVtqMp1 // SIG // ApUwGQYJKwYBBAGCNxQCBAweCgBTAHUAYgBDAEEwCwYD // SIG // VR0PBAQDAgGGMA8GA1UdEwEB/wQFMAMBAf8wHwYDVR0j // SIG // BBgwFoAUci06AjGQQ7kUBU7h6qfHMdEjiTQwWgYDVR0f // SIG // BFMwUTBPoE2gS4ZJaHR0cDovL2NybC5taWNyb3NvZnQu // SIG // Y29tL3BraS9jcmwvcHJvZHVjdHMvTWljUm9vQ2VyQXV0 // SIG // MjAxMV8yMDExXzAzXzIyLmNybDBeBggrBgEFBQcBAQRS // SIG // MFAwTgYIKwYBBQUHMAKGQmh0dHA6Ly93d3cubWljcm9z // SIG // b2Z0LmNvbS9wa2kvY2VydHMvTWljUm9vQ2VyQXV0MjAx // SIG // MV8yMDExXzAzXzIyLmNydDCBnwYDVR0gBIGXMIGUMIGR // SIG // BgkrBgEEAYI3LgMwgYMwPwYIKwYBBQUHAgEWM2h0dHA6 // SIG // Ly93d3cubWljcm9zb2Z0LmNvbS9wa2lvcHMvZG9jcy9w // SIG // cmltYXJ5Y3BzLmh0bTBABggrBgEFBQcCAjA0HjIgHQBM // SIG // AGUAZwBhAGwAXwBwAG8AbABpAGMAeQBfAHMAdABhAHQA // SIG // ZQBtAGUAbgB0AC4gHTANBgkqhkiG9w0BAQsFAAOCAgEA // SIG // Z/KGpZjgVHkaLtPYdGcimwuWEeFjkplCln3SeQyQwWVf // SIG // Liw++MNy0W2D/r4/6ArKO79HqaPzadtjvyI1pZddZYSQ // SIG // fYtGUFXYDJJ80hpLHPM8QotS0LD9a+M+By4pm+Y9G6XU // SIG // tR13lDni6WTJRD14eiPzE32mkHSDjfTLJgJGKsKKELuk // SIG // qQUMm+1o+mgulaAqPyprWEljHwlpblqYluSD9MCP80Yr // SIG // 3vw70L01724lruWvJ+3Q3fMOr5kol5hNDj0L8giJ1h/D // SIG // Mhji8MUtzluetEk5CsYKwsatruWy2dsViFFFWDgycSca // SIG // f7H0J/jeLDogaZiyWYlobm+nt3TDQAUGpgEqKD6CPxNN // SIG // ZgvAs0314Y9/HG8VfUWnduVAKmWjw11SYobDHWM2l4bf // SIG // 2vP48hahmifhzaWX0O5dY0HjWwechz4GdwbRBrF1HxS+ // SIG // YWG18NzGGwS+30HHDiju3mUv7Jf2oVyW2ADWoUa9WfOX // SIG // pQlLSBCZgB/QACnFsZulP0V3HjXG0qKin3p6IvpIlR+r // SIG // +0cjgPWe+L9rt0uX4ut1eBrs6jeZeRhL/9azI2h15q/6 // SIG // /IvrC4DqaTuv/DDtBEyO3991bWORPdGdVk5Pv4BXIqF4 // SIG // ETIheu9BCrE/+6jMpF3BoYibV3FWTkhFwELJm3ZbCoBI // SIG // a/15n8G9bW1qyVJzEw16UM0xghoMMIIaCAIBATCBlTB+ // SIG // MQswCQYDVQQGEwJVUzETMBEGA1UECBMKV2FzaGluZ3Rv // SIG // bjEQMA4GA1UEBxMHUmVkbW9uZDEeMBwGA1UEChMVTWlj // SIG // cm9zb2Z0IENvcnBvcmF0aW9uMSgwJgYDVQQDEx9NaWNy // SIG // b3NvZnQgQ29kZSBTaWduaW5nIFBDQSAyMDExAhMzAAAD // SIG // rzBADkyjTQVBAAAAAAOvMA0GCWCGSAFlAwQCAQUAoIGu // SIG // MBkGCSqGSIb3DQEJAzEMBgorBgEEAYI3AgEEMBwGCisG // SIG // AQQBgjcCAQsxDjAMBgorBgEEAYI3AgEVMC8GCSqGSIb3 // SIG // DQEJBDEiBCD86aRsmVHrtGPit0hR9xk5xSNCAw/hx3uZ // SIG // 0Xl4JJpblzBCBgorBgEEAYI3AgEMMTQwMqAUgBIATQBp // SIG // AGMAcgBvAHMAbwBmAHShGoAYaHR0cDovL3d3dy5taWNy // SIG // b3NvZnQuY29tMA0GCSqGSIb3DQEBAQUABIIBAJCvzBYb // SIG // 16JjFesoKvwxdzMzvR8OpTkqz23sDPLJt+JORdoF6uBu // SIG // Z7GuoZBf47EWLdGrk7y4yMq+VfsiPc22jz+wIwul8Fm7 // SIG // FYCPCGVG9lR+sthaoZjMcj3tq0ow6uoDbQwCFG/p1gag // SIG // eACKum2qseCwRHDoPzY35VC6PwL0Paz0iluSBhsoGb7C // SIG // g7K8GBW0HCXxLptKW8aA2CEdzjoDV1sJIMn2L5eGYJTp // SIG // SE7nrBUXZHy/yaCFnOcHwcoC0Z28aVC+BH/x4oSciWvo // SIG // t5qlK8roA48tKGH1wiekopBikGSc1LbXeHp+CzUX4MG+ // SIG // 7IOqG18r/oWkEA9xRzGJ/jtHAsShgheWMIIXkgYKKwYB // SIG // BAGCNwMDATGCF4Iwghd+BgkqhkiG9w0BBwKgghdvMIIX // SIG // awIBAzEPMA0GCWCGSAFlAwQCAQUAMIIBUgYLKoZIhvcN // SIG // AQkQAQSgggFBBIIBPTCCATkCAQEGCisGAQQBhFkKAwEw // SIG // MTANBglghkgBZQMEAgEFAAQgDfUuLWUcGVznv9UJOvGJ // SIG // kH1Y8IuijRNhzA6gyzW/zJoCBmXnp4oNXRgTMjAyNDAz // SIG // MDYwMjM5MDAuNTE2WjAEgAIB9KCB0aSBzjCByzELMAkG // SIG // A1UEBhMCVVMxEzARBgNVBAgTCldhc2hpbmd0b24xEDAO // SIG // BgNVBAcTB1JlZG1vbmQxHjAcBgNVBAoTFU1pY3Jvc29m // SIG // dCBDb3Jwb3JhdGlvbjElMCMGA1UECxMcTWljcm9zb2Z0 // SIG // IEFtZXJpY2EgT3BlcmF0aW9uczEnMCUGA1UECxMeblNo // SIG // aWVsZCBUU1MgRVNOOkE5MzUtMDNFMC1EOTQ3MSUwIwYD // SIG // VQQDExxNaWNyb3NvZnQgVGltZS1TdGFtcCBTZXJ2aWNl // SIG // oIIR7DCCByAwggUIoAMCAQICEzMAAAHpD3Ewfl3xEjYA // SIG // AQAAAekwDQYJKoZIhvcNAQELBQAwfDELMAkGA1UEBhMC // SIG // VVMxEzARBgNVBAgTCldhc2hpbmd0b24xEDAOBgNVBAcT // SIG // B1JlZG1vbmQxHjAcBgNVBAoTFU1pY3Jvc29mdCBDb3Jw // SIG // b3JhdGlvbjEmMCQGA1UEAxMdTWljcm9zb2Z0IFRpbWUt // SIG // U3RhbXAgUENBIDIwMTAwHhcNMjMxMjA2MTg0NTI2WhcN // SIG // MjUwMzA1MTg0NTI2WjCByzELMAkGA1UEBhMCVVMxEzAR // SIG // BgNVBAgTCldhc2hpbmd0b24xEDAOBgNVBAcTB1JlZG1v // SIG // bmQxHjAcBgNVBAoTFU1pY3Jvc29mdCBDb3Jwb3JhdGlv // SIG // bjElMCMGA1UECxMcTWljcm9zb2Z0IEFtZXJpY2EgT3Bl // SIG // cmF0aW9uczEnMCUGA1UECxMeblNoaWVsZCBUU1MgRVNO // SIG // OkE5MzUtMDNFMC1EOTQ3MSUwIwYDVQQDExxNaWNyb3Nv // SIG // ZnQgVGltZS1TdGFtcCBTZXJ2aWNlMIICIjANBgkqhkiG // SIG // 9w0BAQEFAAOCAg8AMIICCgKCAgEArJqMMUEVYKeE0nN5 // SIG // 02usqwDyZ1egO2mWJ08P8sfdLtQ0h/PZ730Dc2/uX5gS // SIG // vKaR++k5ic4x1HCJnfOOQP6b2WOTvDwgbuxqvseV3uqZ // SIG // ULeMcFVFHECE8ZJTmdUZvXyeZ4fIJ8TsWnsxTDONbAyO // SIG // yzKSsCCkDMFw3LWCrwskMupDtrFSwetpBfPdmcHGKYiF // SIG // cdy09Sz3TLdSHkt+SmOTMcpUXU0uxNSaHJd9DYHAYiX6 // SIG // pzHHtOXhIqSLEzuAyJ//07T9Ucee1V37wjvDUgofXcbM // SIG // r54NJVFWPrq6vxvEERaDpf+6DiNEX/EIPt4cmGsh7CPc // SIG // Lbwxxp099Da+Ncc06cNiOmVmiIT8DLuQ73ZBBs1e72E9 // SIG // 7W/bU74mN6bLpdU+Q/d/PwHzS6mp1QibT+Ms9FSQUhlf // SIG // oeumXGlCTsaW0iIyJmjixdfDTo5n9Z8A2rbAaLl1lxSu // SIG // xOUtFS0cqE6gwsRxuJlt5qTUKKTP1NViZ47LFkJbivHm // SIG // /jAypZPRP4TgWCrNin3kOBxu3TnCvsDDmphn8L5CHu3Z // SIG // Mpc5vAXgFEAvC8awEMpIUh8vhWkPdwwJX0GKMGA7cxl6 // SIG // hOsDgE3ihSN9LvWJcQ08wLiwytO93J3TFeKmg93rlwOs // SIG // VDQqM4O64oYh1GjONwJm/RBrkZdNtvsj8HJZspLLJN9G // SIG // uEad7/UCAwEAAaOCAUkwggFFMB0GA1UdDgQWBBSRfjOJ // SIG // xQh2I7iI9Frr/o3I7QfsTjAfBgNVHSMEGDAWgBSfpxVd // SIG // AF5iXYP05dJlpxtTNRnpcjBfBgNVHR8EWDBWMFSgUqBQ // SIG // hk5odHRwOi8vd3d3Lm1pY3Jvc29mdC5jb20vcGtpb3Bz // SIG // L2NybC9NaWNyb3NvZnQlMjBUaW1lLVN0YW1wJTIwUENB // SIG // JTIwMjAxMCgxKS5jcmwwbAYIKwYBBQUHAQEEYDBeMFwG // SIG // CCsGAQUFBzAChlBodHRwOi8vd3d3Lm1pY3Jvc29mdC5j // SIG // b20vcGtpb3BzL2NlcnRzL01pY3Jvc29mdCUyMFRpbWUt // SIG // U3RhbXAlMjBQQ0ElMjAyMDEwKDEpLmNydDAMBgNVHRMB // SIG // Af8EAjAAMBYGA1UdJQEB/wQMMAoGCCsGAQUFBwMIMA4G // SIG // A1UdDwEB/wQEAwIHgDANBgkqhkiG9w0BAQsFAAOCAgEA // SIG // VrEqfq5rMRS3utQBPdCnp9lz4EByQ4kuEmy4b831Ywzw // SIG // 5jnURO+bkKIWIRTHRsBym1ZiytJR1dQKc/x3ImaKMnqA // SIG // L5B0Gh5i4cARpKMgAFcXGmlJxzSFEvS73i9ND8JnEgy4 // SIG // DdFfxcpNtEKRwxLpMCkfJH2gRF/NwMr0M5X/26AzaFih // SIG // IKXQLC/Esws1xS5w6M8wiRqtEc8EIHhAa/BOCtsENlly // SIG // P2ScWUv/ndxXcBuBKwRc81Ikm1dpt8bDD93KgkRQ7SdQ // SIG // t/yZ41zAoZ5vWyww9cGie0z6ecGHb9DpffmjdLdQZjsw // SIG // o/A5qirlMM4AivU47cOSlI2jukI3oB853V/7Wa2O/dnX // SIG // 0QF6+XRqypKbLCB6uq61juD5S9zkvuHIi/5fKZvqDSV1 // SIG // hl2CS+R+izZyslyVRMP9RWzuPhs/lOHxRcbNkvFML6wW // SIG // 2HHFUPTvhZY+8UwHiEybB6bQL0RKgnPv2Mc4SCpAPPEP // SIG // EISSlA7Ws2rSR+2TnYtCwisIKkDuB/NSmRg0i5LRbzUY // SIG // YfGQQHp59aVvuVARmM9hqYHMVVyk9QrlGHZR0fQ+ja1Y // SIG // RqnYRk4OzoP3f/KDJTxt2I7qhcYnYiLKAMNvjISNc16y // SIG // IuereiZCe+SevRfpZIfZsiSaTZMeNbEgdVytoyVoKu1Z // SIG // Qbj9Qbl42d6oMpva9cL9DLUwggdxMIIFWaADAgECAhMz // SIG // AAAAFcXna54Cm0mZAAAAAAAVMA0GCSqGSIb3DQEBCwUA // SIG // MIGIMQswCQYDVQQGEwJVUzETMBEGA1UECBMKV2FzaGlu // SIG // Z3RvbjEQMA4GA1UEBxMHUmVkbW9uZDEeMBwGA1UEChMV // SIG // TWljcm9zb2Z0IENvcnBvcmF0aW9uMTIwMAYDVQQDEylN // SIG // aWNyb3NvZnQgUm9vdCBDZXJ0aWZpY2F0ZSBBdXRob3Jp // SIG // dHkgMjAxMDAeFw0yMTA5MzAxODIyMjVaFw0zMDA5MzAx // SIG // ODMyMjVaMHwxCzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpX // SIG // YXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYD // SIG // VQQKExVNaWNyb3NvZnQgQ29ycG9yYXRpb24xJjAkBgNV // SIG // BAMTHU1pY3Jvc29mdCBUaW1lLVN0YW1wIFBDQSAyMDEw // SIG // MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA // SIG // 5OGmTOe0ciELeaLL1yR5vQ7VgtP97pwHB9KpbE51yMo1 // SIG // V/YBf2xK4OK9uT4XYDP/XE/HZveVU3Fa4n5KWv64NmeF // SIG // RiMMtY0Tz3cywBAY6GB9alKDRLemjkZrBxTzxXb1hlDc // SIG // wUTIcVxRMTegCjhuje3XD9gmU3w5YQJ6xKr9cmmvHaus // SIG // 9ja+NSZk2pg7uhp7M62AW36MEBydUv626GIl3GoPz130 // SIG // /o5Tz9bshVZN7928jaTjkY+yOSxRnOlwaQ3KNi1wjjHI // SIG // NSi947SHJMPgyY9+tVSP3PoFVZhtaDuaRr3tpK56KTes // SIG // y+uDRedGbsoy1cCGMFxPLOJiss254o2I5JasAUq7vnGp // SIG // F1tnYN74kpEeHT39IM9zfUGaRnXNxF803RKJ1v2lIH1+ // SIG // /NmeRd+2ci/bfV+AutuqfjbsNkz2K26oElHovwUDo9Fz // SIG // pk03dJQcNIIP8BDyt0cY7afomXw/TNuvXsLz1dhzPUNO // SIG // wTM5TI4CvEJoLhDqhFFG4tG9ahhaYQFzymeiXtcodgLi // SIG // Mxhy16cg8ML6EgrXY28MyTZki1ugpoMhXV8wdJGUlNi5 // SIG // UPkLiWHzNgY1GIRH29wb0f2y1BzFa/ZcUlFdEtsluq9Q // SIG // BXpsxREdcu+N+VLEhReTwDwV2xo3xwgVGD94q0W29R6H // SIG // XtqPnhZyacaue7e3PmriLq0CAwEAAaOCAd0wggHZMBIG // SIG // CSsGAQQBgjcVAQQFAgMBAAEwIwYJKwYBBAGCNxUCBBYE // SIG // FCqnUv5kxJq+gpE8RjUpzxD/LwTuMB0GA1UdDgQWBBSf // SIG // pxVdAF5iXYP05dJlpxtTNRnpcjBcBgNVHSAEVTBTMFEG // SIG // DCsGAQQBgjdMg30BATBBMD8GCCsGAQUFBwIBFjNodHRw // SIG // Oi8vd3d3Lm1pY3Jvc29mdC5jb20vcGtpb3BzL0RvY3Mv // SIG // UmVwb3NpdG9yeS5odG0wEwYDVR0lBAwwCgYIKwYBBQUH // SIG // AwgwGQYJKwYBBAGCNxQCBAweCgBTAHUAYgBDAEEwCwYD // SIG // VR0PBAQDAgGGMA8GA1UdEwEB/wQFMAMBAf8wHwYDVR0j // SIG // BBgwFoAU1fZWy4/oolxiaNE9lJBb186aGMQwVgYDVR0f // SIG // BE8wTTBLoEmgR4ZFaHR0cDovL2NybC5taWNyb3NvZnQu // SIG // Y29tL3BraS9jcmwvcHJvZHVjdHMvTWljUm9vQ2VyQXV0 // SIG // XzIwMTAtMDYtMjMuY3JsMFoGCCsGAQUFBwEBBE4wTDBK // SIG // BggrBgEFBQcwAoY+aHR0cDovL3d3dy5taWNyb3NvZnQu // SIG // Y29tL3BraS9jZXJ0cy9NaWNSb29DZXJBdXRfMjAxMC0w // SIG // Ni0yMy5jcnQwDQYJKoZIhvcNAQELBQADggIBAJ1Vffwq // SIG // reEsH2cBMSRb4Z5yS/ypb+pcFLY+TkdkeLEGk5c9MTO1 // SIG // OdfCcTY/2mRsfNB1OW27DzHkwo/7bNGhlBgi7ulmZzpT // SIG // Td2YurYeeNg2LpypglYAA7AFvonoaeC6Ce5732pvvinL // SIG // btg/SHUB2RjebYIM9W0jVOR4U3UkV7ndn/OOPcbzaN9l // SIG // 9qRWqveVtihVJ9AkvUCgvxm2EhIRXT0n4ECWOKz3+SmJ // SIG // w7wXsFSFQrP8DJ6LGYnn8AtqgcKBGUIZUnWKNsIdw2Fz // SIG // Lixre24/LAl4FOmRsqlb30mjdAy87JGA0j3mSj5mO0+7 // SIG // hvoyGtmW9I/2kQH2zsZ0/fZMcm8Qq3UwxTSwethQ/gpY // SIG // 3UA8x1RtnWN0SCyxTkctwRQEcb9k+SS+c23Kjgm9swFX // SIG // SVRk2XPXfx5bRAGOWhmRaw2fpCjcZxkoJLo4S5pu+yFU // SIG // a2pFEUep8beuyOiJXk+d0tBMdrVXVAmxaQFEfnyhYWxz // SIG // /gq77EFmPWn9y8FBSX5+k77L+DvktxW/tM4+pTFRhLy/ // SIG // AsGConsXHRWJjXD+57XQKBqJC4822rpM+Zv/Cuk0+CQ1 // SIG // ZyvgDbjmjJnW4SLq8CdCPSWU5nR0W2rRnj7tfqAxM328 // SIG // y+l7vzhwRNGQ8cirOoo6CGJ/2XBjU02N7oJtpQUQwXEG // SIG // ahC0HVUzWLOhcGbyoYIDTzCCAjcCAQEwgfmhgdGkgc4w // SIG // gcsxCzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpXYXNoaW5n // SIG // dG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVN // SIG // aWNyb3NvZnQgQ29ycG9yYXRpb24xJTAjBgNVBAsTHE1p // SIG // Y3Jvc29mdCBBbWVyaWNhIE9wZXJhdGlvbnMxJzAlBgNV // SIG // BAsTHm5TaGllbGQgVFNTIEVTTjpBOTM1LTAzRTAtRDk0 // SIG // NzElMCMGA1UEAxMcTWljcm9zb2Z0IFRpbWUtU3RhbXAg // SIG // U2VydmljZaIjCgEBMAcGBSsOAwIaAxUAq2mH9cQ5NqzJ // SIG // 1P1SaNhhitZ8aPGggYMwgYCkfjB8MQswCQYDVQQGEwJV // SIG // UzETMBEGA1UECBMKV2FzaGluZ3RvbjEQMA4GA1UEBxMH // SIG // UmVkbW9uZDEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBv // SIG // cmF0aW9uMSYwJAYDVQQDEx1NaWNyb3NvZnQgVGltZS1T // SIG // dGFtcCBQQ0EgMjAxMDANBgkqhkiG9w0BAQsFAAIFAOmS // SIG // JgowIhgPMjAyNDAzMDUyMzE1MjJaGA8yMDI0MDMwNjIz // SIG // MTUyMlowdjA8BgorBgEEAYRZCgQBMS4wLDAKAgUA6ZIm // SIG // CgIBADAJAgEAAgEoAgH/MAcCAQACAhOIMAoCBQDpk3eK // SIG // AgEAMDYGCisGAQQBhFkKBAIxKDAmMAwGCisGAQQBhFkK // SIG // AwKgCjAIAgEAAgMHoSChCjAIAgEAAgMBhqAwDQYJKoZI // SIG // hvcNAQELBQADggEBACAymxpmHr8+8oiFGMFrTo0sWb+6 // SIG // V6W9VDsA3+nJWSsPDdxgIQ0KVrSWHGq/GO9qTBYvKY8a // SIG // ZT2r8CPc1S/LeLMiMFQNDDgkpMVMdMWDwepGPpvWhoUx // SIG // 1GbrhryTmyAj555JzhGlf8kyJmdhzMr2haNgks31v9Bm // SIG // DeHscFYqx7FLpSzS/boOFfGG737CpVG6wiR0TtpZKSi+ // SIG // QYHq/SR4ewsGwTDZAnwf5NZh5atqvuPq6vwsGq4EEP8L // SIG // M6KXaPYQW4MbjfWKq7oydjh67ks1Iokwiv1CkdPweLaV // SIG // aCSB0hcEUyzBuE8zAyMjaI8HtHKd9KE9Isa4k4jCvrVI // SIG // kfOK260xggQNMIIECQIBATCBkzB8MQswCQYDVQQGEwJV // SIG // UzETMBEGA1UECBMKV2FzaGluZ3RvbjEQMA4GA1UEBxMH // SIG // UmVkbW9uZDEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBv // SIG // cmF0aW9uMSYwJAYDVQQDEx1NaWNyb3NvZnQgVGltZS1T // SIG // dGFtcCBQQ0EgMjAxMAITMwAAAekPcTB+XfESNgABAAAB // SIG // 6TANBglghkgBZQMEAgEFAKCCAUowGgYJKoZIhvcNAQkD // SIG // MQ0GCyqGSIb3DQEJEAEEMC8GCSqGSIb3DQEJBDEiBCCb // SIG // kQvpOzDaVC0YHDlpC78a61ujXGdGgaMUh89ylfbbijCB // SIG // +gYLKoZIhvcNAQkQAi8xgeowgecwgeQwgb0EIKSQkniX // SIG // aTcmj1TKQWF+x2U4riVorGD8TwmgVbN9qsQlMIGYMIGA // SIG // pH4wfDELMAkGA1UEBhMCVVMxEzARBgNVBAgTCldhc2hp // SIG // bmd0b24xEDAOBgNVBAcTB1JlZG1vbmQxHjAcBgNVBAoT // SIG // FU1pY3Jvc29mdCBDb3Jwb3JhdGlvbjEmMCQGA1UEAxMd // SIG // TWljcm9zb2Z0IFRpbWUtU3RhbXAgUENBIDIwMTACEzMA // SIG // AAHpD3Ewfl3xEjYAAQAAAekwIgQgUCPOVFM/mNO/+2Fa // SIG // WrxViaQAVeWKDlMvh/tZctFgTpwwDQYJKoZIhvcNAQEL // SIG // BQAEggIAX2zh99OyzFwW1yuoO+tNUrXTL2xe2Gz7GfEc // SIG // wSfBnKFsg/T9EiCMXbuvS4sRxjVp580/YTt04mDA0e+w // SIG // ZzwynRqLqCsOMf5w126O4c4rX/5Pyy1vgBDYitajmTtn // SIG // S4+Alr9eVFQEjq9fu+r2G/DzVY15y4RbUEEL6F0Kz78m // SIG // fYevwDBColTCZJqZel5Lp437ZR1aK2x3iBrgHHuTQbT6 // SIG // midBSQX84naraRU+kf9EYO/eR24pTmto3qgmnOVGYDiN // SIG // A8S6etMVSinNIfXrQqz/VPEWmIDwRBuQyr0Yof2itIEK // SIG // +Zu3ZQdlzeStRRMWQpp5ekpvjA3qDc0UtYajBsw1Cb/Z // SIG // bq0dWnDZ5pgKtdNO8JfhrF8/mjprnt2c0xGUrmwNxz2C // SIG // b6j6OswN+I0BgX2Tnt+w6WQpX9//2Uhmshg7xHl/ifMM // SIG // MXAzoM3Ym/J6RpAPuXflbsKOaEwaBo9LtFGU6ARRQdwA // SIG // S0gsj7y9renzwM7cUe2GOko1syPlZIBZLbYMfpcwvB8f // SIG // T9VObB/OVKGBmpvf1xhO0cb358ddXHkQIWKzrHCihL0A // SIG // wylmKNQXajopHPcrqmcBaxw2sBckILueaxudBiFmHNhK // SIG // +PQPNFFqaoKXVRRAvuyaOpXG45DqxTDGzdYgFVQiS+yI // SIG // RzKpSlp9Qs07tGS8n4E7Fm1P9ObCP54= // SIG // End signature block
0
sample_23_0.ps1
# # Module manifest for module 'OCI.PSModules.Analytics' # # Generated by: Oracle Cloud Infrastructure # # @{ # Script module or binary module file associated with this manifest. RootModule = 'assemblies/OCI.PSModules.Analytics.dll' # Version number of this module. ModuleVersion = '80.0.0' # Supported PSEditions CompatiblePSEditions = 'Core' # ID used to uniquely identify this module GUID = '88b806b7-e2b4-4102-95eb-65f27d654438' # Author of this module Author = 'Oracle Cloud Infrastructure' # Company or vendor of this module CompanyName = 'Oracle Corporation' # Copyright statement for this module Copyright = '(c) Oracle Cloud Infrastructure. All rights reserved.' # Description of the functionality provided by this module Description = 'This modules provides Cmdlets for OCI Analytics Service' # Minimum version of the PowerShell engine required by this module PowerShellVersion = '6.0' # Name of the PowerShell host required by this module # PowerShellHostName = '' # Minimum version of the PowerShell host required by this module # PowerShellHostVersion = '' # Minimum version of Microsoft .NET Framework required by this module. This prerequisite is valid for the PowerShell Desktop edition only. # DotNetFrameworkVersion = '' # Minimum version of the common language runtime (CLR) required by this module. This prerequisite is valid for the PowerShell Desktop edition only. # ClrVersion = '' # Processor architecture (None, X86, Amd64) required by this module # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '80.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Analytics.dll' # Script files (.ps1) that are run in the caller's environment prior to importing this module. # ScriptsToProcess = @() # Type files (.ps1xml) to be loaded when importing this module # TypesToProcess = @() # Format files (.ps1xml) to be loaded when importing this module # FormatsToProcess = @() # Modules to import as nested modules of the module specified in RootModule/ModuleToProcess # NestedModules = @() # Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export. FunctionsToExport = '*' # Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export. CmdletsToExport = 'Get-OCIAnalyticsInstance', 'Get-OCIAnalyticsInstancesList', 'Get-OCIAnalyticsPrivateAccessChannel', 'Get-OCIAnalyticsWorkRequest', 'Get-OCIAnalyticsWorkRequestErrorsList', 'Get-OCIAnalyticsWorkRequestLogsList', 'Get-OCIAnalyticsWorkRequestsList', 'Invoke-OCIAnalyticsScaleAnalyticsInstance', 'Invoke-OCIAnalyticsSetKmsKey', 'Move-OCIAnalyticsInstanceCompartment', 'Move-OCIAnalyticsInstanceNetworkEndpoint', 'New-OCIAnalyticsInstance', 'New-OCIAnalyticsPrivateAccessChannel', 'New-OCIAnalyticsVanityUrl', 'Remove-OCIAnalyticsInstance', 'Remove-OCIAnalyticsPrivateAccessChannel', 'Remove-OCIAnalyticsVanityUrl', 'Remove-OCIAnalyticsWorkRequest', 'Start-OCIAnalyticsInstance', 'Stop-OCIAnalyticsInstance', 'Update-OCIAnalyticsInstance', 'Update-OCIAnalyticsPrivateAccessChannel', 'Update-OCIAnalyticsVanityUrl' # Variables to export from this module VariablesToExport = '*' # Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export. AliasesToExport = '*' # DSC resources to export from this module # DscResourcesToExport = @() # List of all modules packaged with this module # ModuleList = @() # List of all files packaged with this module # FileList = @() # Private data to pass to the module specified in RootModule/ModuleToProcess. This may also contain a PSData hashtable with additional module metadata used by PowerShell. PrivateData = @{ PSData = @{ # Tags applied to this module. These help with module discovery in online galleries. Tags = 'PSEdition_Core','Windows','Linux','macOS','Oracle','OCI','Cloud','OracleCloudInfrastructure','Analytics' # A URL to the license for this module. LicenseUri = 'https://github.com/oracle/oci-powershell-modules/blob/master/LICENSE.txt' # A URL to the main website for this project. ProjectUri = 'https://github.com/oracle/oci-powershell-modules/' # A URL to an icon representing this module. IconUri = 'https://github.com/oracle/oci-powershell-modules/blob/master/icon.png' # ReleaseNotes of this module ReleaseNotes = 'https://github.com/oracle/oci-powershell-modules/blob/master/CHANGELOG.md' # Prerelease string of this module # Prerelease = '' # Flag to indicate whether the module requires explicit user acceptance for install/update/save # RequireLicenseAcceptance = $false # External dependent modules of this module # ExternalModuleDependencies = @() } # End of PSData hashtable } # End of PrivateData hashtable # HelpInfo URI of this module # HelpInfoURI = '' # Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix. # DefaultCommandPrefix = '' }
0
3030.ps1
Set-StrictMode -Version Latest InModuleScope Pester { Describe "Should -Throw" { Context "Basic functionality" { It "given scriptblock that throws an exception it passes" { { throw } | Should -Throw } It "given scriptblock that throws an exception is passes - legacy syntax" { { throw } | Should Throw } It "given scriptblock that does not throw an exception it fails" { { { 1 + 1 } | Should -Throw } | Verify-AssertionFailed } It "given scriptblock that does not throw an exception it fails - legacy syntax" { { { 1 + 1 } | Should Throw } | Verify-AssertionFailed } It "throws ArgumentException if null ScriptBlock is provided" { $err = { $null | Should -Throw } | Verify-Throw $err.Exception | Verify-Type ([System.ArgumentException]) } It "throws ArgumentException if null ScriptBlock is provided - legacy syntax" { $err = { $null | Should Throw } | Verify-Throw $err.Exception | Verify-Type ([System.ArgumentException]) } It "returns error when -PassThru is specified" { $err = { throw } | Should -Throw -PassThru $err | Verify-NotNull $err.Exception | Verify-Type ([System.Management.Automation.RuntimeException]) } } Context "Matching error message" { It "given scriptblock that throws exception with the expected message it passes" { $expectedErrorMessage = "expected error message" { throw $expectedErrorMessage } | Should -Throw -ExpectedMessage $expectedErrorMessage } It "given scriptblock that throws exception with the expected message it passes - legacy syntax" { $expectedErrorMessage = "expected error message" { throw $expectedErrorMessage } | Should Throw $expectedErrorMessage } It "given scriptblock that throws exception with the expected message in UPPERCASE it passes" { $expectedErrorMessage = "expected error message" $errorMessage = $expectedErrorMessage.ToUpperInvariant() { throw $errorMessage } | Should -Throw -ExpectedMessage $expectedErrorMessage } It "given scriptblock that throws exception with the expected message in UPPERCASE it passes - legacy syntax" { $expectedErrorMessage = "expected error message" $errorMessage = $expectedErrorMessage.ToUpperInvariant() { throw $errorMessage } | Should Throw $expectedErrorMessage } It "given scriptblock that throws exception with a different message it fails" { $expectedErrorMessage = "expected error message" $unexpectedErrorMessage = "different error message" { { throw $unexpectedErrorMessage } | Should -Throw -ExpectedMessage $expectedErrorMessage } | Verify-AssertionFailed } It "given scriptblock that throws exception with a different message it fails - legacy syntax" { $expectedErrorMessage = "expected error message" $unexpectedErrorMessage = "different error message" { { throw $unexpectedErrorMessage } | Should Throw $expectedErrorMessage } | Verify-AssertionFailed } It "given scriptblock that throws exception with message that contains the expected message it passes" { { throw 'expected error' } | Should -Throw -ExpectedMessage 'error' } It "given scriptblock that throws exception with message that contains the expected message it passes - legacy syntax" { { throw 'expected error' } | Should Throw 'error' } } Context "Matching ErrorId (FullyQualifiedErrorId)" { It "given scriptblock that throws exception with FullyQualifiedErrorId with the expected ErrorId it passes" { $expectedErrorId = "expected error id" $ScriptBlock = { $errorRecord = New-Object System.Management.Automation.ErrorRecord( (New-Object Exception), $expectedErrorId, 'OperationStopped', $null ) throw $errorRecord } $ScriptBlock | Should -Throw -ErrorId $expectedErrorId } It "given scriptblock that throws exception with FullyQualifiedErrorId that contains the expected ErrorId it passes" { $expectedErrorId = "error id" $ScriptBlock = { $errorRecord = New-Object System.Management.Automation.ErrorRecord( (New-Object Exception), "specific error id", 'OperationStopped', $null ) throw $errorRecord } $ScriptBlock | Should -Throw -ErrorId $expectedErrorId } It "given scriptblock that throws exception with FullyQualifiedErrorId that is different from the expected ErrorId it fails" { $unexpectedErrorId = "different error id" $expectedErrorId = "expected error id" $ScriptBlock = { $errorRecord = New-Object System.Management.Automation.ErrorRecord( (New-Object Exception), $unexpectedErrorId, 'OperationStopped', $null ) throw $errorRecord } { $ScriptBlock | Should -Throw -ErrorId $expectedErrorId } | Verify-AssertionFailed } } Context 'Matching exception type' { It "given scriptblock that throws exception with the expected type it passes" { { throw [System.ArgumentException]"message" } | Should -Throw -ExceptionType ([System.ArgumentException]) } It "given scriptblock that throws exception with a sub-type of the expected type it passes" { { throw [ArgumentNullException]"message" } | Should -Throw -ExceptionType ([System.ArgumentException]) } It "given scriptblock that throws errorrecord with the expected exception type it passes" { $ScriptBlock = { $errorRecord = New-Object System.Management.Automation.ErrorRecord( (New-Object System.ArgumentException), "id", 'OperationStopped', $null ) throw $errorRecord } $ScriptBlock | Should -Throw -ExceptionType ([System.ArgumentException]) } It "given scriptblock that throws exception with a different type than the expected type it fails" { { { throw [System.InvalidOperationException]"message" } | Should -Throw -ExceptionType ([System.ArgumentException]) } | Verify-AssertionFailed } It "given scriptblock that throws errorrecord with a different exception type it fails" { $ScriptBlock = { $errorRecord = New-Object System.Management.Automation.ErrorRecord( (New-Object System.InvalidOperationException), "id", 'OperationStopped', $null ) throw $errorRecord } { $ScriptBlock | Should -Throw -ExceptionType ([System.ArgumentException]) } | Verify-AssertionFailed } } Context 'Assertion messages' { It 'returns the correct assertion message when no exception is thrown' { $err = { { } | Should -Throw } | Verify-AssertionFailed $err.Exception.Message | Verify-Equal "Expected an exception, to be thrown, but no exception was thrown." } It 'returns the correct assertion message when type filter is used, but no exception is thrown' { $err = { { } | Should -Throw -ExceptionType ([System.ArgumentException]) } | Verify-AssertionFailed $err.Exception.Message | Verify-Equal "Expected an exception, with type [System.ArgumentException] to be thrown, but no exception was thrown." } It 'returns the correct assertion message when message filter is used, but no exception is thrown' { $err = { { } | Should -Throw -ExpectedMessage 'message' } | Verify-AssertionFailed $err.Exception.Message | Verify-Equal "Expected an exception, with message 'message' to be thrown, but no exception was thrown." } It 'returns the correct assertion message when errorId filter is used, but no exception is thrown' { $err = { { } | Should -Throw -ErrorId 'id' } | Verify-AssertionFailed $err.Exception.Message | Verify-Equal "Expected an exception, with FullyQualifiedErrorId 'id' to be thrown, but no exception was thrown." } It 'returns the correct assertion message when exceptions messages differ' { $testScriptPath = Join-Path $TestDrive.FullName test.ps1 Set-Content -Path $testScriptPath -Value "throw 'error1'" $assertionMessage = "Expected an exception, with message 'error2' to be thrown, but the message was 'error1'. from $err = { { & $testScriptPath } | Should -Throw -ExpectedMessage error2 } | Verify-AssertionFailed $err.Exception.Message -replace "(`r|`n)" -replace '\s+', ' ' -replace '(char:).*$', '$1' | Verify-Equal $assertionMessage } It 'returns the correct assertion message when reason is specified' { $testScriptPath = Join-Path $TestDrive.FullName test.ps1 Set-Content -Path $testScriptPath -Value "throw 'error1'" $assertionMessage = "Expected an exception, with message 'error2' to be thrown, because reason, but the message was 'error1'. from $err = { { & $testScriptPath } | Should -Throw -ExpectedMessage error2 -Because 'reason' } | Verify-AssertionFailed $err.Exception.Message -replace "(`r|`n)" -replace '\s+', ' ' -replace '(char:).*$', '$1' | Verify-Equal $assertionMessage } Context "parameter combintation, returns the correct assertion message" { It "given scriptblock that throws an exception where <notMatching> parameter(s) don't match, it fails with correct assertion message$([System.Environment]::NewLine)actual: id <actualId>, message <actualMess>, type <actualType>$([System.Environment]::NewLine)expected: id <expectedId>, message <expectedMess> type <expectedType>" -TestCases @( @{ actualId = "-id"; actualMess = "+mess"; actualType = ([System.InvalidOperationException]) expectedId = "+id"; expectedMess = "+mess"; expectedType = ([System.InvalidOperationException]) notMatching = 1; assertionMessage = "Expected an exception, with type [System.InvalidOperationException], with message '+mess' and with FullyQualifiedErrorId '+id' to be thrown, but the FullyQualifiedErrorId was '-id'. from } @{ actualId = "-id"; actualMess = "-mess"; actualType = ([System.InvalidOperationException]) expectedId = "+id"; expectedMess = "+mess"; expectedType = ([System.InvalidOperationException]) notMatching = 2; assertionMessage = "Expected an exception, with type [System.InvalidOperationException], with message '+mess' and with FullyQualifiedErrorId '+id' to be thrown, but the message was '-mess' and the FullyQualifiedErrorId was '-id'. from } @{ actualId = "+id"; actualMess = "-mess"; actualType = ([System.ArgumentException]) expectedId = "+id"; expectedMess = "+mess"; expectedType = ([System.InvalidOperationException]) notMatching = 2; assertionMessage = "Expected an exception, with type [System.InvalidOperationException], with message '+mess' and with FullyQualifiedErrorId '+id' to be thrown, but the exception type was [System.ArgumentException] and the message was '-mess'. from } @{ actualId = "-id"; actualMess = "+mess"; actualType = ([System.ArgumentException]) expectedId = "+id"; expectedMess = "+mess"; expectedType = ([System.InvalidOperationException]) notMatching = 2; assertionMessage = "Expected an exception, with type [System.InvalidOperationException], with message '+mess' and with FullyQualifiedErrorId '+id' to be thrown, but the exception type was [System.ArgumentException] and the FullyQualifiedErrorId was '-id'. from } @{ actualId = "-id"; actualMess = "-mess"; actualType = ([System.ArgumentException]) expectedId = "+id"; expectedMess = "+mess"; expectedType = ([System.InvalidOperationException]) notMatching = 3; assertionMessage = "Expected an exception, with type [System.InvalidOperationException], with message '+mess' and with FullyQualifiedErrorId '+id' to be thrown, but the exception type was [System.ArgumentException], the message was '-mess' and the FullyQualifiedErrorId was '-id'. from } ) { param ($actualId, $actualMess, $actualType, $expectedId, $expectedMess, $expectedType, $notMatching, $assertionMessage) $exception = New-Object ($actualType.FullName) $actualMess $errorRecord = New-Object System.Management.Automation.ErrorRecord ( $exception, $actualId, 'OperationStopped', $null ) $testScriptPath = Join-Path $TestDrive.FullName test.ps1 Set-Content -Path $testScriptPath -Value " `$errorRecord = New-Object System.Management.Automation.ErrorRecord( (New-Object $($actualType.FullName) '$actualMess'), '$actualId', 'OperationStopped', `$null ) throw `$errorRecord " $err = { & $testScriptPath } | Verify-Throw $err.FullyQualifiedErrorId | Verify-Equal $actualId $err.Exception | Verify-Type $actualType $err.Exception.Message | Verify-Equal $actualMess $assertionMessage = $assertionMessage -replace " $err = { { & $testScriptPath } | Should -Throw -ExpectedMessage $expectedMess -ErrorId $expectedId -ExceptionType $expectedType } | Verify-AssertionFailed $err.Exception.Message -replace "(`r|`n)" -replace '\s+', ' ' -replace '(char:).*$', '$1' | Verify-Equal $assertionMessage } } } } Describe "Should -Not -Throw" { Context "Basic functionality" { It "given scriptblock that does not throw an exception it passes" { { } | Should -Not -Throw } It "given scriptblock that does not throw an exception it passes - legacy syntax" { { } | Should Not Throw } It "given scriptblock that throws an exception it fails" { { { throw } | Should -Not -Throw } | Verify-AssertionFailed } It "given scriptblock that throws an exception it fails - legacy syntax" { { { throw } | Should Not Throw } | Verify-AssertionFailed } It "given scriptblock that throws an exception it fails, even if the messages match " { { { throw "message" } | Should -Not -Throw -ExpectedMessage "message" } | Verify-AssertionFailed } It "given scriptblock that throws an exception it fails, even if the messages match - legacy syntax" { { { throw "message" } | Should Not Throw "message" } | Verify-AssertionFailed } It "given scriptblock that throws an exception it fails, even if the messages do not match " { { { throw "dummy" } | Should -Not -Throw -ExpectedMessage "message" } | Verify-AssertionFailed } It "given scriptblock that throws an exception it fails, even if the messages do not match - legacy syntax" { { { throw "dummy" } | Should Not Throw "message" } | Verify-AssertionFailed } It "throws ArgumentException if null ScriptBlock is provided" { $err = { $null | Should -Not -Throw } | Verify-Throw $err.Exception | Verify-Type ([System.ArgumentException]) } It "throws ArgumentException if null ScriptBlock is provided - legacy syntax" { $err = { $null | Should Not Throw } | Verify-Throw $err.Exception | Verify-Type ([System.ArgumentException]) } } Context 'Assertion messages' { It 'returns the correct assertion message when an exception is thrown' { $err = { { throw } | Should -Not -Throw -Because 'reason' } | Verify-AssertionFailed write-host ($err.Exception.Message -replace "(.*)", '') $err.Exception.Message -replace "(`r|`n)" -replace '\s+', ' ' -replace ' "ScriptHalted"', '' -replace " from.*" | Verify-Equal "Expected no exception to be thrown, because reason, but an exception was thrown" } } } Describe "Get-DoMessagesMatch" { It "given the same messages it returns true" { $message = "expected" Get-DoValuesMatch $message $message | Verify-True } It "given different messages it returns false" { Get-DoValuesMatch "unexpected" "some expected message" | Verify-False } It "given no expectation it returns true" { Get-DoValuesMatch "any error message" | Verify-True } It "given empty message and no expectation it returns true" { Get-DoValuesMatch "" | Verify-True } It "given empty message and empty expectation it returns true" { Get-DoValuesMatch "" "" | Verify-True } It "given message that contains the expectation it returns true" { Get-DoValuesMatch "this is a long error message" "long error" | Verify-True } } }
0
2479.ps1
function Remove-AzrVirtualMachine { [CmdletBinding(SupportsShouldProcess, ConfirmImpact = 'High')] param ( [Parameter(Mandatory, ValueFromPipelineByPropertyName)] [ValidateNotNullOrEmpty()] [Alias('Name')] [string]$VMName, [Parameter(Mandatory, ValueFromPipelineByPropertyName)] [ValidateNotNullOrEmpty()] [string]$ResourceGroupName, [Parameter()] [pscredential]$Credential, [Parameter()] [ValidateNotNullOrEmpty()] [switch]$Wait ) process { $scriptBlock = { param ($VMName, $ResourceGroupName) $commonParams = @{ 'Name' = $VMName; 'ResourceGroupName' = $ResourceGroupName } $vm = Get-AzVm @commonParams if ($vm.DiagnosticsProfile.bootDiagnostics) { Write-Verbose -Message 'Removing boot diagnostics storage container...' $diagSa = [regex]::match($vm.DiagnosticsProfile.bootDiagnostics.storageUri, '^http[s]?://(.+?)\.').groups[1].value if ($vm.Name.Length -gt 9) { $i = 9 } else { $i = $vm.Name.Length - 1 } $azResourceParams = @{ 'ResourceName' = $VMName 'ResourceType' = 'Microsoft.Compute/virtualMachines' 'ResourceGroupName' = $ResourceGroupName } $vmResource = Get-AzResource @azResourceParams $vmId = $vmResource.Properties.VmId $diagContainerName = ('bootdiagnostics-{0}-{1}' -f $vm.Name.ToLower().Substring(0, $i), $vmId) $diagSaRg = (Get-AzStorageAccount | where { $_.StorageAccountName -eq $diagSa }).ResourceGroupName $saParams = @{ 'ResourceGroupName' = $diagSaRg 'Name' = $diagSa } Get-AzStorageAccount @saParams | Get-AzStorageContainer | where { $_.Name-eq $diagContainerName } | Remove-AzStorageContainer -Force } Write-Verbose -Message 'Removing the Azure VM...' $null = $vm | Remove-AzVM -Force Write-Verbose -Message 'Removing the Azure network interface...' foreach($nicUri in $vm.NetworkProfile.NetworkInterfaces.Id) { $nic = Get-AzNetworkInterface -ResourceGroupName $vm.ResourceGroupName -Name $nicUri.Split('/')[-1] Remove-AzNetworkInterface -Name $nic.Name -ResourceGroupName $vm.ResourceGroupName -Force foreach($ipConfig in $nic.IpConfigurations) { if($ipConfig.PublicIpAddress -ne $null) { Write-Verbose -Message 'Removing the Public IP Address...' Remove-AzPublicIpAddress -ResourceGroupName $vm.ResourceGroupName -Name $ipConfig.PublicIpAddress.Id.Split('/')[-1] -Force } } } Write-Verbose -Message 'Removing OS disk...' if ('Uri' -in $vm.StorageProfile.OSDisk.Vhd) { $osDiskId = $vm.StorageProfile.OSDisk.Vhd.Uri $osDiskContainerName = $osDiskId.Split('/')[-2] $osDiskStorageAcct = Get-AzStorageAccount | where { $_.StorageAccountName -eq $osDiskId.Split('/')[2].Split('.')[0] } $osDiskStorageAcct | Remove-AzStorageBlob -Container $osDiskContainerName -Blob $osDiskId.Split('/')[-1] Write-Verbose -Message 'Removing the OS disk status blob...' $osDiskStorageAcct | Get-AzStorageBlob -Container $osDiskContainerName -Blob "$($vm.Name)*.status" | Remove-AzStorageBlob } else { Get-AzDisk | where { $_.ManagedBy -eq $vm.Id } | Remove-AzDisk -Force } if ('DataDiskNames' -in $vm.PSObject.Properties.Name -and @($vm.DataDiskNames).Count -gt 0) { Write-Verbose -Message 'Removing data disks...' foreach ($uri in $vm.StorageProfile.DataDisks.Vhd.Uri) { $dataDiskStorageAcct = Get-AzStorageAccount -Name $uri.Split('/')[2].Split('.')[0] $dataDiskStorageAcct | Remove-AzStorageBlob -Container $uri.Split('/')[-2] -Blob $uri.Split('/')[-1] } } } if ($Wait.IsPresent) { & $scriptBlock -VMName $VMName -ResourceGroupName $ResourceGroupName } else { $initScript = { $null = Login-AzAccount -Credential $Credential } $jobParams = @{ 'ScriptBlock' = $scriptBlock 'InitializationScript' = $initScript 'ArgumentList' = @($VMName, $ResourceGroupName) 'Name' = "Azure VM $VMName Removal" } Start-Job @jobParams } } }
0
sample_50_45.ps1
# # Module manifest for module 'OCI.PSModules.Ocicontrolcenter' # # Generated by: Oracle Cloud Infrastructure # # @{ # Script module or binary module file associated with this manifest. RootModule = 'assemblies/OCI.PSModules.Ocicontrolcenter.dll' # Version number of this module. ModuleVersion = '77.0.0' # Supported PSEditions CompatiblePSEditions = 'Core' # ID used to uniquely identify this module GUID = 'fc85f17d-35f9-4106-a77a-ccaa291877f6' # Author of this module Author = 'Oracle Cloud Infrastructure' # Company or vendor of this module CompanyName = 'Oracle Corporation' # Copyright statement for this module Copyright = '(c) Oracle Cloud Infrastructure. All rights reserved.' # Description of the functionality provided by this module Description = 'This modules provides Cmdlets for OCI Ocicontrolcenter Service' # Minimum version of the PowerShell engine required by this module PowerShellVersion = '6.0' # Name of the PowerShell host required by this module # PowerShellHostName = '' # Minimum version of the PowerShell host required by this module # PowerShellHostVersion = '' # Minimum version of Microsoft .NET Framework required by this module. This prerequisite is valid for the PowerShell Desktop edition only. # DotNetFrameworkVersion = '' # Minimum version of the common language runtime (CLR) required by this module. This prerequisite is valid for the PowerShell Desktop edition only. # ClrVersion = '' # Processor architecture (None, X86, Amd64) required by this module # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '77.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Ocicontrolcenter.dll' # Script files (.ps1) that are run in the caller's environment prior to importing this module. # ScriptsToProcess = @() # Type files (.ps1xml) to be loaded when importing this module # TypesToProcess = @() # Format files (.ps1xml) to be loaded when importing this module # FormatsToProcess = @() # Modules to import as nested modules of the module specified in RootModule/ModuleToProcess # NestedModules = @() # Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export. FunctionsToExport = '*' # Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export. CmdletsToExport = 'Get-OCIOcicontrolcenterMetricPropertiesList', 'Get-OCIOcicontrolcenterNamespacesList', 'Invoke-OCIOcicontrolcenterRequestSummarizedMetricData' # Variables to export from this module VariablesToExport = '*' # Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export. AliasesToExport = '*' # DSC resources to export from this module # DscResourcesToExport = @() # List of all modules packaged with this module # ModuleList = @() # List of all files packaged with this module # FileList = @() # Private data to pass to the module specified in RootModule/ModuleToProcess. This may also contain a PSData hashtable with additional module metadata used by PowerShell. PrivateData = @{ PSData = @{ # Tags applied to this module. These help with module discovery in online galleries. Tags = 'PSEdition_Core','Windows','Linux','macOS','Oracle','OCI','Cloud','OracleCloudInfrastructure','Ocicontrolcenter' # A URL to the license for this module. LicenseUri = 'https://github.com/oracle/oci-powershell-modules/blob/master/LICENSE.txt' # A URL to the main website for this project. ProjectUri = 'https://github.com/oracle/oci-powershell-modules/' # A URL to an icon representing this module. IconUri = 'https://github.com/oracle/oci-powershell-modules/blob/master/icon.png' # ReleaseNotes of this module ReleaseNotes = 'https://github.com/oracle/oci-powershell-modules/blob/master/CHANGELOG.md' # Prerelease string of this module # Prerelease = '' # Flag to indicate whether the module requires explicit user acceptance for install/update/save # RequireLicenseAcceptance = $false # External dependent modules of this module # ExternalModuleDependencies = @() } # End of PSData hashtable } # End of PrivateData hashtable # HelpInfo URI of this module # HelpInfoURI = '' # Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix. # DefaultCommandPrefix = '' }
0
1808.ps1
Import-Module HelpersCommon function Clean-State { if (Test-Path $FullyQualifiedLink) { Remove-Item $FullyQualifiedLink -Force } if (Test-Path $FullyQualifiedFile) { Remove-Item $FullyQualifiedFile -Force } if ($FullyQualifiedFileInFolder -and (Test-Path $FullyQualifiedFileInFolder)) { Remove-Item $FullyQualifiedFileInFolder -Force } if ($FullyQualifiedSubFolder -and (Test-Path $FullyQualifiedSubFolder)) { Remove-Item $FullyQualifiedSubFolder -Force } if (Test-Path $FullyQualifiedFolder) { Remove-Item $FullyQualifiedFolder -Force } } Describe "New-Item" -Tags "CI" { $tmpDirectory = $TestDrive $testfile = "testfile.txt" $testfolder = "newDirectory" $testsubfolder = "newSubDirectory" $testlink = "testlink" $FullyQualifiedFile = Join-Path -Path $tmpDirectory -ChildPath $testfile $FullyQualifiedFolder = Join-Path -Path $tmpDirectory -ChildPath $testfolder $FullyQualifiedLink = Join-Path -Path $tmpDirectory -ChildPath $testlink $FullyQualifiedSubFolder = Join-Path -Path $FullyQualifiedFolder -ChildPath $testsubfolder $FullyQualifiedFileInFolder = Join-Path -Path $FullyQualifiedFolder -ChildPath $testfile BeforeEach { Clean-State } It "should call the function without error" { { New-Item -Name $testfile -Path $tmpDirectory -ItemType file } | Should -Not -Throw } It "Should create a file without error" { New-Item -Name $testfile -Path $tmpDirectory -ItemType file Test-Path $FullyQualifiedFile | Should -BeTrue $fileInfo = Get-ChildItem $FullyQualifiedFile $fileInfo.Target | Should -BeNullOrEmpty $fileInfo.LinkType | Should -BeNullOrEmpty } It "Should create a folder without an error" { New-Item -Name newDirectory -Path $tmpDirectory -ItemType directory Test-Path $FullyQualifiedFolder | Should -BeTrue } It "Should create a file using the ni alias" { ni -Name $testfile -Path $tmpDirectory -ItemType file Test-Path $FullyQualifiedFile | Should -BeTrue } It "Should create a file using the Type alias instead of ItemType" { New-Item -Name $testfile -Path $tmpDirectory -Type file Test-Path $FullyQualifiedFile | Should -BeTrue } It "Should create a file with sample text inside the file using the Value parameter" { $expected = "This is test string" New-Item -Name $testfile -Path $tmpDirectory -ItemType file -Value $expected Test-Path $FullyQualifiedFile | Should -BeTrue Get-Content $FullyQualifiedFile | Should -Be $expected } It "Should not create a file when the Name parameter is not used and only a directory specified" { New-Item -Path $tmpDirectory -ItemType file -ErrorAction SilentlyContinue Test-Path $FullyQualifiedFile | Should -BeFalse } It "Should create a file when the Name parameter is not used but a fully qualified path is specified" { New-Item -Path $FullyQualifiedFile -ItemType file Test-Path $FullyQualifiedFile | Should -BeTrue } It "Should be able to create a multiple items in different directories" { $FullyQualifiedFile2 = Join-Path -Path $tmpDirectory -ChildPath test2.txt New-Item -ItemType file -Path $FullyQualifiedFile, $FullyQualifiedFile2 Test-Path $FullyQualifiedFile | Should -BeTrue Test-Path $FullyQualifiedFile2 | Should -BeTrue Remove-Item $FullyQualifiedFile2 } It "Should be able to call the whatif switch without error" { { New-Item -Name testfile.txt -Path $tmpDirectory -ItemType file -WhatIf } | Should -Not -Throw } It "Should not create a new file when the whatif switch is used" { New-Item -Name $testfile -Path $tmpDirectory -ItemType file -WhatIf Test-Path $FullyQualifiedFile | Should -BeFalse } It "Should create a hard link of a file without error" { New-Item -Name $testfile -Path $tmpDirectory -ItemType file Test-Path $FullyQualifiedFile | Should -BeTrue New-Item -ItemType HardLink -Target $FullyQualifiedFile -Name $testlink -Path $tmpDirectory Test-Path $FullyQualifiedLink | Should -BeTrue $fileInfo = Get-ChildItem $FullyQualifiedLink $fileInfo.Target | Should -BeNullOrEmpty $fileInfo.LinkType | Should -BeExactly "HardLink" } It "Should create a file at the root of the drive while the current working directory is not the root" { try { New-Item -Name $testfolder -Path "TestDrive:\" -ItemType directory > $null Push-Location -Path "TestDrive:\$testfolder" New-Item -Name $testfile -Path "TestDrive:\" -ItemType file > $null $FullyQualifiedFile | Should -Exist } finally { Pop-Location } } It "Should create a folder at the root of the drive while the current working directory is not the root" { $testfolder2 = "newDirectory2" $FullyQualifiedFolder2 = Join-Path -Path $tmpDirectory -ChildPath $testfolder2 try { New-Item -Name $testfolder -Path "TestDrive:\" -ItemType directory > $null Push-Location -Path "TestDrive:\$testfolder" New-Item -Name $testfolder2 -Path "TestDrive:\" -ItemType directory > $null $FullyQualifiedFolder2 | Should -Exist } finally { Pop-Location } } It "Should create a file in the current directory when using Drive: notation" { try { New-Item -Name $testfolder -Path "TestDrive:\" -ItemType directory > $null Push-Location -Path "TestDrive:\$testfolder" New-Item -Name $testfile -Path "TestDrive:" -ItemType file > $null $FullyQualifiedFileInFolder | Should -Exist } finally { Pop-Location } } It "Should create a folder in the current directory when using Drive: notation" { try { New-Item -Name $testfolder -Path "TestDrive:\" -ItemType directory > $null Push-Location -Path "TestDrive:\$testfolder" New-Item -Name $testsubfolder -Path "TestDrive:" -ItemType file > $null $FullyQualifiedSubFolder | Should -Exist } finally { Pop-Location } } } Describe "New-Item with links" -Tags @('CI', 'RequireAdminOnWindows') { $tmpDirectory = $TestDrive $testfile = "testfile.txt" $testfolder = "newDirectory" $testlink = "testlink" $FullyQualifiedFile = Join-Path -Path $tmpDirectory -ChildPath $testfile $FullyQualifiedFolder = Join-Path -Path $tmpDirectory -ChildPath $testfolder $FullyQualifiedLink = Join-Path -Path $tmpDirectory -ChildPath $testlink $SymLinkMask = [System.IO.FileAttributes]::ReparsePoint $DirLinkMask = $SymLinkMask -bor [System.IO.FileAttributes]::Directory BeforeEach { Clean-State } It "Should create a symbolic link of a file without error" { New-Item -Name $testfile -Path $tmpDirectory -ItemType file Test-Path $FullyQualifiedFile | Should -BeTrue New-Item -ItemType SymbolicLink -Target $FullyQualifiedFile -Name $testlink -Path $tmpDirectory Test-Path $FullyQualifiedLink | Should -BeTrue $fileInfo = Get-ChildItem $FullyQualifiedLink $fileInfo.Target | Should -Match ([regex]::Escape($FullyQualifiedFile)) $fileInfo.LinkType | Should -BeExactly "SymbolicLink" $fileInfo.Attributes -band $DirLinkMask | Should -BeExactly $SymLinkMask } It "Should create a symbolic link to a non-existing file without error" { $target = Join-Path $tmpDirectory "totallyBogusFile" New-Item -ItemType SymbolicLink -Target $target -Name $testlink -Path $tmpDirectory Test-Path $FullyQualifiedLink | Should -BeTrue $fileInfo = Get-ChildItem $FullyQualifiedLink $fileInfo.Target | Should -Be $target Test-Path $fileInfo.Target | Should -BeFalse $fileInfo.LinkType | Should -BeExactly "SymbolicLink" $fileInfo.Attributes -band $DirLinkMask | Should -BeExactly $SymLinkMask } It "Should create a symbolic link to directory without error" { New-Item -Name $testFolder -Path $tmpDirectory -ItemType directory $FullyQualifiedFolder | Should -Exist New-Item -ItemType SymbolicLink -Target $FullyQualifiedFolder -Name $testlink -Path $tmpDirectory Test-Path $FullyQualifiedLink | Should -BeTrue $fileInfo = Get-Item $FullyQualifiedLink $fileInfo.Target | Should -Match ([regex]::Escape($FullyQualifiedFolder)) $fileInfo.LinkType | Should -BeExactly "SymbolicLink" $fileInfo.Attributes -band $DirLinkMask | Should -Be $DirLinkMask Remove-Item $FullyQualifiedLink -Force Test-Path $FullyQualifiedLink | Should -BeFalse } It "New-Item -ItemType SymbolicLink should understand directory path ending with slash" { $folderName = [System.IO.Path]::GetRandomFileName() $symbolicLinkPath = New-Item -ItemType SymbolicLink -Path "$tmpDirectory/$folderName/" -Value "/bar/" $symbolicLinkPath | Should -Not -BeNullOrEmpty } It "New-Item -ItemType SymbolicLink should be able to create a relative link" -Skip:(!$IsWindows) { try { Push-Location $TestDrive $relativeFilePath = Join-Path -Path . -ChildPath "relativefile.txt" $file = New-Item -ItemType File -Path $relativeFilePath $link = New-Item -ItemType SymbolicLink -Path ./link -Target $relativeFilePath $link.Target | Should -BeExactly $relativeFilePath } finally { Pop-Location } } } Describe "New-Item with links fails for non elevated user if developer mode not enabled on Windows." -Tags "CI" { BeforeAll { $testfile = "testfile.txt" $testlink = "testlink" $FullyQualifiedFile = Join-Path -Path $TestDrive -ChildPath $testfile $TestFilePath = Join-Path -Path $TestDrive -ChildPath $testlink $developerModeEnabled = (Get-ItemProperty HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock -ErrorAction SilentlyContinue).AllowDevelopmentWithoutDevLicense -eq 1 $minBuildRequired = [System.Environment]::OSVersion.Version -ge "10.0.14972" $developerMode = $developerModeEnabled -and $minBuildRequired } AfterEach { Remove-Item -Path $testFilePath -Force -ErrorAction SilentlyContinue } It "Should error correctly when failing to create a symbolic link and not in developer mode" -Skip:(!$IsWindows -or $developerMode -or (Test-IsElevated)) { { New-Item -ItemType SymbolicLink -Path $TestFilePath -Target $FullyQualifiedFile -ErrorAction Stop } | Should -Throw -ErrorId "NewItemSymbolicLinkElevationRequired,Microsoft.PowerShell.Commands.NewItemCommand" $TestFilePath | Should -Not -Exist } It "Should succeed to create a symbolic link without elevation and in developer mode" -Skip:(!$IsWindows -or !$developerMode -or (Test-IsElevated)) { { New-Item -ItemType SymbolicLink -Path $TestFilePath -Target $FullyQualifiedFile -ErrorAction Stop } | Should -Not -Throw $TestFilePath | Should -Exist } } Describe "New-Item -Force allows to create an item even if the directories in the path don't exist" -Tags "CI" { BeforeAll { $testFile = 'testfile.txt' $testFolder = 'testfolder' $FullyQualifiedFolder = Join-Path -Path $TestDrive -ChildPath $testFolder $FullyQualifiedFile = Join-Path -Path $TestDrive -ChildPath $testFolder -AdditionalChildPath $testFile } BeforeEach { Remove-Item $FullyQualifiedFolder -ErrorAction SilentlyContinue Remove-Item $FullyQualifiedFile -ErrorAction SilentlyContinue Test-Path -Path $FullyQualifiedFolder | Should -BeFalse Test-Path -Path $FullyQualifiedFile | Should -BeFalse } It "Should error correctly when -Force is not used and folder in the path doesn't exist" { { New-Item $FullyQualifiedFile -ErrorAction Stop } | Should -Throw -ErrorId 'NewItemIOError,Microsoft.PowerShell.Commands.NewItemCommand' $FullyQualifiedFile | Should -Not -Exist } It "Should create new file correctly when -Force is used and folder in the path doesn't exist" { { New-Item $FullyQualifiedFile -Force -ErrorAction Stop } | Should -Not -Throw $FullyQualifiedFile | Should -Exist } }
0
MoveExch2010SP1Archives.ps1
#================================================================================= # MoveArchives.ps1 # # THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY # KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A # PARTICULAR PURPOSE. # # Description: # # # This Script Written By: David Pekmez (http://unifiedit.wordpress.com/) # # Version: 1 # Last Updated: 29/07/2010 #================================================================================= #======================================= # Parameter definition #======================================= Param( [string] $User, [string] $ArchiveDatabase ) If([String]::IsNullOrEmpty($User)) { $User = Ĺ*ĺ } #========================================================================== # Function that returns true if the incoming argument is a help request #========================================================================== function IsHelpRequest { param($argument) return ($argument -eq "-?" -or $argument -eq "-help"); } #=================================================================== # Function that displays the help related to this script following # the same format provided by get-help or <cmdletcall> -? #=================================================================== function Usage { @" NAME: MoveArchives.ps1 SYNOPSIS: Move User's Archive to another Database Exchange 2010 SP1 Requiered SYNTAX: MoveArchives.ps1 `t[-User <UserName>] `t[-ArchiveDatabase <ArchiveDatabaseName>] PARAMETERS: -User (optional) The Username you want the archive to be moved. If not used, all users archives will be moved to the target Database. -ArchiveDatabase (required) The Target Database Name where the archive will be moved -------------------------- EXAMPLE 1 -------------------------- .\\MoveArchives.ps1 -User dpekmez -ArchiveDatabase ArchiveDB1 -------------------------- EXAMPLE 2 -------------------------- .\\MoveArchives.ps1 -ArchiveDatabase ArchiveDB1 "@ } #======================================= # Check for Usage Statement Request #======================================= $args | foreach { if (IsHelpRequest $_) { Usage; exit; } } #============================================== # Function that validates the script parameters #============================================== function ValidateParams { $validInputs = $true $errorString = "" if ($ArchiveDatabase -eq "") { $validInputs = $false $errorString += "`nMissing Parameter: The -ArchiveDatabase parameter is required. Please pass in the desired Target Database Name." } if (!$validInputs) { Write-error "$errorString" } return $validInputs } #============================================== # Move Request #============================================== Get-Mailbox -identity $User | where { $_.ArchiveDatabase -ne $null } | New-MoveRequest -ArchiveTargetDatabase $ArchiveDatabase ľArchiveOnly
0
sample_24_3.ps1
# # Module manifest for module 'OCI.PSModules.Managementagent' # # Generated by: Oracle Cloud Infrastructure # # @{ # Script module or binary module file associated with this manifest. RootModule = 'assemblies/OCI.PSModules.Managementagent.dll' # Version number of this module. ModuleVersion = '80.0.0' # Supported PSEditions CompatiblePSEditions = 'Core' # ID used to uniquely identify this module GUID = '2f5c5edb-5a3f-40c3-bf5b-eb95bc0d12aa' # Author of this module Author = 'Oracle Cloud Infrastructure' # Company or vendor of this module CompanyName = 'Oracle Corporation' # Copyright statement for this module Copyright = '(c) Oracle Cloud Infrastructure. All rights reserved.' # Description of the functionality provided by this module Description = 'This modules provides Cmdlets for OCI Managementagent Service' # Minimum version of the PowerShell engine required by this module PowerShellVersion = '6.0' # Name of the PowerShell host required by this module # PowerShellHostName = '' # Minimum version of the PowerShell host required by this module # PowerShellHostVersion = '' # Minimum version of Microsoft .NET Framework required by this module. This prerequisite is valid for the PowerShell Desktop edition only. # DotNetFrameworkVersion = '' # Minimum version of the common language runtime (CLR) required by this module. This prerequisite is valid for the PowerShell Desktop edition only. # ClrVersion = '' # Processor architecture (None, X86, Amd64) required by this module # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '80.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Managementagent.dll' # Script files (.ps1) that are run in the caller's environment prior to importing this module. # ScriptsToProcess = @() # Type files (.ps1xml) to be loaded when importing this module # TypesToProcess = @() # Format files (.ps1xml) to be loaded when importing this module # FormatsToProcess = @() # Modules to import as nested modules of the module specified in RootModule/ModuleToProcess # NestedModules = @() # Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export. FunctionsToExport = '*' # Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export. CmdletsToExport = 'Get-OCIManagementagent', 'Get-OCIManagementagentAutoUpgradableConfig', 'Get-OCIManagementagentAvailabilityHistoriesList', 'Get-OCIManagementagentDataSource', 'Get-OCIManagementagentDataSourcesList', 'Get-OCIManagementagentImagesList', 'Get-OCIManagementagentInstallKey', 'Get-OCIManagementagentInstallKeyContent', 'Get-OCIManagementagentInstallKeysList', 'Get-OCIManagementagentPluginsList', 'Get-OCIManagementagentsList', 'Get-OCIManagementagentWorkRequest', 'Get-OCIManagementagentWorkRequestErrorsList', 'Get-OCIManagementagentWorkRequestLogsList', 'Get-OCIManagementagentWorkRequestsList', 'Invoke-OCIManagementagentDeployPlugins', 'Invoke-OCIManagementagentSetAutoUpgradableConfig', 'Invoke-OCIManagementagentSummarizeManagementAgentCounts', 'Invoke-OCIManagementagentSummarizeManagementAgentPluginCounts', 'New-OCIManagementagentDataSource', 'New-OCIManagementagentInstallKey', 'Remove-OCIManagementagent', 'Remove-OCIManagementagentDataSource', 'Remove-OCIManagementagentInstallKey', 'Remove-OCIManagementagentWorkRequest', 'Update-OCIManagementagent', 'Update-OCIManagementagentDataSource', 'Update-OCIManagementagentInstallKey' # Variables to export from this module VariablesToExport = '*' # Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export. AliasesToExport = '*' # DSC resources to export from this module # DscResourcesToExport = @() # List of all modules packaged with this module # ModuleList = @() # List of all files packaged with this module # FileList = @() # Private data to pass to the module specified in RootModule/ModuleToProcess. This may also contain a PSData hashtable with additional module metadata used by PowerShell. PrivateData = @{ PSData = @{ # Tags applied to this module. These help with module discovery in online galleries. Tags = 'PSEdition_Core','Windows','Linux','macOS','Oracle','OCI','Cloud','OracleCloudInfrastructure','Managementagent' # A URL to the license for this module. LicenseUri = 'https://github.com/oracle/oci-powershell-modules/blob/master/LICENSE.txt' # A URL to the main website for this project. ProjectUri = 'https://github.com/oracle/oci-powershell-modules/' # A URL to an icon representing this module. IconUri = 'https://github.com/oracle/oci-powershell-modules/blob/master/icon.png' # ReleaseNotes of this module ReleaseNotes = 'https://github.com/oracle/oci-powershell-modules/blob/master/CHANGELOG.md' # Prerelease string of this module # Prerelease = '' # Flag to indicate whether the module requires explicit user acceptance for install/update/save # RequireLicenseAcceptance = $false # External dependent modules of this module # ExternalModuleDependencies = @() } # End of PSData hashtable } # End of PrivateData hashtable # HelpInfo URI of this module # HelpInfoURI = '' # Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix. # DefaultCommandPrefix = '' }
0
1108.ps1
$siteName = 'UnlockIisConfigSection' $windowsAuthWasLocked = $false $windowsAuthConfigPath = 'system.webServer/security/authentication/windowsAuthentication' $cgiConfigPath = 'system.webServer/cgi' function Start-TestFixture { & (Join-Path -Path $PSScriptRoot '..\Initialize-CarbonTest.ps1' -Resolve) } function Start-Test { $windowsAuthWasLocked = Test-IisConfigurationSection -SectionPath $windowsAuthConfigPath -Locked Lock-IisConfigurationSection -SectionPath $windowsAuthConfigPath Assert-True (Test-IisConfigurationSection -SectionPath $windowsAuthConfigPath -Locked) $cgiWasLocked = Test-IisConfigurationSection -SectionPath $cgiConfigPath -Locked Lock-IisConfigurationSection -SectionPath $cgiConfigPath Assert-True (Test-IisConfigurationSection -SectionPath $cgiConfigPath -Locked) } function Stop-Test { if( $windowsAuthWasLocked ) { Lock-IisConfigurationSection -SectionPath $windowsAuthConfigPath } else { Unlock-IisConfigurationSection -SectionPath $windowsAuthConfigPath } if( $cgiWasLocked ) { Lock-IisConfigurationSection -SectionPath $cgiConfigPath } else { Unlock-IisConfigurationSection -SectionPath $cgiConfigPath } $webConfigPath = Join-Path $TestDir web.config if( Test-Path -Path $webConfigPath ) { Remove-Item $webConfigPath } } function Test-ShouldUnlockOneConfigurationSection { Unlock-IisConfigurationSection -SectionPath $windowsAuthConfigPath Assert-False (Test-IisConfigurationSection -SectionPath $windowsAuthConfigPath -Locked) } function Test-ShouldUnlockMultipleConfigurationSection { Unlock-IisConfigurationSection -SectionPath $windowsAuthConfigPath,$cgiConfigPath Assert-False (Test-IisConfigurationSection -SectionPath $windowsAuthConfigPath -Locked) Assert-False (Test-IisConfigurationSection -SectionPath $cgiConfigPath -Locked) } function Test-ShouldSupportWhatIf { Assert-True (Test-IisConfigurationSection -SectionPath $windowsAuthConfigPath -Locked) Unlock-IisConfigurationSection -SectionPath $windowsAuthConfigPath -WhatIf Assert-True (Test-IisConfigurationSection -SectionPath $windowsAuthConfigPath -Locked) }
0
sample_4_51.ps1
#************************************************ #Last Updated Date: 05-24-2012 #Updated By: Alec Yao [email protected] #Description: Add two arguments for the script, called $Prefix and $Suffix. It will allow to custermize the filename #************************************************ PARAM ($NFO = $true, $TXT = $true, $Prefix = '', $Suffix = '') # 2023-02-20 WalterE mod Trap #we# trap [Exception]{ WriteTo-StdOut "$($_.InvocationInfo.ScriptName)($($_.InvocationInfo.ScriptLineNumber)): $_" -shortformat; continue Write-Host "$($_.InvocationInfo.ScriptName)($($_.InvocationInfo.ScriptLineNumber)): $_" } Import-LocalizedData -BindingVariable MSInfoStrings Write-DiagProgress -Activity $MSInfoStrings.ID_MSInfo32 -Status $MSInfoStrings.ID_MSInfo32Running $Process = "msinfo32.exe" $sectionDescription = "System Information" if (test-path (join-path ([Environment]::GetFolderPath("System")) $Process)) { $ProcessPath = "`"" + (join-path ([Environment]::GetFolderPath("System")) $Process) + "`"" } elseif (test-path (join-path ([Environment]::GetFolderPath("CommonProgramFiles")) "Microsoft Shared\MSInfo\$Process")) { $ProcessPath = "`"" + (join-path ([Environment]::GetFolderPath("CommonProgramFiles")) "Microsoft Shared\MSInfo\$Process") + "`"" } else { $ProcessPath = "cmd.exe /c start /wait `"MsInfo`" $Process" } if ($OSVersion.Major -lt 6) #PreVista { $fileToCollect = Join-Path -Path $PWD.Path -ChildPath ($ComputerName + "_" + $Prefix + "msinfo32" + $Suffix) $Arg = "/report `"$fileToCollect.txt`" /nfo `"$fileToCollect.nfo`" /categories +all-SWEnvRunningTasks-SWEnvLoadedModules-SWEnvWindowsError" $fileDescription = "MSInfo32 Report" Runcmd -commandToRun ($ProcessPath + " " + $Arg) -fileDescription $fileDescription -sectionDescription $sectionDescription -filesToCollect ($fileToCollect +".*") -BackgroundExecution } else { $fileToCollect = Join-Path -Path $PWD.Path -ChildPath ($ComputerName + "_" + $Prefix + "msinfo32" + $Suffix + ".txt") $Arg = "/report `"$fileToCollect`"" $fileDescription = "Text Format" if ($TXT) { Runcmd -commandToRun ($ProcessPath + " " + $Arg) -fileDescription $fileDescription -sectionDescription $sectionDescription -filesToCollect $fileToCollect -BackgroundExecution } else { "MSInfo TXT not generated" | WriteTo-StdOut } $fileToCollect = Join-Path -Path $PWD.Path -ChildPath ($ComputerName + "_" + $Prefix + "msinfo32" + $Suffix + ".nfo") $Arg = "/nfo `"$fileToCollect`"" $fileDescription = "NFO Format" if ($NFO) { Runcmd -commandToRun ($ProcessPath + " " + $Arg) -fileDescription $fileDescription -sectionDescription $sectionDescription -filesToCollect $fileToCollect -BackgroundExecution } else { "MSInfo NFO not generated" | WriteTo-StdOut } } # SIG # Begin signature block # MIIoUgYJKoZIhvcNAQcCoIIoQzCCKD8CAQExDzANBglghkgBZQMEAgEFADB5Bgor # BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG # KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCAXiw2egmVpujSC # iUyCKYeP+Xl/nEtk4Dptj5B78yshzqCCDYUwggYDMIID66ADAgECAhMzAAAEA73V # lV0POxitAAAAAAQDMA0GCSqGSIb3DQEBCwUAMH4xCzAJBgNVBAYTAlVTMRMwEQYD # VQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNy # b3NvZnQgQ29ycG9yYXRpb24xKDAmBgNVBAMTH01pY3Jvc29mdCBDb2RlIFNpZ25p # bmcgUENBIDIwMTEwHhcNMjQwOTEyMjAxMTEzWhcNMjUwOTExMjAxMTEzWjB0MQsw # CQYDVQQGEwJVUzETMBEGA1UECBMKV2FzaGluZ3RvbjEQMA4GA1UEBxMHUmVkbW9u # ZDEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMR4wHAYDVQQDExVNaWNy # b3NvZnQgQ29ycG9yYXRpb24wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIB # AQCfdGddwIOnbRYUyg03O3iz19XXZPmuhEmW/5uyEN+8mgxl+HJGeLGBR8YButGV # LVK38RxcVcPYyFGQXcKcxgih4w4y4zJi3GvawLYHlsNExQwz+v0jgY/aejBS2EJY # oUhLVE+UzRihV8ooxoftsmKLb2xb7BoFS6UAo3Zz4afnOdqI7FGoi7g4vx/0MIdi # kwTn5N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ypho06oKkR6fC44b7j9PCpqhvLwruLAtmiy0g1FZ3LDYU63isS5F6cZmNC60 # 5YjD/Vtjp10gcfqFKj5LE+qgE7BTgv5/ppxfRDLnayykhhKCS0JbLTv4I3hnP2Qq # bwmMToq++R0jh3EmbS7Z2L7JrsJPtWfk9272XuyAMS7TdFz25GHynDMhkiBzgpkR # aYllE28G/mIvz6Ghjpwrw1OQAnZ56AuwraugXLn3Nv5W4QxBj975nJyMOuRfcJOA # nQuiBMis+1jYPK93iEIs4mvq6HyKuMybsA/qtJxRHhhnMBV/VRBdljZBcCyVX1z/ # Gf4ze2MZ # SIG # End signature block
0
sample_59_8.ps1
# # Module manifest for module 'OCI.PSModules.Marketplace' # # Generated by: Oracle Cloud Infrastructure # # @{ # Script module or binary module file associated with this manifest. RootModule = 'assemblies/OCI.PSModules.Marketplace.dll' # Version number of this module. ModuleVersion = '83.3.0' # Supported PSEditions CompatiblePSEditions = 'Core' # ID used to uniquely identify this module GUID = 'b7f90e90-3cc1-4fca-9773-f27b90f7945b' # Author of this module Author = 'Oracle Cloud Infrastructure' # Company or vendor of this module CompanyName = 'Oracle Corporation' # Copyright statement for this module Copyright = '(c) Oracle Cloud Infrastructure. All rights reserved.' # Description of the functionality provided by this module Description = 'This modules provides Cmdlets for OCI Marketplace Service' # Minimum version of the PowerShell engine required by this module PowerShellVersion = '6.0' # Name of the PowerShell host required by this module # PowerShellHostName = '' # Minimum version of the PowerShell host required by this module # PowerShellHostVersion = '' # Minimum version of Microsoft .NET Framework required by this module. This prerequisite is valid for the PowerShell Desktop edition only. # DotNetFrameworkVersion = '' # Minimum version of the common language runtime (CLR) required by this module. This prerequisite is valid for the PowerShell Desktop edition only. # ClrVersion = '' # Processor architecture (None, X86, Amd64) required by this module # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '83.3.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Marketplace.dll' # Script files (.ps1) that are run in the caller's environment prior to importing this module. # ScriptsToProcess = @() # Type files (.ps1xml) to be loaded when importing this module # TypesToProcess = @() # Format files (.ps1xml) to be loaded when importing this module # FormatsToProcess = @() # Modules to import as nested modules of the module specified in RootModule/ModuleToProcess # NestedModules = @() # Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export. FunctionsToExport = '*' # Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export. CmdletsToExport = 'Export-OCIMarketplaceListing', 'Get-OCIMarketplaceAcceptedAgreement', 'Get-OCIMarketplaceAcceptedAgreementsList', 'Get-OCIMarketplaceAgreement', 'Get-OCIMarketplaceAgreementsList', 'Get-OCIMarketplaceCategoriesList', 'Get-OCIMarketplaceLaunchEligibility', 'Get-OCIMarketplaceListing', 'Get-OCIMarketplaceListingsList', 'Get-OCIMarketplacePackage', 'Get-OCIMarketplacePackagesList', 'Get-OCIMarketplacePublication', 'Get-OCIMarketplacePublicationPackage', 'Get-OCIMarketplacePublicationPackagesList', 'Get-OCIMarketplacePublicationsList', 'Get-OCIMarketplacePublishersList', 'Get-OCIMarketplaceReportsList', 'Get-OCIMarketplaceReportTypesList', 'Get-OCIMarketplaceTaxesList', 'Get-OCIMarketplaceThirdPartyPaidListingEligibility', 'Get-OCIMarketplaceWorkRequest', 'Get-OCIMarketplaceWorkRequestErrorsList', 'Get-OCIMarketplaceWorkRequestLogsList', 'Get-OCIMarketplaceWorkRequestsList', 'Invoke-OCIMarketplaceSearchListings', 'Move-OCIMarketplacePublicationCompartment', 'New-OCIMarketplaceAcceptedAgreement', 'New-OCIMarketplacePublication', 'Remove-OCIMarketplaceAcceptedAgreement', 'Remove-OCIMarketplacePublication', 'Update-OCIMarketplaceAcceptedAgreement', 'Update-OCIMarketplacePublication' # Variables to export from this module VariablesToExport = '*' # Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export. AliasesToExport = '*' # DSC resources to export from this module # DscResourcesToExport = @() # List of all modules packaged with this module # ModuleList = @() # List of all files packaged with this module # FileList = @() # Private data to pass to the module specified in RootModule/ModuleToProcess. This may also contain a PSData hashtable with additional module metadata used by PowerShell. PrivateData = @{ PSData = @{ # Tags applied to this module. These help with module discovery in online galleries. Tags = 'PSEdition_Core','Windows','Linux','macOS','Oracle','OCI','Cloud','OracleCloudInfrastructure','Marketplace' # A URL to the license for this module. LicenseUri = 'https://github.com/oracle/oci-powershell-modules/blob/master/LICENSE.txt' # A URL to the main website for this project. ProjectUri = 'https://github.com/oracle/oci-powershell-modules/' # A URL to an icon representing this module. IconUri = 'https://github.com/oracle/oci-powershell-modules/blob/master/icon.png' # ReleaseNotes of this module ReleaseNotes = 'https://github.com/oracle/oci-powershell-modules/blob/master/CHANGELOG.md' # Prerelease string of this module # Prerelease = '' # Flag to indicate whether the module requires explicit user acceptance for install/update/save # RequireLicenseAcceptance = $false # External dependent modules of this module # ExternalModuleDependencies = @() } # End of PSData hashtable } # End of PrivateData hashtable # HelpInfo URI of this module # HelpInfoURI = '' # Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix. # DefaultCommandPrefix = '' }
0