filename
stringlengths
5
142
content
stringlengths
2
26M
label
int64
0
1
sample_18_53.ps1
# # Module manifest for module 'OCI.PSModules.Identity' # # Generated by: Oracle Cloud Infrastructure # # @{ # Script module or binary module file associated with this manifest. RootModule = 'assemblies/OCI.PSModules.Identity.dll' # Version number of this module. ModuleVersion = '75.1.0' # Supported PSEditions Comp...
0
Import-GmailFilterXml.ps1
param ( $Path ) [xml]$flt = Get-Content -Path $Path $title = $flt.feed.title $author = $flt.feed.author.name $output = @() foreach ( $entry in $flt.feed.entry ) { foreach ( $property in $entry.property ) { foreach ($item in $property) { $process = "" | select Id, Updated, Name, Value $process.Id = ...
0
sample_54_38.ps1
import{Z as s}from"./index-DMMxKnLF.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.47.0(69991d66135e4a1fc1cf0b1ac4ad25d429866a0d) * Released under the MIT license * https://github.com/microsoft/monaco-edit...
0
2281.ps1
param( [parameter(Mandatory=$true)] [string]$RBOptionFirst, [parameter(Mandatory=$true)] [string]$RBOptionSecond, [parameter(Mandatory=$true)] [string]$DomainName, [parameter(Mandatory=$true)] [string]$DomainSuffix, [parameter(Mandatory=$true)] [string[]]$LocationList ) function Load-Form { $Form.Controls.AddRang...
0
Get-RecurseMember_2.ps1
function Get-RecurseMember { <# .Synopsis Does a recursive search for unique users that are members of an AD group. .Description Recursively gets a list of unique users that are members of the specified group, expanding any groups that are members out into their member users. Note: Requires the Ques...
0
sample_50_86.ps1
# Copyright (C) Intel Corporation, 2007 - 2019 All Rights Reserved. Function Export-CertForAMT { <# .Synopsis Exports certificates from the Windows Certificate Store for use by the IntelvPro PowerShell Module .Description Exports certificates from the Windows Certificate Store for use by the Intelv...
0
sample_54_45.ps1
########################################################################## # DELL PROPRIETARY INFORMATION # # This software is confidential. Dell Inc., or one of its subsidiaries, has supplied this # software to you under the terms of a license agreement,nondisclosure agreement or both. # You may not copy, disclose, o...
0
sample_55_43.ps1
# # Module manifest for module 'OCI.PSModules.Datasafe' # # Generated by: Oracle Cloud Infrastructure # # @{ # Script module or binary module file associated with this manifest. RootModule = 'assemblies/OCI.PSModules.Datasafe.dll' # Version number of this module. ModuleVersion = '87.0.0' # Supported PSEditions Comp...
0
sample_29_55.ps1
# # Module manifest for module 'ExtensionService' # # Generated by: Microsoft # # Generated on: 04/09/2020 # @{ # Script module or binary module file associated with this manifest. ModuleToProcess = 'ExtensionService.psm1' # Version number of this module. ModuleVersion = '1.0' # ID used to uniquely ...
0
1468.ps1
function Convert-ModuleHelpToHtml { [CmdletBinding()] param( [Parameter(Mandatory=$true)] [string] $ModuleName, [string[]] $Script, [hashtable] $HeadingMap, [Switch] $SkipCommandHelp ) S...
0
614.ps1
param( [string]$Version, [string]$Path, [switch]$Force, [switch]$Update, [switch]$Uninstall ) $Configs = @{ Url = "https://chocolatey.org/install.ps1" ConditionExclusion = "Get-Command `"cinst`" -ErrorAction SilentlyContinue" } $Configs | ForEach-Object{ try{ $_.Result = $null if(-not...
0
1406.ps1
function Test-CTypeDataMember { [CmdletBinding()] [OutputType([bool])] param( [Parameter(Mandatory=$true)] [string] $TypeName, [Parameter(Mandatory=$true)] [string] $MemberName ) Set-StrictMode -Version 'Latest' Use-Calle...
0
104237c9-a8e9-419e-b285-638b60444a56.ps1
# by @bernd_k aka @sqlsulidae http://sqlsulidae.blogspot.com/ # # This is an extension of the script you find at # http://www.sqlmusings.com/2009/08/21/sql-server-powershell-how-to-view-your-ssrs-reports-rdl-using-powershell-and-reportviewer/ # I show ...
0
Test-IPMask_1.ps1
<# .SYNOPSIS Tests for a valid IP mask. .DESCRIPTION The Test-IPMask script validates the input string against all CIDR subnet masks and returns a boolean value. .PARAMETER IPMask The IP mask to be evaluated. .EXAMPLE Test-IPMask 255.255.255.0 Description ----------- Tests if the I...
0
875.ps1
$here = Split-Path -Parent $MyInvocation.MyCommand.Path $sut = (Split-Path -Leaf $MyInvocation.MyCommand.Path) -replace '\.Tests', '' . "$here\$sut" $clusterName = $ENV:ClusterName $httpUserPassword = $ENV:HttpPassword $securePassword = ConvertTo-SecureString $httpUserPassword -AsPlainText -Force $creds = New-Object -...
0
sample_6_35.ps1
# Load Common Library # Load Reporting Utilities #_#$debug = $false . ./utils_cts.ps1 . ./TS_RemoteSetup.ps1 # 2023-02-20 WalterE mod Trap #we# trap [Exception]{ WriteTo-StdOut "$($_.InvocationInfo.ScriptName)($($_.InvocationInfo.ScriptLineNumber)): $_" -shortformat; continue Write-Host "$($_.InvocationIn...
0
530.ps1
function Backup-AllSPWebs{ [CmdletBinding()] param( [Parameter(Position=0, Mandatory=$true)] [String] $Path ) if(-not (Get-PSSnapin "Microsoft.SharePoint.PowerShell" -ErrorAction SilentlyContinue)){Add-PSSnapin "Microsoft.SharePoint.PowerShell"} $SPSites = $SPWebApp | Get-SPsite -Limi...
0
692.ps1
function Get-ItemType { param ( [string]$FileExtension ) switch ($FileExtension) { '.rdl' { return 'Report' } '.rsds' { return 'DataSource' } '.rds' { return 'DataSource' } '.rsd' { return 'DataSet' } '.rsmobile' { return 'MobileReport' } '.p...
0
sample_42_67.ps1
# # Module manifest for module 'OCI.PSModules.Usageapi' # # Generated by: Oracle Cloud Infrastructure # # @{ # Script module or binary module file associated with this manifest. RootModule = 'assemblies/OCI.PSModules.Usageapi.dll' # Version number of this module. ModuleVersion = '83.2.0' # Supported PSEditions Comp...
0
sample_26_47.ps1
# # Module manifest for module 'OCI.PSModules.Fusionapps' # # Generated by: Oracle Cloud Infrastructure # # @{ # Script module or binary module file associated with this manifest. RootModule = 'assemblies/OCI.PSModules.Fusionapps.dll' # Version number of this module. ModuleVersion = '80.0.0' # Supported PSEditions ...
0
322.ps1
function Wait-PSFMessage { [CmdletBinding()] param ( [PSFDateTime] $Timeout = "5m", [switch] $Terminate ) begin { function Test-LogFlushed { [OutputType([bool])] [CmdletBinding()] param ( ) if ([PSFramework.Message.LogHost]::OutQueueLog.Count -gt 0) { return $false ...
0
4a02f944-afe3-4393-b3c2-0d92d77d0b82.ps1
if (Get-Process 'WRemote' -ea SilentlyContinue) { if (Get-Process 'POS2100' -ea -ErrorAction SilentlyContinue) { Write-Host "Restarting WinRemote" Stop-Process -processname WRemote Reset-Tray #Start-Sleep -Second 2 #Invoke-Item C:\\ICOM\\POS2100\\WRemote.exe } else { Write-Ho...
0
BinaryClock V_1.0.ps1
Function Start-BinaryClock { <# .SYNOPSIS This is a binary clock that lists the time in hours, minutes and seconds .DESCRIPTION This is a binary clock that lists the time in hours, minutes and seconds. Key Input Tips: r: Toggles the resize mode of the clock so you can adjust the size....
0
126.ps1
function Get-AuthToken { [cmdletbinding()] param ( [Parameter(Mandatory=$true)] $User ) $userUpn = New-Object "System.Net.Mail.MailAddress" -ArgumentList $User $tenant = $userUpn.Host Write-Host "Checking for AzureAD module..." $AadModule = Get-Module -Name "AzureAD" -ListAvailable if...
0
sample_21_16.ps1
# 2023-02-20 WalterE mod Trap #we# trap [Exception]{ WriteTo-StdOut "$($_.InvocationInfo.ScriptName)($($_.InvocationInfo.ScriptLineNumber)): $_" -shortformat; continue Write-Host "$($_.InvocationInfo.ScriptName)($($_.InvocationInfo.ScriptLineNumber)): $_" } . ./utils_cts.ps1 SkipSecondExecution $EventLogAl...
0
sample_4_9.ps1
# Copyright ?2009, Microsoft Corporation. All rights reserved. # You may use this code and information and create derivative works of it, # provided that the following conditions are met: # 1. This code and information and any derivative works may only be used for # troubleshooting a) Windows and b) products for ...
0
sample_45_58.ps1
# # Module manifest for module 'OCI.PSModules.Identity' # # Generated by: Oracle Cloud Infrastructure # # @{ # Script module or binary module file associated with this manifest. RootModule = 'assemblies/OCI.PSModules.Identity.dll' # Version number of this module. ModuleVersion = '83.2.0' # Supported PSEditions Comp...
0
netcast show downloader_1.ps1
cd M:\\Files\\Netcasts\\ShowName # switch to the diretory to store your content Import-Module BitsTransfer # enable BITS on host machine as a file transfer method $start=47 # start epidode number $end=170 # end epidode number $url="http://download.domain.com/episodes/" # URL of the download up to the ...
0
4101.ps1
Set-Variable -Name RelativePath -Scope Global -Force Set-Variable -Name Title -Scope Global -Force Function InitializeVariables { $Global:RelativePath = (split-path $SCRIPT:MyInvocation.MyCommand.Path -parent) + "\" $Global:Title = "SCCM 2012 R2 Client" } Function Install-EXE { ...
0
sample_58_24.ps1
# # Module manifest for module 'OCI.PSModules.Redis' # # Generated by: Oracle Cloud Infrastructure # # @{ # Script module or binary module file associated with this manifest. RootModule = 'assemblies/OCI.PSModules.Redis.dll' # Version number of this module. ModuleVersion = '85.2.0' # Supported PSEditions Compatible...
0
sample_19_4.ps1
FFFFFFFF 00 F16388ACE371A2400AB0EC90AC8B6716 FFFFFFFE 00 1 FFFFFFFD 00 2 FFFFFFFC 00 3 FFFFFFFB 00 1 00011520 71 System.String System.SR::GetResourceString(System.String) 000115A0 50 System.Resources.ResourceManager System.SR::get_ResourceManager() 000115F0 14 System.String System.SR::get_InvalidOperation_ResourceWrite...
0
Watch-SG2011LeaderBoard.ps1
#requires -Version 2.0 <# .Synopsis Script that will produce table of leaders in a give category. .Description Just some fun with regex/ xml. :) It will grab SG 2011 Leader Board for a given category. Than parse the string, convert it into XML, create custom ...
0
1352.ps1
function Grant-CMsmqMessageQueuePermission { [CmdletBinding(SupportsShouldProcess=$true)] param( [Parameter(Mandatory=$true)] [string] $Name, [Switch] $Private, [Parameter(Mandatory=$true)] [string] ...
0
PowerBoots Gadgets_1.ps1
$gadgetWindow = @{ # Transparency, WindowStyle, and background work together # to get rid of the standard window's chrome and make the window "irregular" shaped # that is, the window will be the shape of it's content. AllowsTransparency = $True WindowStyle = "None" Background = "Transparent" ...
0
sample_17_20.ps1
<############################################################# # # # Copyright (C) Microsoft Corporation. All rights reserved. # # # #############################################################> ...
0
1638.ps1
.Synopsis Force Install Updates on Remote Computer .DESCRIPTION Force Install Updates on Remote Computer using a scheduled task .EXAMPLE I...
0
2458.ps1
function Set-Example { [CmdletBinding()] param ( [Parameter(Mandatory)] [ValidateScript({ Test-Path -Path $_ })] [string]$Path, [Parameter(Mandatory)] [string]$Identity ) DynamicParam { $ParamOptions = @( @{ 'Name' = 'Right'; 'Mandatory' = $true; 'ValidateSetOptions' = ([System.Security.Acces...
0
Invoke-ExecuteTSQL _1.ps1
####################### <# .SYNOPSIS Execute T-SQL Statments and return messages from SQL Server (print). .DESCRIPTION Execute T-SQL Statments and return messages from SQL Server (print). .INPUTS None You cannot pipe objects to Invoke-ExecuteTSQL .OUTPUTS PSObject : Boolean Exitcode = $True or $False in...
0
repr_2.ps1
function repr { [CmdletBinding()] [OutputType([string])] Param( [Parameter(Position=0, Mandatory=$true, ValueFromPipeline=$true)] $InputObject) process { if($null -eq $InputObject) { $PSCmdlet.WriteObject('$null') } elseif($InputObject -is ...
0
sample_48_22.ps1
# Copyright (C) Intel Corporation, 2007 - 2019 All Rights Reserved. function ParseInterval { $args[0] = $args[0].Substring(1) $DatePart = $args[0].Split("T")[0] $TimePart = $args[0].Split("T")[1] $YearPart = "0" $MonthPart = "0" $DayPart = "0" $HourPart = "0" $MinPart = "0" $SecPart ...
0
3514.ps1
function Test-DataLakeAnalyticsComputePolicy { param ( $resourceGroupName = (Get-ResourceGroupName), $accountName = (Get-DataLakeAnalyticsAccountName), $dataLakeAccountName = (Get-DataLakeStoreAccountName), $location = "West US" ) try { New-AzResourceGroup -Name $resourceGroupName -Location $loc...
0
2467.ps1
function Start-Log { [CmdletBinding()] param ( [ValidateScript({ Split-Path $_ -Parent | Test-Path })] [string]$FilePath ) try { if (!(Test-Path $FilePath)) { New-Item $FilePath -Type File | Out-Null } $global:ScriptLogFilePath = $FilePath } catch { Write-Error $_.Exception.Mes...
0
sample_64_77.ps1
Overview This document provides assessments for MS-900T01A Microsoft 365 Fundamentals. The assessment consists of a set of items for each course learning path that can be used throughout the course to monitor student progress and inform your instruction; the assessment items are a mixture of multiple-choice question...
0
2905.ps1
task default -depends Test task Test -depends Compile, Clean -PreAction {"Pre-Test"} -PostAction {"Post-Test"} task Compile -depends Clean { "Compile" } task Clean { "Clean" }
0
sample_0_58.ps1
@Не можна виконати метод, якщо вимкнуто сховище багатьох знімків.fЗапит обмежено. Користувачі ініціювали забагато запитів на оновлення джерела даних за короткий період.ZБракує дозволів на оновлення таблиці Direct Lake. Зверніться до автора цього набору даних.gНеможливо зберегти метадані знімка бази даних. Вона вилучаєт...
0
sample_25_57.ps1
# # Module manifest for module 'OCI.PSModules.Containerengine' # # Generated by: Oracle Cloud Infrastructure # # @{ # Script module or binary module file associated with this manifest. RootModule = 'assemblies/OCI.PSModules.Containerengine.dll' # Version number of this module. ModuleVersion = '74.1.0' # Supported P...
0
sample_35_97.ps1
ConvertFrom-StringData @' FailoverClustersModuleRequired=A szükséges PowerShell-modul (FailoverClusters) nem található. Használja a Szerepkörök és szolgáltatások területen látható eszközt a telepítéshez: Távoli kiszolgálófelügyelet eszközei | Szolgáltatás-felügyeleti eszközök | Feladatátvételi fürtszolgáltatás eszköze...
0
sample_37_46.ps1
# # Module manifest for module 'OCI.PSModules.Waas' # # Generated by: Oracle Cloud Infrastructure # # @{ # Script module or binary module file associated with this manifest. RootModule = 'assemblies/OCI.PSModules.Waas.dll' # Version number of this module. ModuleVersion = '83.1.0' # Supported PSEditions CompatiblePS...
0
3912.ps1
function Test-GetPartner { $partnerId="5127255" $partner = New-AzManagementPartner -PartnerId $partnerId $partner = Get-AzManagementPartner -PartnerId $partnerId Assert-AreEqual $partnerId $partner.PartnerId Assert-NotNull $partner.TenantId Assert-NotNull $partner.ObjectId Asser...
0
sample_58_85.ps1
<linker> <assembly fullname="System.Private.Xml"> <type fullname="System.Xml.LocalAppContextSwitches"> <method signature="System.Boolean get_IsNetworkingEnabledByDefault()" body="stub" value="false" feature="System.Xml.XmlResolver.IsNetworkingEnabledByDefault" featurevalue="false" /> </type> </as...
0
3433.ps1
[CmdletBinding()] Param( [Parameter(Mandatory=$True, Position=0)] [String]$Version, [Parameter(Mandatory=$True, Position=1)] [String]$Release, [Parameter(Mandatory=$False, Position=2)] [String]$Folder ) function SetMsiVersion([string]$FilePath, [string]$MsiVersion) { $wxsPath = Join-Path $FilePath "setup\azurecmd...
0
480.ps1
function Export-PSCredential{ param( [Parameter(Mandatory=$true)] $Credential = (Get-Credential), [Parameter(Mandatory=$false)] [String] $Path ) switch ($Credential.GetType().Name) { PSCredential{ continue } String{ $Credential = Get-Credential -credential $Cr...
0
sample_26_42.ps1
# # Module manifest for module 'OCI.PSModules.Devops' # # Generated by: Oracle Cloud Infrastructure # # @{ # Script module or binary module file associated with this manifest. RootModule = 'assemblies/OCI.PSModules.Devops.dll' # Version number of this module. ModuleVersion = '82.0.0' # Supported PSEditions Compatib...
0
sample_45_21.ps1
# # Module manifest for module 'OCI.PSModules.Healthchecks' # # Generated by: Oracle Cloud Infrastructure # # @{ # Script module or binary module file associated with this manifest. RootModule = 'assemblies/OCI.PSModules.Healthchecks.dll' # Version number of this module. ModuleVersion = '80.0.0' # Supported PSEditi...
0
sample_39_79.ps1
# Copyright (c) Microsoft Corporation. # Licensed under the MIT License. ##################################################################################################### # # Registers the WinRM endpoint for this instance of PowerShell. # # If the parameters '-PowerShellHome' were specified, it means that t...
0
InvokeCSharp.ps1
#< # #.Synopsis @@# Create a class instance and/or invoke a method on C# source code. @@# For details, see: @@# http://vincenth.net/blog/archive/2009/10/27/call-inline-c-from-powershell-with-invokecsharp.aspx #.Description # This function compiles the provided C# source code (only if necessary, compiled ...
0
1046.ps1
& (Join-Path -Path $PSScriptRoot -ChildPath 'Initialize-CarbonTest.ps1' -Resolve) Describe 'Test-PathIsJunction' { function Invoke-TestPathIsJunction($path) { return Test-PathIsJunction $path } BeforeEach { $Global:Error.Clear() } AfterEach { Get-Child...
0
Get-ExcludedCsprojJavasc.ps1
param( $projectDirectoryName = "MyProject" ) $thisDir = Split-Path $MyInvocation.MyCommand.Path $projectDir = "$thisDir/../$projectDirectoryName" $csproj = [xml](cat $projectDir/*.csproj) $csprojScripts = $csproj.Project.ItemGroup.Content.Include | ? {$_ -match '\\.js$'} "$($csprojScripts.length) scrip...
0
4298.ps1
$script:IsWindowsOS = (-not (Get-Variable -Name IsWindows -ErrorAction Ignore)) -or $IsWindows $script:HelpContentExtension = ".zip" if ($script:IsWindowsOS) { $script:HelpContentExtension = ".cab" } $script:ExpectedHelpFile = 'PSModule-help.xml' $script:ExpectedHelpInfoFile = 'PowerShellGet_1d73a601-4a6c-43c...
0
sample_43_43.ps1
# # Module manifest for module 'OCI.PSModules.Fusionapps' # # Generated by: Oracle Cloud Infrastructure # # @{ # Script module or binary module file associated with this manifest. RootModule = 'assemblies/OCI.PSModules.Fusionapps.dll' # Version number of this module. ModuleVersion = '75.1.0' # Supported PSEditions ...
0
3009.ps1
function Mock { [CmdletBinding()] param( [string]$CommandName, [ScriptBlock]$MockWith = { }, [switch]$Verifiable, [ScriptBlock]$ParameterFilter = { $True }, [string]$ModuleName, [string[]]$RemoveParameterType, [string[]]$RemoveParameterValidation ...
0
lazywinadmin.com.ps1
Get-WmiObject Win32_Service -ComputerName . |` where {($_.startmode -like "*auto*") -and ` ($_.state -notlike "*running*")}|` select DisplayName,Name,StartMode,State|ft -AutoSize
0
1348.ps1
function Get-CSslCertificateBinding { [CmdletBinding()] [OutputType([Carbon.Certificates.SslCertificateBinding])] param( [IPAddress] $IPAddress, [UInt16] $Port ) Set-StrictMode -Version 'Latest' Use-CallerPreference -Cmdlet $PS...
0
sample_60_3.ps1
# # Copyright (c) Microsoft Corporation. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE ...
0
sample_24_72.ps1
# # Module manifest for module 'OCI.PSModules.Rover' # # Generated by: Oracle Cloud Infrastructure # # @{ # Script module or binary module file associated with this manifest. RootModule = 'assemblies/OCI.PSModules.Rover.dll' # Version number of this module. ModuleVersion = '75.1.0' # Supported PSEditions Compatible...
0
sample_22_0.ps1
# Copyright (c) Microsoft Corporation. # Licensed under the MIT License. <# .Synopsis Group Policy tools use administrative template files (.admx, .adml) to populate policy settings in the user interface. This allows administrators to manage registry-based policy settings. This script installes Powe...
0
3233.ps1
class ConnectionConfig { [string]$Endpoint [pscredential]$Credential ConnectionConfig() {} ConnectionConfig([string]$Endpoint, [pscredential]$Credential) { $this.Endpoint = $Endpoint $this.Credential = $Credential } }
0
2669.ps1
$configFilePath = "D:\ModernPagesConfig.xlsx" function Add-PnPModernListWebPart() { param( [Parameter(Mandatory)] [ValidateSet("Library", "List")] [String] $WebPartType, [Parameter(Mandatory)] [ValidateScript( { if (-not (Get-PnPClientSidePage $_)) { thr...
0
1147.ps1
function Start-TestFixture { & (Join-Path -Path $PSScriptRoot '..\Initialize-CarbonTest.ps1' -Resolve) } function Test-ShouldCreateDisplayNameProperty { $storeNameValues = [Enum]::GetValues( [Security.Cryptography.X509Certificates.StoreName] ) Get-Item cert:\*\* | ForEach-Object { Asser...
0
sample_34_70.ps1
# # Module manifest for module 'OCI.PSModules.Fleetsoftwareupdate' # # Generated by: Oracle Cloud Infrastructure # # @{ # Script module or binary module file associated with this manifest. RootModule = 'assemblies/OCI.PSModules.Fleetsoftwareupdate.dll' # Version number of this module. ModuleVersion = '83.1.0' # Sup...
0
HEX string to SID string.ps1
Function EndianReverse ($strHex) { $intCounter=$strHex.length-1 do { $reverse=$reverse+$strHex.substring($intCounter-1, 2) $intCounter=$intCounter-2 } until ($intCounter -eq -1) return $reverse } Function hex2sid ($strHex) { $intSidVersionLength = 2 $intSubAuthorityCountLength = 2 $in...
0
sample_61_11.ps1
# ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apa...
0
2783.ps1
if (Get-Command logparser.exe) { $lpquery = @" SELECT COUNT(Protocol, substr(ForeignAddress, 0, last_index_of(substr(ForeignAddress, 0, last_index_of(ForeignAddress, '.')), '.')), State, Component, Process) as Cnt, Protocol, substr(ForeignAddress, 0, la...
0
sample_38_4.ps1
# # Module manifest for module 'PSGet_AzStackHci.EnvironmentChecker' # # Generated by: Microsoft Corporation # # Generated on: 19/01/2022 # @{ # Script module or binary module file associated with this manifest. RootModule = '' # Version number of this module. ModuleVersion = '1.2100.25...
0
sample_14_58.ps1
# # Module manifest for module 'OCI.PSModules.Generativeai' # # Generated by: Oracle Cloud Infrastructure # # @{ # Script module or binary module file associated with this manifest. RootModule = 'assemblies/OCI.PSModules.Generativeai.dll' # Version number of this module. ModuleVersion = '77.0.0' # Supported PSEditi...
0
_CTP3_ Invoke-ISE_1.ps1
Set-Alias ISE Invoke-ISE function Invoke-ISE () <# .SYNOPSIS start ISE from the PS-commandline .DESCRIPTION start ISE provide files as parameters or per pipe-line .NOTES Author : Bernd Kriszio - http://pauerschell.blogspot.com/ Requires : PowerShell V2 CTP3 .EXAMPLE Invoke-ISE $foo...
0
New-FileShare.ps1
Function New-FileShare { #this function returns $True is the share is successfully created Param([string]$computername=$env:computername, [string]$path=$(Throw "You must enter a complete path relative to the remote computer."), [string]$share=$(Throw "You must enter the name of the new share...
0
1492.ps1
function Remove-ItemWithRetry($item, [Switch]$Recurse) { if( -not (Test-Path $item) ) { return } $RecurseParam = if( $Recurse ) { '-Recurse' } else { '' } $numTries = 0 do { if( -not (Test-Path $item) ) { return $true } ...
0
sample_44_29.ps1
########################################################################################## # <copyright file="OM10.CrossPlatform.Start.ps1" company="Microsoft"> # Copyright (c) Microsoft Corporation. All rights reserved. # </copyright> # <summary>OM10.CrossPlatform.Start.ps1 script.</summary> ################...
0
Set-Proxy.ps1
param( [Parameter(Position=0,ValueFromPipeline=$True,ValueFromPipelineByPropertyName=$true)] [alias("Name","ComputerName")] $Computer = @($env:computername), [switch] $ClearProxy ) begin{ $IEsettingsKey = ".DEFAULT\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings" [array]$ProxyResult = @() f...
0
2403.ps1
param ( [Parameter(Mandatory)] [string[]]$Client, [Parameter(Mandatory)] [ValidateNotNullOrEmpty()] [string]$InstallerFilePath ) foreach ($c in $Client) { try { $clientMsg = "The client [$($c)] " if (-not (Test-Connection -ComputerName $c -Quiet -Count 1)) { ...
0
3931.ps1
function Test-NetworkServiceTagsList { $location = Get-ProviderLocation ResourceManagement; try { $results = Get-AzNetworkServiceTag -Location $location; Assert-NotNull $results; Assert-AreEqual $results.Type "Microsoft.Network/serviceTags"; Assert-NotNull $r...
0
sample_65_42.ps1
@{ GUID = 'C46BE3DC-30A9-452F-A5FD-4BF9CA87A854' Author="Microsoft Corporation" CompanyName="Microsoft Corporation" Copyright="Copyright (C) Microsoft Corporation. All rights reserved." ModuleVersion = '1.0' NestedModules = @( 'MSFT_MpComputerStatus.cdxml', 'MSFT_Mp...
0
Compare-Drive_1.ps1
param($ComputerName1,$ComputerName2) $a = gwmi win32_volume -filter "DriveType=3" -computername $ComputerName1 | where {@('Y:','Z:') -notcontains $_.DriveLetter} | select name, @{n='capacity'; e={[math]::truncate($_.Capacity/1GB)}} $b = gwmi win32_volume -filter "DriveType=3" -computername $ComputerName2 | where ...
0
1137.ps1
Set-StrictMode -Version 'Latest' & (Join-Path -Path $PSScriptRoot -ChildPath 'Initialize-CarbonTest.ps1' -Resolve) Describe 'Get-Group' { It 'should get all groups' { $groups = Get-Group try { $groups | Should -Not -BeNullOrEmpty $groups.Length | Should ...
0
Get-VMStorageAdapters.ps1
<# .SYNOPSIS Reports on Fibre Channel Adapters in the ESX hosts for a vCenter environment. .DESCRIPTION This script iterates through each Datacenter,Cluster, and Host in a vCenter environment and then lists the Fibre Channel HBAs that are present. .LINK .EXAMPLE PS> Get-VMStorageAdapters.ps1 -FileName hba.tx...
0
sample_3_81.ps1
"use strict";(self.webpackChunkeasy_dpl=self.webpackChunkeasy_dpl||[]).push([[6475],{96475:(t,e,n)=>{n.r(e),n.d(e,{default:()=>m});var a=n(442),i=n(6679);const r=Object.freeze({displayName:"HTML",injections:{"R:text.html - (comment.block, text.html meta.embedded, meta.tag.*.*.html, meta.tag.*.*.*.html, meta.tag.*.*.*.*...
0
sample_23_96.ps1
define({"orrespo":{"correspondência":[238,240,241,242,247,252,255,256,257,258,261,262,263,264,483,498,500,502,505],"corresponda":[240,303,579],"corresponde":[240,358,359,381,401,474,582,626],"correspondido":[240],"correspondam":[339,441],},"orrespon":{"correspondentes":[40,238,241,407,415,418,419,421,614],"corresponden...
0
ConvertTo-Module.ps1
function ConvertTo-Module { <# .SYNOPSIS Quickly convert a .NET type's static methods into functions .DESCRIPTION Quickly convert a .NET type's static methods into functions. This function returns a PSModuleInfo, so you should pipe its output to Import-Module to use the exported f...
0
3432.ps1
[CmdletBinding(DefaultParameterSetName="ReleaseAz")] Param( [Parameter(ParameterSetName='ReleaseAz', Mandatory = $true)] [string]$Release, [Parameter(ParameterSetName='ReleaseSingleModule', Mandatory = $true)] [string]$ModuleName, [Parameter()] [string]$GalleryName = "PSGallery" ) enum PSVe...
0
sample_14_53.ps1
# # Module manifest for module 'OperationsManagerV10Module' # # Generated by: Microsoft Corporation # # Generated on: 10/22/2008 # @{ # These modules will be processed when the module manifest is loaded. ModuleToProcess = 'OperationsManager.psm1' # This GUID is used to uniquely identify this module. GU...
0
sample_40_84.ps1
const debug = ( typeof process === 'object' && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ) ? (...args) => console.error('SEMVER', ...args) : () => {} module.exports = debug // SIG // Begin signature block // SIG // MIIoQAYJKoZIhvcNAQcCoIIoMTCCKC0CAQExDzANBglg // ...
0
sample_58_35.ps1
Describe "Test-EngineLibrary" { It "Calls Get-Date" { {Get-Date} | Should Not Throw } } # SIG # Begin signature block # MIInvwYJKoZIhvcNAQcCoIInsDCCJ6wCAQExDzANBglghkgBZQMEAgEFADB5Bgor # BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG # KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFl...
0
PS2WCF_7.ps1
<# .SYNOPSIS Functions to call WCF Services With PowerShell. .NOTES Version 1.2 11.02.2012 Requires Powershell v2 and .NET 3.5 Copyright (c) 2008 Christian Glessner Copyright (c) 2012 Justin Dearing Permission is hereby granted, free of charge, to any person obtaining a copy of this software an...
0
sample_47_6.ps1
# # Module manifest for module 'Az.ElasticSan' # # Generated by: Microsoft Corporation # # Generated on: 23/04/2024 # @{ # Script module or binary module file associated with this manifest. RootModule = 'Az.ElasticSan.psm1' # Version number of this module. ModuleVersion = '1.0.2' # Supported PSEditi...
0
Out-DataTable_4.ps1
####################### function Get-Type { param($type) $types = @( 'System.Boolean', 'System.Byte[]', 'System.Byte', 'System.Char', 'System.Datetime', 'System.Decimal', 'System.Double', 'System.Guid', 'System.Int16', 'System.Int32', 'System.Int64', 'System.Single', 'System.UInt16', 'System.UIn...
0
4368.ps1
function Publish-NugetPackage { [CmdletBinding()] Param( [Parameter(Mandatory = $true)] [string]$NupkgPath, [Parameter(Mandatory = $true)] [string]$Destination, [Parameter(Mandatory = $true)] [string]$NugetApiKey, [Parameter(ParameterSetName = "UseNuget...
0
Paraimpu.ps1
# This requires JSON 1.7 ( http://poshcode.org/2930 ) and the HttpRest ( http://poshcode.org/2097 ) modules # It's a first draft at Paraimpu cmdlets # I'm not sure yet that using Paraimpu with my Chumby gets me what I want, since it only shows one item and can't go back to old ones. # # YOU SHOULD SET THE $Token ...
0
731.ps1
function Set-RsItemDataSource { [cmdletbinding()] param ( [Alias('ItemPath', 'DataSourcePath', 'Path')] [Parameter(Mandatory = $True, ValueFromPipeline = $true)] [string] $RsItem, [Parameter(Mandatory = $True)] $DataSource, [string] ...
0
2960.ps1
properties { $buildOutputPath = ".\bin\$buildConfiguration" } task default -depends DoRelease task DoRelease { Assert ("$buildConfiguration" -ne $null) "buildConfiguration should not have been null" Assert ("$buildConfiguration" -eq 'Release') "buildConfiguration=[$buildConfiguration] should have been 'Re...
0