filename
stringlengths
5
142
content
stringlengths
2
26M
label
int64
0
1
sample_45_75.ps1
# # Module manifest for module 'OCI.PSModules.Sch' # # Generated by: Oracle Cloud Infrastructure # # @{ # Script module or binary module file associated with this manifest. RootModule = 'assemblies/OCI.PSModules.Sch.dll' # Version number of this module. ModuleVersion = '74.1.0' # Supported PSEditions CompatiblePSEd...
0
sample_47_76.ps1
# Copyright (C) Microsoft Corporation. All rights reserved. # # File: LAPS.psm1 # Author: jsimmons@microsoft.com # Date: April 13, 2023 # # This file implements the Get-LapsDiagnostics and Get-LapsAADPasswordPowerShell cmdlets. function RunProcess() { Param ( [Parameter(Mandatory=$true)] ...
0
sample_49_83.ps1
# region Generated # Load the private module dll $null = Import-Module -PassThru -Name (Join-Path $PSScriptRoot '..\bin\Az.DataProtection.private.dll') # Load the internal module $internalModulePath = Join-Path $PSScriptRoot '..\internal\Az.DataProtection.internal.psm1' if(Test-Path $internalModulePat...
0
Publish-File.ps1
# Note that this version will not descend directories. function Publish-File { param ( [parameter( Mandatory = $true, HelpMessage="URL pointing to a SharePoint document library (omit the '/forms/default.aspx' portion)." )] [System.Uri]$Url, [parameter( Mandatory = $true, ValueFromPipeline = $true, HelpMessa...
0
sample_33_42.ps1
# # Module manifest for module 'OCI.PSModules.Licensemanager' # # Generated by: Oracle Cloud Infrastructure # # @{ # Script module or binary module file associated with this manifest. RootModule = 'assemblies/OCI.PSModules.Licensemanager.dll' # Version number of this module. ModuleVersion = '73.1.0' # Supported PSE...
0
503.ps1
function Disable-InternetExplorerEnhancedSecurityConfiguration{ [CmdletBinding()] param( ) $AdminKey = "HKLM:\SOFTWARE\Microsoft\Active Setup\Installed Components\{A509B1A7-37EF-4b3f-8CFC-4F3A74704073}" $UserKey = "HKLM:\SOFTWARE\Microsoft\Active Setup\Installed Components\{A509B1A8-37EF...
0
New-GenericType.ps1
## New-GenericObject.ps1 ## Creates an object of a generic type: ## ## Usage: ## ## # Simple generic collection ## $list = New-GenericObject System.Collections.ObjectModel.Collection System.Int32 ## ## # Generic dictionary with two types ## New-GenericObject System.Collections.Generic.Dictionary System...
0
1173.ps1
Set-StrictMode -Version 'Latest' & (Join-Path -Path $PSScriptRoot -ChildPath 'Initialize-CarbonTest.ps1') $groupName = 'TestGroupMember01' $userName = 'TestGroupMemberUser' $userPass = 'P@ssw0rd!' $description = 'Used by Test-GroupMember.Tests.ps1' describe Test-GroupMember { BeforeAll { ...
0
sample_7_89.ps1
# ********************************************************************************************************************************************************** # Version 1.0 # Date: 03/22/2012 # Author: Vinay Pamnani - vinpa@microsoft.com # Description: # Base Script taken from DSI\Shared. Modified to exclude non-r...
0
sample_37_33.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
2171.ps1
[CmdletBinding(SupportsShouldProcess=$true)] [OutputType([PSObject])] param( [parameter(Mandatory=$true, HelpMessage="Site server where the SMS Provider is installed")] [ValidateScript({Test-Connection -ComputerName $_ -Count 1 -Quiet})] [ValidateNotNullOrEmpty()] [string]$SiteServer, [parameter(Ma...
0
104.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
1117.ps1
$siteName = 'Windows Authentication' $sitePort = 4387 $webConfigPath = Join-Path $TestDir web.config function Start-TestFixture { & (Join-Path -Path $PSScriptRoot '..\Initialize-CarbonTest.ps1' -Resolve) } function Start-Test { Uninstall-IisWebsite $siteName Install-IisWebsite -Name $siteName ...
0
sample_37_87.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
sample_0_46.ps1
ConvertFrom-StringData @' id_dosdev=MS-DOS device names (symbolic links) id_dosdevrunning=Gathering MS-DOS device names information (dosdev) id_dosdevoutput=DOSDev Output id_dosdevoutputdesc=MS-DOS device names information '@ # SIG # Begin signature block # MIIoQwYJKoZIhvcNAQcCoIIoNDCCKDACAQExDzANBglghkgBZQMEA...
0
Get-Hostname_4.ps1
# .SYNOPSIS # Print the hostname of the system. # .DESCRIPTION # This function prints the hostname of the system. You can additionally output the DNS # domain or the FQDN by using the parameters as described below. # .PARAMETER Short # (Default) Print only the computername, i.e. the same value as returned by $env...
0
sample_3_35.ps1
#************************************************ # TS_EventLogStoppedGPPCheck.ps1 # Version 1.0.1 # Date: 4/3/2013 # Author: v-blchen # Description: [Idea ID 7018] [Windows] Event Log Service won't start # Rule number: 7018 # Rule URL: http://sharepoint/sites/rules/Rule Submissions/Forms/DispForm.aspx?ID=701...
0
Select-ViaGUI_1.ps1
function Select-ViaUI { #.Synopsis # Select objects through a visual interface #.Description # Uses a graphical interface to select (and pass-through) pipeline objects # Idea from Lee Holmes (http://www.leeholmes.com/blog) #.Example # Get-ChildItem | Select-ViaUI -show | Remove-Item -WhatIf [OutputT...
0
920.ps1
$subscriptionId = 'yourSubscriptionId' $resourceGroupName ='yourResourceGroupName' $snapshotName = 'yourSnapshotName' $diskName = 'yourManagedDiskName' $diskSize = '128' $storageType = 'Premium_LRS' $location = 'westus' Select-AzSubscription -SubscriptionId $SubscriptionId $snapshot = Get-AzSnapshot ...
0
Start-BootsTimer_3.ps1
Add-BootsFunction -Type "System.Windows.Threading.DispatcherTimer" function Start-BootsTimer { #.Syntax # Creates a stay-on-top countdown timer #.Description # A WPF borderless count-down timer, with audio/voice alarms and visual countdown + colored progress indication #.Parameter EndMessage # The message t...
0
sample_44_79.ps1
# # Module manifest for module 'OCI.PSModules.Budget' # # Generated by: Oracle Cloud Infrastructure # # @{ # Script module or binary module file associated with this manifest. RootModule = 'assemblies/OCI.PSModules.Budget.dll' # Version number of this module. ModuleVersion = '82.0.0' # Supported PSEditions Compatib...
0
SqlProxy_8.psm1.ps1
# --------------------------------------------------------------------------- ### <Author> ### Chad Miller ### </Author> ### <Description> ### Based on functions in SQLPSX. SqlProxy.psm1 module is used for administering ### SQL Server logins, users, and roles. Designed to be used with PS Remoting. ### All actio...
0
1483.ps1
function Get-ModuleVersion { param( [Parameter(Mandatory=$true)] [string] $ManifestPath ) Set-StrictMode -Version 'Latest' }
0
sample_66_53.ps1
# # Module manifest for module 'OCI.PSModules.Onesubscription' # # Generated by: Oracle Cloud Infrastructure # # @{ # Script module or binary module file associated with this manifest. RootModule = 'assemblies/OCI.PSModules.Onesubscription.dll' # Version number of this module. ModuleVersion = '83.3.0' # Supported P...
0
sample_58_69.ps1
# # Module manifest for module 'OCI.PSModules.Desktops' # # Generated by: Oracle Cloud Infrastructure # # @{ # Script module or binary module file associated with this manifest. RootModule = 'assemblies/OCI.PSModules.Desktops.dll' # Version number of this module. ModuleVersion = '85.1.0' # Supported PSEditions Comp...
0
sample_46_72.ps1
# # Module manifest for module 'OCI.PSModules.Datascience' # # Generated by: Oracle Cloud Infrastructure # # @{ # Script module or binary module file associated with this manifest. RootModule = 'assemblies/OCI.PSModules.Datascience.dll' # Version number of this module. ModuleVersion = '83.1.0' # Supported PSEdition...
0
sample_65_30.ps1
@(echo off) > $null if #ftw NEQ '' goto :init ($true){ $Error.clear(); } # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # wrapper script for vcpkg # this is intended to be dot-sourced and then you can use the vcpkg() function # Workaround for $IsWindows not existing in Windows PowerShell if...
0
3257.ps1
class AccessFilter { [hashtable]$Permissions = @{} [CommandAuthorizationResult]Authorize([string]$PermissionName) { if ($this.Permissions.Count -eq 0) { return $true } else { if (-not $this.Permissions.ContainsKey($PermissionName)) { return [CommandAut...
0
sample_21_22.ps1
# # Module manifest for module 'OCI.PSModules.Loggingsearch' # # Generated by: Oracle Cloud Infrastructure # # @{ # Script module or binary module file associated with this manifest. RootModule = 'assemblies/OCI.PSModules.Loggingsearch.dll' # Version number of this module. ModuleVersion = '74.1.0' # Supported PSEdi...
0
sample_14_88.ps1
#************************************************ # TS_UnableToAddNetworkPrintersErrorCheck.ps1 # Version 1.0.1 # Date: 7/19/2013 # Author: v-kaw # Description: [KSE Rule] [ Windows V3] Presence of lots of folders inside \spool\prtprocs\ causes failure to install print queues # Rule number: d4047602-196c-443f-9...
0
dc5f3df6-1aa2-4d34-abf2-d113722bce02.ps1
################################################################################ # Get-GprsTime.ps1(V 1006A) # Check the total connect time of any GPRS devices from a specified date. # Use the -Detail switch for some extra information if desired. A default value # can be set with the -Monthly switch but can...
0
sample_5_34.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 = '92.1.0' # Sup...
0
sample_42_33.ps1
# # Module manifest for module 'OCI.PSModules.Databasemanagement' # # Generated by: Oracle Cloud Infrastructure # # @{ # Script module or binary module file associated with this manifest. RootModule = 'assemblies/OCI.PSModules.Databasemanagement.dll' # Version number of this module. ModuleVersion = '83.1.0' # Suppo...
0
1891.ps1
Describe 'ForEach-Object -Parallel Basic Tests' -Tags 'CI' { BeforeAll { $skipTest = -not $EnabledExperimentalFeatures.Contains('PSForEachObjectParallel') if ($skipTest) { Write-Verbose "Test Suite Skipped. The test suite requires the experimental feature 'PSForEachObjectParallel' t...
0
241.ps1
function Get-SCSMWorkItemAffectedUser { [CmdletBinding(DefaultParameterSetName = 'GUID')] param ( [Parameter(ParameterSetName = 'SMObject', Mandatory = $true, ValueFromPipeline = $true)] $SMObject, [Parameter(ParameterSetName = 'GUID', ...
0
2377.ps1
[CmdletBinding()] [OutputType([array])] param ( [string[]]$Computername = 'localhost', [Parameter(ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true)] [ValidatePattern('[A-Z]')] [string]$DriveLetter, [ValidateSet('KB','MB','GB','TB')] [string]$SizeOutputLabel = 'MB' ) Begin { try { $W...
0
2082.ps1
Describe 'Attributes Test' -Tags "CI" { BeforeAll { $dummyAttributesSource = @' using System.Management.Automation; namespace Dummy { public class DoubleStringTransformationAttribute : ArgumentTransformationAttribute { public override object Transform(EngineIntrinsics engineIntrinsics, ob...
0
sample_47_87.ps1
# # Module manifest for module 'OCI.PSModules.Objectstorage' # # Generated by: Oracle Cloud Infrastructure # # @{ # Script module or binary module file associated with this manifest. RootModule = 'assemblies/OCI.PSModules.Objectstorage.dll' # Version number of this module. ModuleVersion = '83.2.0' # Supported PSEdi...
0
sample_6_72.ps1
# diag_sha.psm1 # Created by tdimli # March 2020 # # Diagnostic functions for SHA area # version $SHA_version = "1.0.200425.0" # Area and Area/Component arrays # Example: $AREA = @("Component1", "Component2") $SHA = @() #Component/Diagnostic Function arrays # Example: $Component1 = @("Diag_Func1", "Dia...
0
New-FullDataSet.ps1
## Generate two dummy datatables in a dataset for testing $global:dt1 = New-Object system.data.datatable "Times" $global:dt2 = New-Object system.data.datatable "Properties" $global:ds = New-Object system.data.dataset "dataset" $null = $ds.Tables.Add( $dt1 ) $null = $ds.Tables.Add( $dt2 ) $global:cols1 = ls|?{!$...
0
2761.ps1
ForEach ($NameSpace in "root\subscription","root\default") { Get-WmiObject -Namespace $NameSpace -Query "select * from __EventFilter" }
0
2549.ps1
cls $people = Import-Csv .\people.csv | select Dept, Name, @{ n="Salary" e={[double]$_.Salary} }, @{ n="YearsEmployeed" e={[int]$_.yearsEmployeed} } $people | .\Out-ExcelPivotTable $people | .\Out-ExcelPivotTable name dept salary $people | .\Ou...
0
845.ps1
$resourceGroupName = "<resource group name>" $dataFactoryName = "<data factory name>" $dataFactoryNameLocation = "East US" $azureSqlServer = "<azure sql server name>" $azureSqlServerUser = "<azure sql server user>" $azureSqlServerUserPassword = "<azure sql server password>" $azureSqlDatabase = "<source azure sql dat...
0
1224.ps1
Set-StrictMode -Version 'Latest' Describe 'License Notices' { It 'all published files should have a license notice' { $projectRoot = Join-Path -Path $PSScriptRoot -ChildPath '..' -Resolve $carbonRoot = Join-Path -Path $projectRoot -ChildPath 'Carbon' -Resolve $licenseFilePath = Join-Path ...
0
sample_61_63.ps1
# ------------------------------------------------------------ # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License (MIT). See License.txt in the repo root for license information. # ------------------------------------------------------------ function Unpublish-ServiceFab...
0
sample_20_11.ps1
# ------------------------------------------------------------ # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License (MIT). See License.txt in the repo root for license information. # ------------------------------------------------------------ param ( [Parameter(Manda...
0
Deploying VM with static.ps1
$custSpec = New-OSCustomizationSpec -Type NonPersistent -OSType Windows -OrgName TestOrgName -FullName TestFullName -Workgroup TestWorkgroup $custSpec | Get-OSCustomizationNicMapping | Set-OSCustomizationNicMapping -IpMode UseStaticIP -IpAddress 10.23.121.228 -SubnetMask 255.255.248.0 -Dns 10.23.108.1 -DefaultGateway ...
0
sample_67_52.ps1
# # Module manifest for module 'OCI.PSModules.Desktops' # # Generated by: Oracle Cloud Infrastructure # # @{ # Script module or binary module file associated with this manifest. RootModule = 'assemblies/OCI.PSModules.Desktops.dll' # Version number of this module. ModuleVersion = '86.2.0' # Supported PSEditions Comp...
0
sample_25_35.ps1
# Include helper scripts . ".\Utils\HelperFunctions.ps1" . ".\Utils\AwsSentinelTag.ps1" # Validate AWS configuration Test-AwsConfiguration Write-Output `n`n'Setting up your AWS environment' Write-Output `n'This script enables additional VPC Flow Logs if you have already set up the required resources Bucket S3...
0
PowerBot _2.0.ps1
## PowerBot 2.0 ## A simple framework to get you started writing your own IRC bots in PowerShell #################################################################################################### ## Requires Meebey.SmartIrc4net.dll to be in your ...\\WindowsPowerShell\\Libraries\\ ## You can get Meebey.SmartIrc4n...
0
Invoke-Sql_1.ps1
<# .SYNOPSIS Runs a T-SQL Query and optional outputs results to a delimited file. .DESCRIPTION Invoke-Sql script will run a T-SQL query or stored procedure and optionally outputs a delimited file. .EXAMPLE PowerShell.exe -File "C:\\Scripts\\Invoke-Sql.ps1" -ServerInstance "Z003\\sqlprod2" -Database orders -Query ...
0
709.ps1
function Out-RsRestCatalogItemId { [CmdletBinding()] param ( [Parameter(Mandatory = $True)] $RsItemInfo, [ValidateScript({ Test-Path $_ -PathType Container})] [Parameter(Mandatory = $True)] [string] $Destination, [switch] $Overwrite, ...
0
Get-Netstat 1,2.ps1
$null, $null, $null, $null, $netstat = netstat -a -n -o $ps = Get-Process [regex]$regexTCP = '(?<Protocol>\\S+)\\s+((?<LAddress>(2[0-4]\\d|25[0-5]|[01]?\\d\\d?)\\.(2[0-4]\\d|25[0-5]|[01]?\\d\\d?)\\.(2[0-4]\\d|25[0-5]|[01]?\\d\\d?)\\.(2[0-4]\\d|25[0-5]|[01]?\\d\\d?))|(?<LAddress>\\[?[0-9a-fA-f]{0,4}(\\:([0-9a-fA-f]{0,...
0
2677.ps1
$ProgressPreference = "SilentlyContinue" $WarningPreference = "SilentlyContinue" if (-not (Test-Path $PSScriptRoot\bundle\SharePointPnPPowerShellOnline.psd1)) { Set-Alias nuget "$PSScriptRoot\nuget.exe" nuget install SharePointPnPPowerShellOnline -configFile $PSScriptRoot\nuget.config -OutputDirectory $PSScrip...
0
2891.ps1
Task default -Depends RunWhatIf Task RunWhatIf { try { $global:WhatIfPreference = $true $parameters = @{p1='whatifcheck';} Invoke-psake .\nested\whatifpreference.ps1 -parameters $parameters } finally { $global:WhatIfPreference = $false } }
0
sample_21_92.ps1
# # Module manifest for module 'OCI.PSModules.Dashboardservice' # # Generated by: Oracle Cloud Infrastructure # # @{ # Script module or binary module file associated with this manifest. RootModule = 'assemblies/OCI.PSModules.Dashboardservice.dll' # Version number of this module. ModuleVersion = '79.0.0' # Supported...
0
ISE-Snippets variant.ps1
#requires -version 2.0 ## ISE-Snippets module v 1.0 ## DEVELOPED FOR CTP3 ## See comments for each function for changes ... ############################################################################################################## ## As a shortcut for every snippet would be to much, I created Add-Snippet whic...
0
ServicePWChgReset.ps1
# ============================================================================================== # # NAME: ServicePWChgReset.ps1 # # AUTHOR: Saehrig, Steven # DATE : 8/26/2008 # @@# COMMENT: Please read comments on each section! # 1st - Search Domain computers for matching name and import into array. # ...
0
sample_61_89.ps1
<# .SYNOPSIS MSRD-Collect 'data collection' specific functions .DESCRIPTION Module for the MSRD-Collect local 'data collection' functions .NOTES Author : Robert Klemencz Requires : At least PowerShell 5.1 (This module is not for stand-alone use. It is used automatically from within the main...
0
2787.ps1
if (Get-Command logparser.exe) { $lpquery = @" SELECT COUNT(ForeignAddress, ForeignPort, Process) as ct, ForeignAddress, ForeignPort, Process FROM *netstat.csv WHERE ConPid not in ('0'; '4') and ForeignAddress not like '10.%' and...
0
207.ps1
[CmdletBinding(DefaultParameterSetName = "Group")] PARAM ( [Parameter(ParameterSetName = "Group", Mandatory = $true, HelpMessage = "You must specify at least one Active Directory group")] [ValidateNotNull()] [Alias('DN', 'DistinguishedName', 'GUID', 'SID', 'Name')] [string[]]$Group, [Parameter...
0
sample_24_33.ps1
# For more information, please refer to https://aka.ms/vscode-docker-python FROM python:3-slim {{#if (isRootPort ports)}} # Warning: A port below 1024 has been exposed. This requires the image to run as a root user which is not a best practice. # For more information, please refer to https://aka.ms/vscode-docker-...
0
Get-MWSOrder_2.ps1
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="GetOrderCmdlet.cs" company="Huddled Masses"> // Copyright (c) 2011 Joel Bennett // </copyright> // <summary> // Defines the Get-Order Cmdlet for Amazon Marketplace Orders ...
0
sample_31_20.ps1
# DO NOT COPY THIS MANIFEST VERBATIM. THIS IS JUST A SAMPLE. # GENERATE YOUR MANIFEST USING THE New-ModuleManifest COMMAND TO # GUARANTEE YOU GET A UNIQUE GUID FOR YOUR MODULE. @{ # Private data to pass to the module specified in RootModule/ModuleToProcess. This may also contain a PSData hashtable with additio...
0
1429.ps1
function Revoke-CPermission { [CmdletBinding(SupportsShouldProcess=$true)] param( [Parameter(Mandatory=$true)] [string] $Path, [Parameter(Mandatory=$true)] [string] $Identity ) Set-StrictMode -Version 'Latest' Use-Cal...
0
set-localpwd.ps1
# Sets local account passwords on one or more computers # usage [computerName1,computerName2,... | ] ./set-localpwd.ps1 [-user] <userName> [-password] <password> [[-computers] computerName1,computerName2,...] param( [string] $User , [string] $Password , [string[]] $ComputerNames = @() ) $ComputerNames ...
0
579.ps1
function Submit-SPOCheckOut { [CmdletBinding()] param ( [Parameter(Mandatory=$true, Position=1)] [string]$targetPath ) $targetPath = Join-SPOParts -Separator '/' -Parts $clientContext.Web.ServerRelativeUrl, $targetPath $remotefile = $clientContext.Web.GetFileByServerRelativeUrl($targetPath) $clien...
0
1398.ps1
function Get-CComPermission { [CmdletBinding()] [OutputType([Carbon.Security.ComAccessRights])] param( [Parameter(Mandatory=$true,ParameterSetName='DefaultAccessPermission')] [Parameter(Mandatory=$true,ParameterSetName='MachineAccessRestriction')] [Switch] $Acc...
0
Test-Certificate_2.ps1
##################################################################### # Test-Certificate.ps1 # Version 0.9 # # Tests specified certificate for certificate chain and revocation # # Vadims Podans (c) 2009 # http://www.sysadmins.lv/ ##################################################################### #requires -...
0
sample_11_16.ps1
# Copyright (c) Microsoft Corporation. # Licensed under the MIT License. <# .Synopsis Registers or unregisters the PowerShell ETW manifest .Parameter Path The fully qualified path to the PowerShell.Core.Instrumentation.man manifest file. The default value is the location of this script. .Paramet...
0
4321.ps1
function Get-InstalledModuleAuthenticodeSignature { [CmdletBinding()] Param( [Parameter(Mandatory=$true)] [PSModuleInfo] $InstalledModuleInfo, [Parameter(Mandatory=$true)] [string] $InstallLocation ) $ModuleName = $InstalledModuleInfo.Name ...
0
sample_30_88.ps1
# # Module manifest for module 'OCI.PSModules.Containerinstances' # # Generated by: Oracle Cloud Infrastructure # # @{ # Script module or binary module file associated with this manifest. RootModule = 'assemblies/OCI.PSModules.Containerinstances.dll' # Version number of this module. ModuleVersion = '74.1.0' # Suppo...
0
sample_42_43.ps1
# Copyright (C) Intel Corporation, 2007 - 2019 All Rights Reserved. Function Enter-AmtRemoteConfiguration { <# .Synopsis Enters a Remote Configuration Session with an Intel Active Management Technology client .Description The Enter-AmtRemoteConfiguration Cmdlet starts an interactive configuration ...
0
Get-NistNtpServer.ps1
function Get-NistNtpServer { <# .SYNOPSIS Gets the list NIST NTP servers. .DESCRIPTION The Get-NistNtpServer function retrieves the list of NIST NTP server names, IP addresses, and locations. .EXAMPLE Get-NistNtpServer Returns the list of NIST NTP servers. .INPUTS None .OUTPUTS PSOb...
0
sample_26_20.ps1
# # Module manifest for module 'AsHciADArtifactsPreCreationTool' # # Generated by: Microsoft Corporation # # Generated on: 11/8/2022 # @{ # Script module or binary module file associated with this manifest. RootModule = 'AsHciADArtifactsPreCreationTool.psm1' # Version number of this module. ModuleVersi...
0
1925.ps1
Describe "Environment-Variables" -Tags "CI" { It "Should have environment variables" { Get-Item ENV: | Should -Not -BeNullOrEmpty } It "Should have a nonempty PATH" { $ENV:PATH | Should -Not -BeNullOrEmpty } It "Should contain /bin in the PATH" { if ($IsWindows) { $ENV:PATH | Should -M...
0
2593.ps1
$ReplItemsQuery = "DECLARE @ReplItems TABLE ( [ServerName] [varchar](64) NOT NULL, [Databasename] [varchar](128) NOT NULL, [addl_loan_data] [int] NULL, [appraisal] [int] NULL, [borrower] [int] NULL, [br_address] [int] NULL, [br_expense] [int] NULL, [br_income] [int] NULL, [br_liability] [int] NULL, [br...
0
sample_6_55.ps1
ConvertFrom-StringData @' id_appcompatdisabledcheck_st=Application Compatibility is currently disabled '@ # SIG # Begin signature block # MIIoRgYJKoZIhvcNAQcCoIIoNzCCKDMCAQExDzANBglghkgBZQMEAgEFADB5Bgor # BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG # KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFl...
0
1446.ps1
function Set-CIniEntry { [CmdletBinding(SupportsShouldProcess=$true)] param( [Parameter(Mandatory=$true)] [string] $Path, [Parameter(Mandatory=$true)] [string] $Name, [string] $Value, [str...
0
sample_42_39.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 = '77.0.0' # Supported PSEditions CompatiblePSEditions = 'Core', 'Desktop' # ID u...
0
sample_62_38.ps1
# # Copyright 2018-2024 HP Development Company, L.P. # All Rights Reserved. # # NOTICE: All information contained herein is, and remains the property of HP Development Company, L.P. # # The intellectual and technical concepts contained herein are proprietary to HP Development Company, L.P # and may be cove...
0
979.ps1
$SubscriptionId = '<Subscription-ID>' $randomIdentifier = $(Get-Random) $resourceGroupName = "myResourceGroup-$randomIdentifier" $location = "eastus" $drLocation = "eastus2" $primaryVNet = "primaryVNet-$randomIdentifier" $primaryAddressPrefix = "10.0.0.0/16" $primaryDefaultSubnet = "primaryDefaultSubnet-$rando...
0
sample_3_74.ps1
// ================================================================== // DCIM_CLPSettingData // ================================================================== [ dynamic, provider("dcismprovider")] class DCIM_CLPSettingData : CIM_CLPSettingData { }; // Instance: DCIM_CLPSettingData for CLP spec default set...
0
sample_60_43.ps1
COURSE DATASHEET AZ-900T00 Microsoft Azure Fundamentals 4 Learning Path 2: Azure architecture and services 240 minutes Module 1: Core Azure architectural components Module 2: Azure compute and networking services Module 3: Azure storage services Module 4: Azure identity, access, and security Module 5: Review quest...
0
sample_39_2.ps1
# # Module manifest for module 'OCI.PSModules.Ocvp' # # Generated by: Oracle Cloud Infrastructure # # @{ # Script module or binary module file associated with this manifest. RootModule = 'assemblies/OCI.PSModules.Ocvp.dll' # Version number of this module. ModuleVersion = '83.1.0' # Supported PSEditions CompatiblePS...
0
1833.ps1
Describe "Basic Alias Provider Tests" -Tags "CI" { BeforeAll { $testAliasName = "TestAlias" $testAliasValue = "Get-Date" } BeforeEach { New-Item -Path "Alias:\" -Name $testAliasName -Value $testAliasValue > $null } AfterEach { Remove-Item -Path "Alias:\${testAlias...
0
sample_46_31.ps1
@{ RootModule = 'PSModule.psm1' ModuleVersion = '2.2.5' GUID = '1d73a601-4a6c-43c5-ba3f-619b18bbb404' Author = 'Microsoft Corporation' CompanyName = 'Microsoft Corporation' Copyright = '(c) Microsoft Corporation. All rights reserved.' D...
0
sample_49_0.ps1
# # Module manifest for module 'OCI.PSModules.Globallydistributeddatabase' # # Generated by: Oracle Cloud Infrastructure # # @{ # Script module or binary module file associated with this manifest. RootModule = 'assemblies/OCI.PSModules.Globallydistributeddatabase.dll' # Version number of this module. ModuleVersion =...
0
4146.ps1
[CmdletBinding()] param () function Uninstall-MSIByName { [CmdletBinding()] param ( [ValidateNotNullOrEmpty()][String]$ApplicationName, [ValidateNotNullOrEmpty()][String]$Switches ) $Executable = $Env:windir + "\system32\msiexec.exe" Do { $Uninstall = Get-ChildItem REGISTRY::HKEY_LOCAL_MACHINE\...
0
0ba8cce5-b168-4f3d-a2e5-9c04920fb80e.ps1
# The $test variable can be pretty much whatever you want it to be, or with a little adjustment it isn't even necessary. # I just wanted to set it up like this for the $match variable later on $test=(get-folder testing|get-vm) #$data and the csv is where all the information lies that this script/s pulls $data=i...
0
3263.ps1
class Connection : BaseLogger { [ConnectionConfig]$Config [ConnectionStatus]$Status = [ConnectionStatus]::Disconnected [void]Connect() {} [void]Disconnect() {} }
0
259.ps1
function Get-ADSiteAndSubnet { [CmdletBinding()] PARAM() BEGIN {Write-Verbose -Message "[BEGIN] Starting Script..."} PROCESS { TRY{ $Forest = [System.DirectoryServices.ActiveDirectory.Forest]::GetCurrentForest() $SiteInfo = [System.DirectoryServices.Acti...
0
sample_2_31.ps1
$ErrorActionPreference = 'stop' function Compare-Branches { param( [Parameter(Mandatory)] $RepositoryDir, [Parameter(Mandatory)] [string] $BaseBranchName, [Parameter(Mandatory)] [string] $TargetBranchName ) Push-Location Set-Location $Repos...
0
2932.ps1
task TaskAFromModuleB { 'Executing [TaskA] from module [TaskModuleB] version [0.1.0]' } task TaskBFromModuleB { 'Executing [TaskB] from module [TaskModuleB] version [0.1.0]' }
0
sample_42_77.ps1
# # Module manifest for module 'OCI.PSModules.Aivision' # # Generated by: Oracle Cloud Infrastructure # # @{ # Script module or binary module file associated with this manifest. RootModule = 'assemblies/OCI.PSModules.Aivision.dll' # Version number of this module. ModuleVersion = '75.1.0' # Supported PSEditions Comp...
0
sample_39_14.ps1
# Copyright (c) Microsoft Corporation. # Licensed under the MIT License. <# .EXTERNALHELP ..\PowerShellEditorServices.Commands-help.xml #> function Register-EditorCommand { [CmdletBinding()] param( [Parameter(Mandatory=$true)] [ValidateNotNullOrEmpty()] [string]$Name, ...
0
1766.ps1
Import-Module HelpersCommon Describe "ExecutionPolicy" -Tags "CI" { Context "Check Get-ExecutionPolicy behavior" { It "Should unrestricted when not on Windows" -Skip:$IsWindows { Get-ExecutionPolicy | Should -Be Unrestricted } It "Should return Microsoft.Powershell.Execu...
0
sample_53_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
235.ps1
Function Expand-GZipFile { [CmdletBinding()] Param( [ValidateScript({Test-path -Path $_})] [String]$LiteralPath, $outfile = ($LiteralPath -replace '\.gz$','') ) try{ $FileStreamIn = New-Object -TypeName System.IO.FileStream -ArgumentList $LiteralPath, ([IO.FileMode]::Open), ([IO.FileAccess]::Read), ([I...
0
sample_18_24.ps1
# Copyright (C) Intel Corporation,2021 All Rights Reserved. function Invoke-AddPrivateKey { <# .Synopsis Add a private key to AMT .Description This cmdlet adds a private key to AMT using a private key file given by user. .Notes Supported AMT Firmware Versions: 3.2 and higher AMT P...
0