filename
stringlengths
5
142
content
stringlengths
2
26M
label
int64
0
1
sample_15_88.ps1
# # Module manifest for module 'OCI.PSModules.Databasetools' # # Generated by: Oracle Cloud Infrastructure # # @{ # Script module or binary module file associated with this manifest. RootModule = 'assemblies/OCI.PSModules.Databasetools.dll' # Version number of this module. ModuleVersion = '75.1.0' # Supported PSEdi...
0
4472.ps1
$configFile = [System.IO.Path]::ChangeExtension($MyInvocation.MyCommand.Path, 'json') if (Test-Path -Path $configFile) { $ConfigurationData = Get-Content -Path $configFile | ConvertFrom-Json } else { $ConfigurationData = @{ AllNodes = @( @{ NodeName ...
0
3151.ps1
$EncodedCompressedFile = @' 7b0HYBxJliUmL23Ke39K9UrX4HShCIBgEyTYkEAQ7MGIzeaS7B1pRyMpqyqBymVWZV1mFkDM7Z28995777333nvvvfe6O51OJ/ff/z9cZmQBbPbOStrJniGAqsgfP358Hz8ivvipP+nX+LV/jV/j1/h16P//9//9a/waf9evIc/vqT83PX8Q/f83+V3+nt/k1/jbfuyf/13/rl/z+T//u76ZF026qquLOluk02y5rNp0kqf1epkWy/Tpl6/TRTXLx7/xb5z8bgrj5emv8Ws8/zV/7V/j8uKnf2...
0
sample_9_32.ps1
# # # Rule to check TurnOffFetchThrottling registry key # # http://support.microsoft.com/kb/911510 # http://msdn.microsoft.com/en-us/library/aa682811.aspx # # Created: 05/24/2012 # Author: Jonathan Randall #****************************************************************************************************...
0
sample_16_58.ps1
ConvertFrom-StringData @' IPAddressDisplayNameFormat=IP Adresi: {0} NetworkNameDisplayNameFormat=Ad: {0} NetworkNameOfflineDisplayNameFormat=IP Adresi: "{0}" üzerindeki adres CreateClusterProgressValidationStart=Yük devretme kümesi için sunucuların uygunluğu doğrulanıyor. CreateClusterProgressValidationEnd=Yük dev...
0
3193.ps1
function Get-InstalledSoftware { param ( [Parameter( Position = 0, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true, ValueFromRemainingArguments=$false )] [ValidateNotNullOrEmpty()] [Alias('CN','__SERVER','Server','Compu...
0
repr.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
AD Recycle Bin - Restore.ps1
' Script: Create_Restore.vbs ' Purpose: This script will graphically create a Powershell script based on user input, the powershell script can be run to restore deleted AD Objects ' Author: Paperclips ' Email: magiconion_M@hotmail.com ' Date: Feb 2011 ' Comments: Creating a ps1 script to rest...
0
FS_FindFiles_1.ps1
Param ( [string[]]$Computers=$env:ComputerName, [string[]] $Paths = @("C:\\Windows","C:\\Windows\\system32"), [string[]] $FileNames = @("fsb.tmp","fsb.stb","notpad.exe") ) $Global:objOut = @() Function FindFiles ($Computer, $Filter){ try{ $Files = Gwmi -namespace "root\\CIMV2" -computername $Computer...
0
676.ps1
$reportServerUri = if ($env:PesterServerUrl -eq $null) { 'http://localhost/reportserver' } else { $env:PesterServerUrl } Describe "Set-RsItemDataSource" { $rsFolderPath = '' $datasourcesReportPath = '' BeforeEach { $folderName = 'SUT_OutRsRestCatalogItem_' + [guid]::NewGuid() ...
0
SMS.psm1.ps1
# SystemsManagementServer.psm1 # written by Tojo2000 <tojo2000@tojo2000.com> # Last updated on 20080921 # # Functions for getting data from MS Systems Management Server. # Set default server and site name here. It should be the server with the SMS # Provider, not necessarily the site server. [string]$def...
0
sample_32_89.ps1
# # Module manifest for module 'DscInstall' # # Generated by: Zia Jalali # # Generated on: 07/31/2017 # @{ # Script module or binary module file associated with this manifest. ModuleToProcess = 'Heartbeat.psm1' # Version number of this module. ModuleVersion = '1.1' # ID used to uniquely identify thi...
0
2989.ps1
Set-StrictMode -Version Latest Describe 'Clean handling of break and continue' { Context 'Break' { break } Context 'Continue' { continue } It 'Did not abort the whole test run' { $null = $null } }
0
sample_4_68.ps1
# # Module manifest for module 'OCI.PSModules.Generativeaiagentruntime' # # Generated by: Oracle Cloud Infrastructure # # @{ # Script module or binary module file associated with this manifest. RootModule = 'assemblies/OCI.PSModules.Generativeaiagentruntime.dll' # Version number of this module. ModuleVersion = '92.1...
0
2834.ps1
function WriteTaskTimeSummary($invokePsakeDuration) { if ($psake.context.count -gt 0) { $currentContext = $psake.context.Peek() if ($currentContext.config.taskNameFormat -is [ScriptBlock]) { & $currentContext.config.taskNameFormat "Build Time Report" } elseif ($currentContext.con...
0
Get-LocalGroupAllMembers.ps1
# ############################################################################# # NAME: FUNCTION-Get-LocalGroupAllMembers.ps1 # # AUTHOR: Francois-Xavier Cat # DATE: 2012/12/27 # EMAIL: fxcat@lazywinadmin.com # WEBSITE: LazyWinAdmin.com # TWiTTER: @lazywinadm # # COMMENT: The following functions will ...
0
2353.ps1
$error.PSBase.Clear() $aRegRoots = @('HKCU\Software','HKLM\System','HKLM\Software'); $aGpos = Get-Gpo -All; $aUniqueSettings = @(); $aUniqueDups = @(); function findRegValues($sName,$sId,$sKeyPath,$aKeyPathHistory = $null) { $aPath = Get-GPRegistryValue -GUID $sId -Key $sKeyPath -ErrorAction 'silentlycontinue' $aK...
0
Get-UcsServerVlan.ps1
function Get-UcsServerVlan { Get-UcsServiceProfile | Foreach-Object { $sp = $_ $sp | Get-UcsVnic | Foreach-Object { $vn = $_ $vn | Get-UcsVnicInterface | Foreach-Object { $output = New-Object psobject –property @{ Server = $sp.Name ...
0
Get-PipeLineObject_2.ps1
# For TabExpansion.ps1 # this requires latest TabExpansion.ps1 in a same directory function Get-PipeLineObject { $i = -2 $property = $null do { $str = $line.Split("|") # extract the command name from the string # first split the string into statements and pipeline elements ...
0
3881.ps1
function Test-DataSourceCreateUpdateDelete { $wsname = Get-ResourceName $dsName = Get-ResourceName $rgname = Get-ResourceGroupName $subId1 = "0b88dfdb-55b3-4fb0-b474-5b6dcbe6b2ef" $subId2 = "bc8edd8f-a09f-499d-978d-6b5ed2f84852" $wslocation = Get-ProviderLocation New-AzResour...
0
1410.ps1
function Get-CWmiLocalUserAccount { [CmdletBinding(SupportsShouldProcess=$true)] param( [Parameter(Mandatory=$true)] [ValidateLength(0,20)] [string] $Username ) Set-StrictMode -Version 'Latest' Use-CallerPreference -Cmdlet $PSCmdlet -Session $Exec...
0
3382.ps1
[CmdletBinding()] param( [Parameter(Mandatory=$true)] [string]$TestExecPath, [Parameter(Mandatory=$false)] [string]$ModuleFilter ) $dirPath = (Join-Path $PSScriptRoot -ChildPath '..') $artPath = (Join-Path $dirPath 'artifacts') $srcPath = (Join-Path $dirPath -ChildPath 'src') $libPath = (Join-Path...
0
sample_39_84.ps1
# # Module manifest for module 'OCI.PSModules.Events' # # Generated by: Oracle Cloud Infrastructure # # @{ # Script module or binary module file associated with this manifest. RootModule = 'assemblies/OCI.PSModules.Events.dll' # Version number of this module. ModuleVersion = '74.1.0' # Supported PSEditions Compatib...
0
sample_28_26.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
Test-UserCredential.ps1
function Test-UserCredential { [CmdletBinding()] [OutputType([System.Boolean])] param( [Parameter(Mandatory=$true)] [ValidateNotNullOrEmpty()] [System.String] $Username, [Parameter(Mandatory=$true)] [ValidateNotNullOrEmpty()] [System.String] $Password, [Parameter()] [Switch] $Domain ) ...
0
Add -__ Get-Help -Full.ps1
$executionContext.SessionState.InvokeCommand.PostCommandLookupAction = { param($CommandName, $CommandLookupEventArgs) # Only for interactive commands (and that doesn't include "prompt") # I should exclude out-default so we don't handle it on every pipeline, but ... if($CommandLookupEventArgs.Comma...
0
3249.ps1
class ConfigProvidedParameter { [PoshBot.FromConfig]$Metadata [System.Management.Automation.ParameterMetadata]$Parameter ConfigProvidedParameter([PoshBot.FromConfig]$Meta, [System.Management.Automation.ParameterMetadata]$Param) { $this.Metadata = $Meta $this.Parameter = $param } }
0
Get-Lotterynumbers.ps1
########################################################################### # # NAME: Get-Lotterynumbers.ps1 # # AUTHOR: Jan Egil Ring # EMAIL: jer@powershell.no # # COMMENT: Generates lottery numbers based on user input. # # You have a royalty-free right to use, modify, reproduce, and # distribute this scrip...
0
Start-Encryption_3.ps1
## Start-Encryption ################################################################################################## ## Rijndael symmetric key encryption ... with no passes on the key. Very lazy. ## USAGE: ## $encrypted = Encrypt-String "Oisin Grehan is a genius" "P@ssw0rd" ## Decrypt-String $encrypted "P@ssw0rd...
0
sample_24_9.ps1
function PSConsoleHostReadLine { Microsoft.PowerShell.Core\Set-StrictMode -Off [Microsoft.PowerShell.PSConsoleReadLine]::ReadLine($host.Runspace, $ExecutionContext) } # SIG # Begin signature block # MIIoKgYJKoZIhvcNAQcCoIIoGzCCKBcCAQExDzANBglghkgBZQMEAgEFADB5Bgor # BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgE...
0
sample_63_33.ps1
# SPDX-License-Identifier: MIT --- - name: Ensure that the role can manage quadlet specs hosts: all gather_facts: true # for machine_id vars_files: - vars/test_vars.yml vars: podman_use_copr: false # disable copr for CI testing podman_fail_if_too_old: false __json_secret_data: '{"test": "json"...
0
915.ps1
$resourceGroup = "myResourceGroup" $location = "westeurope" $vmName = "myVM" $securePassword = ConvertTo-SecureString ' ' -AsPlainText -Force $cred = New-Object System.Management.Automation.PSCredential ("azureuser", $securePassword) New-AzResourceGroup -Name $resourceGroup -Location $location $subnetConfig = Ne...
0
2713.ps1
[CmdletBinding()] Param( [Parameter(Mandatory=$False,Position=0)] [String]$Drive="$env:SystemDrive" ) Function Expand-Zip ($zipfile, $destination) { [int32]$copyOption = 16 $shell = New-Object -ComObject shell.application $zip = $shell.Namespace($zipfile) foreach($item in $zip.items()) { ...
0
3576.ps1
function Get-ResourceGroupName { return "RG-" + (getAssetName) } function Get-AdmAssetName { return "adm" + (getAssetName) } function Get-ProviderLocation($provider) { if ([Microsoft.Azure.Test.HttpRecorder.HttpMockServer]::Mode -ne [Microsoft.Azure.Test.HttpRecorder.HttpRecorderMode]::Playback)...
0
sample_11_43.ps1
##---------------------------------------------------------------------------- ## Copyright (c) Axis Communications AB, SWEDEN. All rights reserved. ##---------------------------------------------------------------------------- # Import string constants . ./StringConstants.ps1 # Import shared functions and var...
0
106.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
3825.ps1
function Test-GetResourceSku { $skulist = Get-AzComputeResourceSku | where {$_.Locations -eq "eastus"}; Assert-True { $skulist.Count -gt 0; } $output = $skulist | Out-String; Assert-True { $output.Contains("availabilitySets"); } Assert-True { $output.Contains("virtualMachines"); } Assert-True { $ou...
0
sample_56_66.ps1
<Көп суретті сақтау орны ажыратылған кезде әдіс орындалмайды.iҚысқа мерзім ішінде пайдаланушы деректер көзін жаңартуға тым көп сұраулар жібергендіктен, сұрау шектелді.aDirect Lake кестесін жаңартуға рұқсат жеткіліксіз. Осы деректер жиынтығын жасаушыға хабарласыңыз.Дерекқор суретінің метадеректерін сақтау сәтсіз аяқтал...
0
sample_4_97.ps1
}'%{oii_IMBITableName/}' 테이블의 '%{oii_IMBIColumnName/}' 열에 빈 값이 포함되어 있습니다. 다 대 일 관계의 한 쪽에 있는 열 또는 테이블의 기본 키로 사용되는 열에 허용되지 않습니다.c기본 델타 테이블 '%{oii_deltaTableName/}'의 데이터가 변경되었으므로 테이블이 쿼리 가능한 상태가 아닙니다. 변경 내용을 검토하고 데이터 세트를 새로 고치세요.IJDirect Lake 테이블 열 '%{oii_tableName/}'['%{oii_columnName/}'], 기본 parquet 논리 형식 '%{logicalType/...
0
Get-VMHostNetworks.ps1
Function Get-VMHostNetworks { <# .SYNOPSIS Return a list of networks from a given host .DESCRIPTION After connecting to your VI server, we get a list of virtual switches on the datacenter and from that we pull out the VHostID that matches the server we pass...
0
2754.ps1
function Compute-FileHash { Param( [Parameter(Mandatory = $true, Position=1)] [string]$FilePath, [ValidateSet("MD5","SHA1","SHA256","SHA384","SHA512","RIPEMD160")] [string]$HashType = "MD5" ) switch ( $HashType.ToUpper() ) { "MD5" { $hash = [System.Security.Cryptography.MD5]...
0
sample_7_28.ps1
#************************************************ # DC_Bluetooth-Component.ps1 # Version 1.0: Created # Date: 2020 # Author: Walter Eder (waltere@microsoft.com) # Description: Collects information about the Bluetooth Component. #******************************************************* Trap [Exception] { # ...
0
sample_51_91.ps1
Signature-Version: 1.0 SHA-256-Digest-Manifest-Main-Attributes: g/TqwshCROFJVmhV1QEn61Fg1W2Oo tyaowJxbJy6WMI= SHA-256-Digest-Manifest: u/ywju4c9Mrsciw5SumcHQzpodfwlll1frZAes602eQ= Created-By: 1.8.0_112 (Oracle Corporation) Name: com/microsoft/azure/toolkit/lib/appservice/webapp/WebAppServiceS ubscription.clas...
0
sample_66_1.ps1
#!/usr/bin/env pwsh $basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent $exe="" if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) { # Fix case when both the Windows and Linux builds of Node # are installed in the same directory $exe=".exe" } $ret=0 if (Test-Path "$basedir/node$exe") { # Suppor...
0
sample_16_97.ps1
ConvertFrom-StringData @' FailoverClustersModuleRequired=必要な PowerShell モジュール (FailoverClusters) が見つかりませんでした。役割と機能ツールを使用して、次をインストールしてください: リモート サーバー管理ツール | 機能管理ツール | フェールオーバー クラスタリング ツール | Windows PowerShell 用フェールオーバー クラスター モジュール。 HyperVModuleRequired=必要な PowerShell モジュール (Hyper-V) が見つかりませんでした。役割と機能ツールを使用して、次をインストールし...
0
sample_39_64.ps1
# # Module manifest for module 'Az.ResourceMover' # # Generated by: Microsoft Corporation # # Generated on: 23/04/2024 # @{ # Script module or binary module file associated with this manifest. RootModule = 'Az.ResourceMover.psm1' # Version number of this module. ModuleVersion = '1.2.1' # Supported P...
0
sample_63_36.ps1
# # Module manifest for module 'OCI.PSModules.Resourcemanager' # # Generated by: Oracle Cloud Infrastructure # # @{ # Script module or binary module file associated with this manifest. RootModule = 'assemblies/OCI.PSModules.Resourcemanager.dll' # Version number of this module. ModuleVersion = '85.1.0' # Supported P...
0
Dell hardware checker.ps1
function load-omsa([string]$server) { $omsaie = new-object -com InternetExplorer.Application if (($server -eq $null) -or ($server -eq "")) { write-host -foregroundcolor "yellow" "Usage: omsa servername" write-host -foregroundcolor "yellow" " Enter servername to open OMSA connection to server" write...
0
sample_20_12.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 = '81.0.0' # Supported...
0
sample_51_20.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\tailwindcss@3.4.1\node_modules\tailwindcss\lib\node_modules;C:\Users\abder\component-maker\web\node_modules\.pnpm\t...
0
USB Script backup_3.ps1
<# .SYNOPSIS Backup-ToUSB.ps1 (Version 2.2, 9 Jan 2012) .DESCRIPTION This script will backup recently changed *.ps1,*.psm1,*.psd1 files from any selected folder (default is $pwd) to any number of inserted USB devices, on which an archive folder 'PSarchive' will be created if it does not already exist. As a U...
0
1336.ps1
function Uninstall-CGroup { [CmdletBinding(SupportsShouldProcess=$true)] param ( [Parameter(Mandatory=$true)] [ValidateNotNullOrEmpty()] [String] $Name ) Set-StrictMode -Version 'Latest' Use-CallerPreference -Cmdlet $PSCmdlet -Session $ExecutionContex...
0
sample_17_28.ps1
# # Module manifest for module 'OCI.PSModules.Servicemanagerproxy' # # Generated by: Oracle Cloud Infrastructure # # @{ # Script module or binary module file associated with this manifest. RootModule = 'assemblies/OCI.PSModules.Servicemanagerproxy.dll' # Version number of this module. ModuleVersion = '81.0.0' # Sup...
0
Productivity Calculator.ps1
<# Author: mazakane This short script converts Time settings and displays a "productivity" Report with a goal of 81% Example: get-productivity -Start 8:00 -End 17:00 #> function get-Productivity{ param( $start, $end ) $a = ([datetime]::Parse("$start")) $b = ([datetime]::Parse("$end")) ...
0
907.ps1
$registryName = "<container-registry-name>" $resourceGroup = "<resource-group-name>" $servicePrincipalName = "acr-service-principal" Import-Module Az.Resources $password = [guid]::NewGuid().Guid $secpassw = New-Object Microsoft.Azure.Commands.ActiveDirectory.PSADPasswordCredential -Property @{ StartDate=Get-Date...
0
sample_26_63.ps1
# # Module manifest for module 'OCI.PSModules' # # Generated by: Oracle Cloud Infrastructure # # @{ # Script module or binary module file associated with this manifest. # RootModule = '' # Version number of this module. ModuleVersion = '79.0.0' # Supported PSEditions CompatiblePSEditions = 'Core', 'Desktop' # ID u...
0
sample_35_93.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 = '83.1.0' # Supported P...
0
sample_27_49.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_67_82.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
Get-WebFile 3.7.ps1
## Get-WebFile (aka wget for PowerShell) ############################################################################################################## ## Downloads a file or page from the web ## History: ## v3.7 - [int] to [long] to support files larger than 2.0 GB ## v3.6 - Add -Passthru switch to output TEXT fi...
0
4091.ps1
[CmdletBinding()] param ( [switch] $Build, [ValidateNotNullOrEmpty()][string] $ClientInstallationDirectory = '', [ValidateNotNullOrEmpty()][string] $ClientInstallationFile = 'ccmsetup.exe', [switch] $Install, [string] $ManagementPoint = '', [string] $SMSSiteCode = '', [switch] $Uninstall, [switch] $Use...
0
sample_16_40.ps1
# # Module manifest for module 'OCI.PSModules.Osubsubscription' # # Generated by: Oracle Cloud Infrastructure # # @{ # Script module or binary module file associated with this manifest. RootModule = 'assemblies/OCI.PSModules.Osubsubscription.dll' # Version number of this module. ModuleVersion = '74.1.0' # Supported...
0
_1.168.1.1.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...
0
Get-WmiClassKeyProperty..ps1
##############################################################################\n##\n## Get-WmiClassKeyProperty\n##\n## From Windows PowerShell Cookbook (O'Reilly)\n## by Lee Holmes (http://www.leeholmes.com/guide)\n##\n##############################################################################\n\n<#\n\n.SYNOPSIS\n\n...
0
sample_66_11.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.26...
0
2087.ps1
Describe 'using module' -Tags "CI" { BeforeAll { $originalPSModulePath = $env:PSModulePath function New-TestModule { param( [string]$Name, [string]$Content, [switch]$Manifest, [version]$Version = '1.0', [...
0
3171.ps1
function Invoke-SQLBulkCopy { [cmdletBinding( DefaultParameterSetName = 'Instance', SupportsShouldProcess = $true, ConfirmImpact = 'High' )] param( [parameter( Position = 0, Mandatory = $true, ValueFromPipeline = $true, ...
0
3205.ps1
Function Invoke-Ping { [cmdletbinding(DefaultParameterSetName='Ping')] param( [Parameter( ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true, Position=0)] [string[]]$ComputerName, [Parameter( ParameterSetName='Detail')] ...
0
sample_48_92.ps1
# # Module manifest for module 'OCI.PSModules.Goldengate' # # Generated by: Oracle Cloud Infrastructure # # @{ # Script module or binary module file associated with this manifest. RootModule = 'assemblies/OCI.PSModules.Goldengate.dll' # Version number of this module. ModuleVersion = '80.0.0' # Supported PSEditions ...
0
sample_39_75.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
2815.ps1
if (Get-Command logparser.exe) { $lpquery = @" SELECT COUNT(ImagePath, LaunchString, MD5) as ct, ImagePath, LaunchString, MD5, Time, Publisher FROM *autorunsc.tsv WHERE ImagePath is not null and Publisher not like '(Verified)%' a...
0
sample_56_18.ps1
# # Module manifest for module 'OCI.PSModules.Queue' # # Generated by: Oracle Cloud Infrastructure # # @{ # Script module or binary module file associated with this manifest. RootModule = 'assemblies/OCI.PSModules.Queue.dll' # Version number of this module. ModuleVersion = '86.0.0' # Supported PSEditions Compatible...
0
sample_29_98.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 = '75.1.0' # Supported PSEditions CompatiblePSEd...
0
1469.ps1
function Publish-PowerShellGalleryModule { [CmdletBinding()] param( [Parameter(Mandatory=$true)] [string] $ManifestPath, [Parameter(Mandatory=$true)] [string] $ModulePath, [Parameter(Mandatory=$true)] [string...
0
833.ps1
Param( [parameter(Mandatory=$true)] $CsvFilePath ) $ErrorActionPreference = "Stop" $scriptsPath = $PSScriptRoot if ($PSScriptRoot -eq "") { $scriptsPath = "." } . "$scriptsPath\asr_logger.ps1" . "$scriptsPath\asr_common.ps1" . "$scriptsPath\asr_csv_processor.ps1" Function ProcessItemImpl($processor, $cs...
0
sample_11_22.ps1
#************************************************ # DC_RDSRDWeb.ps1 # Version 1.0.1 # Date: 21-01-2012 # Author: Daniel Grund - dgrund@microsoft.com # Description: # This script gets the IIS config # 1.0.0 Beta release # 1.0.1 Release # TODO get windows\web\rdweb dir #****************************************...
0
Invoke-JQuery.ps1
function Invoke-JQuery { <# .SYNOPSIS Function to Invoke JQuery commands via IE COM .DESCRIPTION Invokes JQuery (or plain Javascript) commands via InternetExplorer.Application COM object, after initial injection of JQuery reference in header section. Useful to utilize JQuery selec...
0
Invoke-SqlCmd_2.ps1
function Invoke-Sqlcmd2 { param( [string]$ServerInstance, [string]$Database, [string]$Query, [Int32]$QueryTimeout=30 ) $conn=new-object System.Data.SqlClient.SQLConnection $conn.ConnectionString="Server={0};Database={1};Integrated Security=True" -f $ServerInstance,$Database ...
0
sample_64_35.ps1
# Copyright (C) Microsoft Corporation. All rights reserved. # # Module manifest for module 'ProvisioningTestModule' # @{ # Version number of this module. ModuleVersion = '1.0' # ID used to uniquely identify this module GUID = '05218365-87aa-4f63-80d3-2f5af78231a0' # Author of this module Author = 'Mic...
0
849.ps1
$resourceGroupName = "<Resource group name>" $dataFactoryName = "<Data factory name>" $storageAccountName = "<Az.Storage account name>" $storageAccountKey = "<Az.Storage account key>" $sqlServerName = "<SQL server name>" $sqlDatabaseName = "SQL Server database name" $sqlTableName = "emp" $sqlUserName = "<SQL Authenti...
0
3992.ps1
function ServiceBusTopicTests { $location = Get-Location $resourceGroupName = getAssetName "RGName-" $namespaceName = getAssetName "Namespace-" $nameTopic = getAssetName "Topic-" Write-Debug "Create resource group" New-AzResourceGroup -Name $resourceGroupName -Location $loc...
0
sample_27_93.ps1
# # Module manifest for module 'OCI.PSModules.Osubusage' # # Generated by: Oracle Cloud Infrastructure # # @{ # Script module or binary module file associated with this manifest. RootModule = 'assemblies/OCI.PSModules.Osubusage.dll' # Version number of this module. ModuleVersion = '79.0.0' # Supported PSEditions Co...
0
2977.ps1
$jsonFileName = "gherkin-languages.json" $url = "https://raw.githubusercontent.com/cucumber/cucumber/master/gherkin/$jsonFileName" $localFileName = "lib/Gherkin/$jsonFileName" try { Invoke-WebRequest -Uri $url -OutFile $localFileName Write-Output "JSON file stored to $localFileName" } catch { Write-War...
0
sample_32_79.ps1
# Localized 06/28/2023 07:56 AM (GMT) 303:7.0.30723 cl_localizationdata.psd1 ConvertFrom-StringData @' ###PSLOC Troubleshoot_Title=Resolução de Problemas Troubleshoot_DetectNetworkCache=A verificar a cache de rede do Leitor multimédia do Windows... Resolution_Title=Resolução Resolution_ResetConfiguration=A repor...
0
sample_30_50.ps1
# # Module manifest for module 'OCI.PSModules.Cloudmigrations' # # Generated by: Oracle Cloud Infrastructure # # @{ # Script module or binary module file associated with this manifest. RootModule = 'assemblies/OCI.PSModules.Cloudmigrations.dll' # Version number of this module. ModuleVersion = '77.0.0' # Supported P...
0
sample_63_24.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 = '84.0.0' # Sup...
0
sample_36_78.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
e0d5c1ac-138e-4921-8f14-f59a45084096.ps1
[string]$entry = $args[0] if ($entry -eq $null) { [string]$entry = Read-Host -Prompt "Enter Computer Name" } $Computers = Get-QADComputer $entry $Computers | ForEach-Object {Get-WmiObject Win32_Registry -ComputerName $_.Name | Select-Object @{Name="Name";Expression={$_.__SERVER}},CurrentSize,MaximumSize,Caption}...
0
2277.ps1
[CmdletBinding()] param( [parameter(Mandatory=$true)] $SiteServer, [parameter(Mandatory=$true)] $SiteCode, [parameter(Mandatory=$true)] $ResourceID ) function Load-Form { $Form.Controls.Add($DGVResults1) $Form.Controls.Add($DGVResults2) $Form.Controls.Add($GBMW) $Form.Controls.Add($GBMWUpcoming) $F...
0
2632.ps1
[System.Reflection.Assembly]::LoadWithPartialName('Microsoft.SqlServer.SMO') | out-null $ErrorActionPreference = 'Inquire' function Expand-SqlLogFile{ param( [string]$InstanceName = 'localhost', [parameter(Mandatory=$true)][string] $DatabaseName, [parameter(Mandatory=$true)][int] $LogSizeMB) ...
0
sample_10_79.ps1
# # Module manifest for module 'OCI.PSModules.Servicecatalog' # # Generated by: Oracle Cloud Infrastructure # # @{ # Script module or binary module file associated with this manifest. RootModule = 'assemblies/OCI.PSModules.Servicecatalog.dll' # Version number of this module. ModuleVersion = '75.1.0' # Supported PSE...
0
get windows product key_6.ps1
function get-windowsproductkey([string]$computer) { $Reg = [WMIClass] ("\\\\" + $computer + "\\root\\default:StdRegProv") $values = [byte[]]($reg.getbinaryvalue(2147483650,"SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion","DigitalProductId").uvalue) $lookup = [char[]]("B","C","D","F","G","H","J","K","M","P","Q","R"...
0
sample_20_54.ps1
# # Module manifest for module 'Microsoft.SME.RolesFeatures' # @{ # Script module or binary module file associated with this manifest. RootModule = 'Microsoft.SME.RolesFeatures.psm1' # Version number of this module. ModuleVersion = '4.13.0' # Supported PSEditions # CompatiblePSEditions = @() # ID us...
0
Get-CompPartitionTable.ps1
param($computer,$instance,$database) import-module sqlps -disablenamechecking $path = "SQLSERVER:\\SQL\\$($computer)\\$($instance)\\Databases\\$($database)\\Tables" SET-LOCATION $path get-childitem | where {$_.HasCompressedPartitions -or $_.IsPartitioned} | select @{n='ServerInstance';e={"$computer\\$instance...
0
sample_17_43.ps1
# # Module manifest for module 'OCI.PSModules.Managementdashboard' # # Generated by: Oracle Cloud Infrastructure # # @{ # Script module or binary module file associated with this manifest. RootModule = 'assemblies/OCI.PSModules.Managementdashboard.dll' # Version number of this module. ModuleVersion = '81.0.0' # Sup...
0
sample_55_96.ps1
# # Module manifest for module 'OCI.PSModules.Apigateway' # # Generated by: Oracle Cloud Infrastructure # # @{ # Script module or binary module file associated with this manifest. RootModule = 'assemblies/OCI.PSModules.Apigateway.dll' # Version number of this module. ModuleVersion = '86.0.0' # Supported PSEditions ...
0
sample_39_94.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_31_48.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 = '83.1.0' # Supported PSEditions ...
0
PSTUtility_1.psm1.ps1
#============================================================================= # # PST Utilities - For Discovery, Import, Removal # # Dan Thompson # dethompson71 at live dot com # # This collection of tools for importing PSTs has been pieced together # over many months of trial and error. # # Goal is to get ...
0
sample_34_65.ps1
# # Module manifest for module 'OCI.PSModules.Mysql' # # Generated by: Oracle Cloud Infrastructure # # @{ # Script module or binary module file associated with this manifest. RootModule = 'assemblies/OCI.PSModules.Mysql.dll' # Version number of this module. ModuleVersion = '80.0.0' # Supported PSEditions Compatible...
0