filename
stringlengths
5
142
content
stringlengths
2
26M
label
int64
0
1
sample_35_70.ps1
Param ( [Parameter(Mandatory=$true)][string]$installDir, [Parameter(Mandatory=$true)][string]$linkTargetVersion, [Parameter(Mandatory=$true)][string]$latestLinkDir ) $linkName = "latest" if ( Test-Path "$installDir/$latestLinkDir" ){ cd "$installDir/$latestLinkDir" if ((Get-ItemProperty $l...
0
sample_55_26.ps1
# # Module manifest for module 'OCI.PSModules.Ailanguage' # # Generated by: Oracle Cloud Infrastructure # # @{ # Script module or binary module file associated with this manifest. RootModule = 'assemblies/OCI.PSModules.Ailanguage.dll' # Version number of this module. ModuleVersion = '85.1.0' # Supported PSEditions ...
0
sample_7_84.ps1
ConvertFrom-StringData @' id_windowssearchlenovorapidbootcheck_st=The Windows Search service is stopped and the HyperW7Svc64.exe service was detected '@ # SIG # Begin signature block # MIIoUgYJKoZIhvcNAQcCoIIoQzCCKD8CAQExDzANBglghkgBZQMEAgEFADB5Bgor # BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63J...
0
sample_26_91.ps1
; Function queries (function_definition body: (_) @function.inside) @function.around ; Does not include end marker (lambda_expression (_) @function.inside) @function.around ; Scala 3 braceless lambda (colon_argument (_) @function.inside) @function.around ; Class queries (object_definition body: (_)? @clas...
0
sample_44_51.ps1
[CmdletBinding()] param ( [string]$OutFile, [string]$AltDownload, [string]$Proxy, [string]$AltHisEndpoint ) $ErrorActionPreference = 'Stop' $ProgressPreference = 'SilentlyContinue' $refVersion = [version] '4.5' $provider = 'Microsoft.HybridCompute' # Error codes used by azcmagent are ...
0
sample_53_22.ps1
# # Module manifest for module 'OCI.PSModules.Loadbalancer' # # Generated by: Oracle Cloud Infrastructure # # @{ # Script module or binary module file associated with this manifest. RootModule = 'assemblies/OCI.PSModules.Loadbalancer.dll' # Version number of this module. ModuleVersion = '83.1.0' # Supported PSEditi...
0
sample_33_15.ps1
Import-LocalizedData -BindingVariable VvsTxt -FileName AzStackHci.MOCStack.Strings.psd1 function Test-MOCStackVolume { <# .SYNOPSIS Verify if the available free space in the volume, meets the size threshold required by MOCStack during the deployment scenario. .DESCRIPTION Verify if the a...
0
CreateVDS_2.ps1
function CreateVDS( $vdsName, $datacenter, $vmHost, $physicalNic, $portGroupType = "earlyBinding", ` [array]$portGroupNameList = @(),[array]$uplinkList = @() ) { # ------- Create vDS ------- # $vdsCreateSpec = New-Object VMware.Vim.DVSCreateSpec $vdsCreateSpec.configSpec = New-Object VMware.V...
0
1659.ps1
filter ping1 { param ( [Parameter(ValueFromPipeline=$true)] [string[]]$comps = $env:COMPUTERNAME, [int]$n = 1, [switch]$showhost ) begin { $ping = New-Object System.Net.NetworkInformation.Ping } process { if (!$comps) {Throw 'No host provided...
0
sample_58_43.ps1
$ServerCertificateName = "CN=ServiceFabricServerCert" $ClientCertificateName = "CN=ServiceFabricClientCert" function IsSecurityX509([string]$ClusterConfigFilePath) { $jsonConfig = Get-Content $ClusterConfigFilePath -Raw | ConvertFrom-Json $properties = $jsonConfig.properties if ($properties -ne $Nul...
0
sample_50_17.ps1
# # Module manifest for module 'OCI.PSModules.Datalabelingservice' # # Generated by: Oracle Cloud Infrastructure # # @{ # Script module or binary module file associated with this manifest. RootModule = 'assemblies/OCI.PSModules.Datalabelingservice.dll' # Version number of this module. ModuleVersion = '80.0.0' # Sup...
0
Findup_27.ps1
using System; using System.Collections; using System.Collections.Generic; using System.Text; using System.Security.Cryptography; using System.Runtime.InteropServices; using Microsoft.Win32; using System.IO; using System.Text.RegularExpressions; namespace Findup { public class FileLengthComparer : I...
0
3497.ps1
function Write-InstallationCheckToFile { Param($installationchecks) if (Get-Module AzureRM.Profile -ListAvailable -ErrorAction Ignore) { Write-Warning ("Both Az and AzureRM modules were detected on this machine. Az and AzureRM modules cannot be imported in the same session or used in the same script...
0
Boots DataGrid Binding.ps1
#load boots# Import-Module Powerboots function Export-NamedControl { [CmdletBinding()] param( [Parameter(ValueFromPipeline=$true, Position=1, Mandatory=$true)] $Root = $BootsWindow ) process { Invoke-BootsWindow $Root { $control = $BootsWindow while($control) { $control = $...
0
Compile-Help.ps1
# Compile-Help.ps1 # by Jeff Hillman # # this script uses the text and XML PowerShell help files to generate HTML help # for all PowerShell Cmdlets, PSProviders, and "about" topics. the help topics # are compiled into a .chm file using HTML Help Workshop. param( [string] $outDirectory = ".\\PSHelp", [switch] ...
0
2799.ps1
if (Get-Command logparser.exe) { $lpquery = @" SELECT COUNT(Path) as ct, Path FROM *ProcsWMI.tsv GROUP BY Path ORDER BY ct ASC "@ & logparser -stats:off -i:csv -dtlines:0 -fixedsep:on -rtp:-1 "$lpquery" } else { $ScriptName = [System.IO.Path]::GetF...
0
3788.ps1
Param( [Parameter(Mandatory = $true, HelpMessage="Name of the resource group to which the VM belongs to")] [ValidateNotNullOrEmpty()] [string]$resourceGroupName, [Parameter(Mandatory = $true, HelpMessage="Name of the VM")] [ValidateNotNullOrEmpty()] [string]$vmName ) $Verbos...
0
sample_60_81.ps1
#======================================================================================================================================================================= # Copyright (c) Microsoft Corporation. All rights reserved. # # Description: # RemoveMDS.ps1 # Kill all Monitoring processes and clean up tra...
0
sample_2_51.ps1
ConvertFrom-StringData @' id_ctsdhcpclient=DHCP Client id_ctsdhcpclientdescription=Collects information about DHCP Client. '@ # SIG # Begin signature block # MIIoPAYJKoZIhvcNAQcCoIIoLTCCKCkCAQExDzANBglghkgBZQMEAgEFADB5Bgor # BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG # KX7zUQIBAAIBAAIBAAI...
0
sample_45_78.ps1
$ErrorActionPreference = 'Stop' Set-StrictMode -Version Latest $script:GCInstallPath = "$PSScriptRoot\..\..\.." $script:GCBinariesFolderName = "GC" $script:GCBinariesPath = Join-Path $script:GCInstallPath $script:GCBinariesFolderName $script:CleanupExePath = Join-Path $script:GCBinariesPath "em_extension_cleanup...
0
116.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 ($Aa...
0
4073.ps1
[CmdletBinding()] param () $Processor = [string]((Get-WmiObject win32_processor).Caption) $Family = ($Processor.split(" ") | Where-Object { (($_ -notlike "*Intel*") -and ($_ -notlike "*x64*") -and ($_ -notlike "*Intel64*")) })[1] $Model = ($Processor.split(" ") | Where-Object { (($_ -notlike "*Intel*") -and ($_ -not...
0
sample_56_84.ps1
<############################################################# # # # Copyright (C) Microsoft Corporation. All rights reserved. # # # #############################################################> ...
0
powertab patch.ps1
# When in the cert provider - objects returned by gci must be completed by a particular member (not by ToString). # This can be done more generically but for now this is super handy to complete with these types $firstChildType = $childitems[0].GetType() if ($firstChildType -is [Microsoft.Power...
0
sample_63_20.ps1
<############################################################## # # # Copyright (C) Microsoft Corporation. All rights reserved. # # # ##############################################################>...
0
4436.ps1
function Update-ScriptFileInfo { [CmdletBinding(PositionalBinding = $false, DefaultParameterSetName = 'PathParameterSet', SupportsShouldProcess = $true, HelpUri = 'https://go.microsoft.com/fwlink/?LinkId=619793')] Param ( [Parameter(Mandatory = $true, Positio...
0
Get-OwnerReport_1.ps1
############################################################################## ## ## Get-OwnerReport ## ## From Windows PowerShell Cookbook (O'Reilly) ## by Lee Holmes (http://www.leeholmes.com/guide) ## ############################################################################## <# .SYNOPSIS Gets a l...
0
sample_49_44.ps1
{ "$schema": "https://developer.microsoft.com/json-schemas/tsdoc/v0/tsdoc.schema.json", "noStandardTags": false, "tagDefinitions": [ { "tagName": "@module", "syntaxKind": "block" }, { "tagName": "@typedef", "syntaxKind": "block" ...
0
sample_7_77.ps1
#************************************************ # TS_ADReplCheck.ps1 # Version 1.0.2 # Date: 03-23-2011 # Author: Craig Landis - clandis@microsoft.com # Description: This script detects and report AD Replication problems #************************************************ Function GetFailedReplicationStat...
0
sample_4_38.ps1
# Copyright ?008, Microsoft Corporation. All rights reserved. if($debug -eq $true){[void]$shell.popup("Run TS_Virtualization.ps1")} Import-LocalizedData -BindingVariable VirtualizationStrings Write-DiagProgress -Activity $VirtualizationStrings.ID_Virtualization -Status $VirtualizationStrings.ID_Virtualizatio...
0
sample_54_84.ps1
# ---------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # 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 Licen...
0
122.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 ($Aa...
0
sample_16_34.ps1
#************************************************ # TS_SkypeFailureForMissingKB2703761Check.ps1 # Version 1.0.1 # Date: 3/13/2013 # Author: v-blchen # Description: [Idea ID 7499] [Windows] Win8:APP - Skype fails to start # Rule number: 7499 # Rule URL: http://sharepoint/sites/rules/Rule Submissions/Forms/Disp...
0
sample_49_79.ps1
$resourceModuleRoot = Split-Path -Path (Split-Path -Path $PSScriptRoot -Parent) -Parent # Import localization helper functions. $helperName = 'PowerShellGet.LocalizationHelper' $dscResourcesFolderFilePath = Join-Path -Path $resourceModuleRoot -ChildPath "Modules\$helperName\$helperName.psm1" Import-Module -Name $...
0
Impersonation 1.1.ps1
# Version History # 1.1 - Added aliases, error handling, help, and cleanup $MyInvocation.MyCommand.ScriptBlock.Module.OnRemove = { while($script:ImpContextStack.Count) { Pop-ImpersonationContext } } $script:UserToysClass = Add-Type -Namespace Huddled -Name UserToys -MemberDefinition @" // http://msdn....
0
sample_37_47.ps1
<# .SYNOPSIS Script that builds Python from source using the Relative Environment for Python project (relenv): https://github.com/saltstack/relative-environment-for-python .DESCRIPTION This script builds python from Source. It then creates the directory structure as created by the Python installer. This includes all ...
0
3684.ps1
function Test-SynchronizationSettingCrud { $resourceGroup = getAssetName try{ $AccountName = getAssetName $ShareName = getAssetName $Name = getAssetName $RecurrenceInterval = "hour" $SynchronizationTime = "06/19/2019 22:53:33" $createdSetting = New-AzDataShareSynchronizationSetting -AccountNam...
0
3799.ps1
function Log($test, $message) { Out-File -FilePath "$test.log" -Append -InputObject $message } function Test-AEMExtensionBasicWindowsWAD { $rgname = Get-ComputeTestResourceName $loc = Get-ComputeVMLocation try { $vm = Create-AdvancedVM -rgname $rgname -loc $loc ...
0
1883.ps1
Describe "Format-List" -Tags "CI" { $nl = [Environment]::NewLine BeforeEach { $in = New-Object PSObject Add-Member -InputObject $in -MemberType NoteProperty -Name testName -Value testValue } It "Should call format list without error" { { $in | Format-List } | Should -Not -BeNu...
0
sample_30_32.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 = '82.0.0' # Supported PSEditions Co...
0
sample_41_13.ps1
<# .SYNOPSIS SyncShare.psd1 file This is a place-holder module file only for agent patch build purposes #> Write-Host "This module functionality is deprecated and is place-holder only" # SIG # Begin signature block # MIIoLQYJKoZIhvcNAQcCoIIoHjCCKBoCAQExDzANBglghkgBZQMEAgEFADB5Bgor # BgEEAYI3AgEE...
0
sample_49_12.ps1
# # Module manifest for module 'OCI.PSModules.Oda' # # Generated by: Oracle Cloud Infrastructure # # @{ # Script module or binary module file associated with this manifest. RootModule = 'assemblies/OCI.PSModules.Oda.dll' # Version number of this module. ModuleVersion = '83.1.0' # Supported PSEditions CompatiblePSEd...
0
sample_14_1.ps1
@{ GUID="A94C8C7E-9810-47C0-B8AF-65089C13A35A" Author="PowerShell" CompanyName="Microsoft Corporation" Copyright="Copyright (c) Microsoft Corporation." ModuleVersion="7.0.0.0" CompatiblePSEditions = @("Core") PowerShellVersion="3.0" FunctionsToExport = @() CmdletsToExport="Get-Credential", "Get-ExecutionPolicy", "Set-E...
0
sample_16_66.ps1
# # Module manifest for module 'OCI.PSModules.Accessgovernancecp' # # Generated by: Oracle Cloud Infrastructure # # @{ # Script module or binary module file associated with this manifest. RootModule = 'assemblies/OCI.PSModules.Accessgovernancecp.dll' # Version number of this module. ModuleVersion = '73.1.0' # Suppo...
0
CertMgmt pack_4.ps1
##################################################################### # CertMgmtPack.ps1 # Version 0.51 # # Digital certificate management pack # # Vadims Podans (c) 2009 # http://www.sysadmins.lv/ ##################################################################### #requires -Version 2.0 function Import-C...
0
114.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 ($Aa...
0
sample_29_43.ps1
<################################################### # # # Copyright (c) Microsoft. All rights reserved. # # # ##################################################> Import-Module -Name "$PSScriptRoot\..\..\Common\...
0
sample_28_51.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
1222.ps1
& (Join-Path -Path $PSScriptRoot -ChildPath '..\Initialize-CarbonTest.ps1' -Resolve) $shareName = 'CarbonTestFileShare' $sharePath = $null $shareDescription = 'Share for testing Carbon''s Get-FileShare function.' function Start-TestFixture { $sharePath = New-TempDirectory -Prefix $PSCommandPath Ins...
0
sample_25_37.ps1
# ------------------------------------------------------------ # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License (MIT). See License.txt in the repo root for license information. # ------------------------------------------------------------ # Loads all Service Fabric SD...
0
sample_50_36.ps1
# virtualenv activation module # Activate with `overlay use activate.nu` # Deactivate with `deactivate`, as usual # # To customize the overlay name, you can call `overlay use activate.nu as foo`, # but then simply `deactivate` won't work because it is just an alias to hide # the "activate" overlay. You'd need to call `...
0
3537.ps1
$location = "southeastasia" $resourceGroupName = "pstestFSRG1bca8f8e" $vaultName = "PSTestFSRSV1bca8f8e" $fileShareFriendlyName = "pstestfs1bca8f8e" $fileShareName = "AzureFileShare;pstestfs1bca8f8e" $saName = "pstestsa1bca8f8e" $skuName="Standard_LRS" $newPolicyName = "newFilePolicy" functio...
0
sample_11_30.ps1
# *********** Main Flow *********** # Validate AWS configuration Test-AwsConfiguration Write-Log -Message "Starting data connector configuration script" -LogFileName $LogFileName -Severity Verbose Write-Log -Message "This script creates an Assume Role with minimal permissions to grant Azure Sentinel...
0
1595.ps1
function Write-Object { param ( [Parameter( ValueFromPipeline=$True, ValueFromPipelinebyPropertyName=$True)] [object[]]$Object, [string]$Header, [string]$Footer ) if ($input) { $Object = @($input) } if (!$Object) { ...
0
sample_50_90.ps1
# region Generated # ---------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obt...
0
3328.ps1
function Add-RolePermission { [PoshBot.BotCommand( Permissions = 'manage-roles' )] [cmdletbinding()] param( [parameter(Mandatory)] $Bot, [parameter(Mandatory, Position = 0)] [string]$Role, [parameter(Mandatory, Position = 1)] [string]$Permi...
0
sample_51_72.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.apach...
0
sample_40_65.ps1
ConvertFrom-StringData @' ###PSLOC ElevationModeInfo = Powershell running as Administrator. Continuing........ ElevationModeMsg = Running as administrator is required for this operation.Please restart PowerShell as Administrator and retry. ElevationModeErrMsg = This operation requires elevation. PsSessionFail = Un...
0
LibraryPrompt.ps1
##############################################################################\n##\n## From Windows PowerShell Cookbook (O'Reilly)\n## by Lee Holmes (http://www.leeholmes.com/guide)\n##\n##############################################################################\n\nSet-StrictMode -Version Latest\n\nfunction Prompt\n...
0
sample_25_18.ps1
# ---------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # 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 Licen...
0
sample_11_52.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 = '74.1.0' # Sup...
0
sample_30_74.ps1
ConvertFrom-StringData @' EnvironmentErrorAlreadyExists=Una variabile di ambiente dello stesso tipo e con questo nome esiste già. EnvironmentErrorDoesNotExists=Una variabile di ambiente dello stesso tipo e con questo nome non esiste. '@ # SIG # Begin signature block # MIIoLAYJKoZIhvcNAQcCoIIoHTCCKBkCAQExDzANBglg...
0
sample_11_56.ps1
#************************************************ # TS_ClusterValidationTests.ps1 # Version 1.0.1 # Date: 07-24-2009 # Author: Andre Teixeira - andret@microsoft.com # Hacked by Jacques Boulet - jaboulet@microsoft.com - 2019-02-21 # Description: This script is used to obtain cluster validation report. # ...
0
New-TiedVariable.ps1
function New-TiedVariable { #.Synopsis # Creates a ReadOnly variable that recalculates it's value each time it's read #.Description # Create a variable tied to a scriptblock by using a breakpoint ;-) #.Notes # New-TiedVariable uses breakpoints to trigger the automatic recalculation of the variables, so the ...
0
Get-LatestChromium.ps1
$sevenz = 'D:\\u\\7-Zip\\current\\7z.exe' $drops = 'D:\\chromium\\drops' $VerbosePreference = 'Continue' $wc = New-Object Net.WebClient $url = 'http://build.chromium.org/buildbot/snapshots/chromium-rel-xp' Write-Verbose 'Finding the latest build...' $latest = [Int32]$wc.DownloadString("$url/LATEST") if (...
0
2517.ps1
param( $SqlServerOne = 'XSQLUTIL18', $FirstDatabase = 'dbamaint', $SecondDatabase = 'dbamaint', [String[]] $ServerList, $FilePrefix = 'Log', [switch]$Log, [switch]$Column ) $File = $FilePrefix + '{0}-{1}.csv' $Date = (Get-Date -Format ddMMyyyy) $ScriptName = [system.io.path]::GetFilenameWithoutExtension($...
0
3819.ps1
function Test-NewAzureRmVhdVMWithValidDiskFile { $rgname = Get-ComputeTestResourceName try { [string]$loc = Get-ComputeVMLocation; $loc = $loc.Replace(' ', ''); New-AzResourceGroup -Name $rgname -Location $loc -Force; [string]$file = ...
0
sample_7_54.ps1
# Sample diagnostic function # # Wrapped in a region same name as function name # Change the name and code as needed # # You can test your diagnostic function by running xray in developer mode, e.g.: # .\xray.ps1 -Diagnostic net_dnscli_KB4562541_sample -DevMode #region net_dnscli_KB4562541_sample <# Compone...
0
400.ps1
$scriptBlock = { try { $script:___ScriptName = 'PSFramework.Logging' Import-Module (Join-Path ([PSFramework.PSFCore.PSFCoreHost]::ModuleRoot) 'PSFramework.psd1') while ($true) { if ([PSFramework.Runspace.RunspaceHost]::Runspaces[$___ScriptName.ToLower()].State -notlike "Running") { break ...
0
New-Exch2010NlbCluster_1.ps1
########################################################################### # # NAME: New-Exch2010NlbCluster.ps1 # # AUTHOR: Jan Egil Ring # EMAIL: jer@powershell.no # # COMMENT: Script to create a NLB-cluster for the CAS/HUB-roles in Exchange Server 2010. # For more details, see the following blog-pos...
0
Create SP2010 Farm V_1.ps1
############################################################################ ## Create-SPFarm ## V 0.3 ## Jos.Verlinde ############################################################################ Param ( [String] $Farm = "SP2010", [String] $SQLServer = $env:COMPUTERNAME, [String] $Passphrase = "pass@word1"...
0
sample_34_48.ps1
# ------------------------------------------------------------ # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License (MIT). See License.txt in the repo root for license information. # ------------------------------------------------------------ [CmdletBinding(DefaultParamet...
0
ShowUI Text Converter_1.ps1
#Import-Module showui $Windowparam = @{ Width = 500 Height = 400 Title = 'Fun Text Converter' Background = '#C4CBD8' WindowStartupLocation = 'CenterScreen' AsJob = $True } #Create Window New-Window @Windowparam { New-Grid -Rows *,Auto,*,Auto -Children { New-TextBox -Row...
0
sample_7_25.ps1
#************************************************ # DC_MUP-Component.ps1 # Version x # Date: 2014 # Author: Boyd Benson (bbenson@microsoft.com) # Description: Collects information about the MUP components. # (This information has been in the SMB Client output for years, but separating it into its own file now.) ...
0
sample_10_50.ps1
@{ GUID="EEFCB906-B326-4E99-9F54-8B4BB6EF3C6D" Author="PowerShell" CompanyName="Microsoft Corporation" Copyright="Copyright (c) Microsoft Corporation." ModuleVersion="7.0.0.0" CompatiblePSEditions = @("Core") PowerShellVersion="3.0" NestedModules="Microsoft.PowerShell.Commands.Management.dll" HelpInfoURI = 'https://aka...
0
3450.ps1
function Test-LinkedService { $dfname = Get-DataFactoryName $rgname = Get-ResourceGroupName $rglocation = Get-ProviderLocation ResourceManagement $dflocation = Get-ProviderLocation DataFactoryManagement New-AzResourceGroup -Name $rgname -Location $rglocation -Force try ...
0
sample_24_99.ps1
# region Generated # Load the private module dll $null = Import-Module -PassThru -Name (Join-Path $PSScriptRoot '..\bin\Az.ConfidentialLedger.private.dll') # Load the internal module $internalModulePath = Join-Path $PSScriptRoot '..\internal\Az.ConfidentialLedger.internal.psm1' if(Test-Path $internalM...
0
57.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 ($Aa...
0
sample_5_32.ps1
ConvertFrom-StringData @' id_sql_setup_sql_os_debug_registry_keys=OS Debug and Recovery Registry Keys id_sql_setup_sql_os_debug_registry_keys_description=Collecting OS Debug and Recovery Registry Keys '@ # SIG # Begin signature block # MIIoUgYJKoZIhvcNAQcCoIIoQzCCKD8CAQExDzANBglghkgBZQMEAgEFADB5Bgor # BgEEAYI3A...
0
sample_60_39.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
733.ps1
function Get-RsDataSource { [cmdletbinding()] param ( [Alias('ItemPath', 'DataSourcePath')] [Parameter(Mandatory = $True, ValueFromPipeline = $true)] [string[]] $Path, [string] $ReportServerUri, [Alias('ReportServerCredential...
0
sample_12_31.ps1
ConvertFrom-StringData @' id_ex_exbpacmdact=Exchange Support Tool - ExBPA id_ex_exbpacmdstat=Running Exchange Best Practices Analyzer (ExBPA), please wait... id_ex_exbpacmdfiledescription=ExBPA Health Check id_ex_exbpacmdreportsection=Exchange Toolbox '@ # SIG # Begin signature block # MIIoUgYJKoZIhvcNAQcCoIIo...
0
sample_28_99.ps1
/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.47.0(69991d66135e4a1fc1cf0b1ac4ad25d429866a0d) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-------------...
0
Call WSPBuilder_1.ps1
function Run-DosCommand($program, [string[]]$programArgs) { write-host "Running command: $program"; write-host " Args:" 0..($programArgs.Count-1) | foreach { Write-Host " $($_): $($programArgs[$_])" } & $program $programArgs } #Get-FullPath function defined elsewhere, refers to a "base directory" which all...
0
sample_9_38.ps1
ConvertFrom-StringData @' id_servermanagerinfo=Server Manager Information id_servermanagerobtaining=Obtaining Server Manager logs and role information id_servermanageroclist=Optional Components list (oclist) '@ # SIG # Begin signature block # MIIoRgYJKoZIhvcNAQcCoIIoNzCCKDMCAQExDzANBglghkgBZQMEAgEFADB5Bgor # B...
0
sample_19_82.ps1
# # Script module for module 'Az.SecurityInsights' that is executed when 'Az.SecurityInsights' is imported in a PowerShell session. # # Generated by: Microsoft Corporation # # Generated on: 04/23/2024 13:01:43 # $PSDefaultParameterValues.Clear() Set-StrictMode -Version Latest function Test-DotNet { t...
0
sample_38_84.ps1
#!/usr/bin/env pwsh $basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent $exe="" $pathsep=":" $env_node_path=$env:NODE_PATH $new_node_path="C:\Users\abder\component-maker\web\node_modules\.pnpm\autoprefixer@10.4.17_postcss@8.4.33\node_modules\autoprefixer\bin\node_modules;C:\Users\abder\component-maker\web\n...
0
sample_47_27.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
sample_36_29.ps1
##------------------------------------------------------------------ ## <copyright file="NewMultiTenantJsonForObservabilityGMA.ps1" company="Microsoft"> ## Copyright (C) Microsoft. All rights reserved. ## </copyright> ##------------------------------------------------------------------ Param ( [Paramet...
0
sample_54_19.ps1
param ( [string]$Workspace, # [bool]$ModifyAllCaptions = $true [string]$strModifyAllCaptions = "false" ) if ($strModifyAllCaptions -eq "true") { $ModifyAllCaptions = $true } else { $ModifyAllCaptions = $false } $CreateJson = $PSScriptRoot + "\Create-Json.ps1" $ProjectDir = Spl...
0
743.ps1
[CmdletBinding()] param ( [string]$Path, [string]$Version = 'master' ) $localpath = $(Join-Path -Path (Split-Path -Path $profile) -ChildPath '\Modules\ReportingServicesTools') try { if ($Path.length -eq 0) { if ($PSCommandPath.Length -gt 0) { $path = Split-Path $PSCommandPa...
0
sample_7_2.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 = '93.0.0' # Supported...
0
sample_59_65.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_56_29.ps1
# ------------------------------------------------------------ # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License (MIT). See License.txt in the repo root for license information. # ------------------------------------------------------------ # Loads all Service Fabric SD...
0
sample_12_3.ps1
<# .SYNOPSIS Scenario module for collecting machine licensing/activation related data .DESCRIPTION Collect machine licensing/activation related troubleshooting data .NOTES Author : Robert Klemencz Requires : MSRD-Collect.ps1 Version : See MSRD-Collect.ps1 version Feedback : htt...
0
3361.ps1
function Get-AzureRmStorageAccount { [CmdletBinding()] [Alias("Get-AzStorageAccount")] param( [string] [Parameter(Position=0, ValueFromPipelineByPropertyName=$true)] $ResourceGroupName, [string] [Parameter(Position=1, ValueFromPipelineByPropertyName=$true)] [alias("StorageAccountName")] $Name) BEGIN { ...
0
Autoload Module 1.2.ps1
#Requires -Version 2.0 ## Automatically load functions from scripts on-demand, instead of having to dot-source them ahead of time, or reparse them from the script every time. ## Provides significant memory benefits over pre-loading all your functions, and significant performance benefits over using plain scripts. Ca...
0
Get-Parameter function.ps1
function Get-Parameters { param([string]$CommandName, [switch]$IncludeCommon) try { $command = get-command $commandname $parameters = (new-object System.Management.Automation.CommandMetaData $command, $includecommon).Parameters $parameters.getenumerator() # unroll dictionary } catch ...
0
2938.ps1
BuildSetup { $script:sequence += "executing build setup;" } Task default -depends Test-Results Task Test-Results -depends Compile, Test, Deploy { [string]$expected = "executing build setup;Compiling;Testing;Deploying" if ($script:sequence -ne $expected) { throw "Expected sequence '$expected', but ...
0
sample_10_72.ps1
#************************************************ # TS_2K3ProcessorAffinityMaskCheck.ps1 # Version 1.0.1 # Date: 5/16/2012 # Author: v-kaw # Description: [Idea ID 2346] [Windows] high cpu only on one processor # Rule number: 2346 # Rule URL: //sharepoint/sites/rules/Rule%20Submissions/Forms/DispForm.aspx?ID=2...
0