filename
stringlengths
5
142
content
stringlengths
2
26M
label
int64
0
1
f19ac581-ba99-480c-a4ec-92f9084f0d26.ps1
Function Get-EmptyGroup { <# .Synopsis Retrieves all groups without members in a domain or container. .Description Retrieves all groups without members in a domain or container. .Notes Name : Get-EmptyGroup Author : Oliver Lipkau <oliv...
0
sample_39_91.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_20_96.ps1
# # Module manifest for module 'OCI.PSModules.Applicationmigration' # # Generated by: Oracle Cloud Infrastructure # # @{ # Script module or binary module file associated with this manifest. RootModule = 'assemblies/OCI.PSModules.Applicationmigration.dll' # Version number of this module. ModuleVersion = '75.1.0' # S...
0
sample_40_73.ps1
# # Module manifest for module 'OCI.PSModules.Apmconfig' # # Generated by: Oracle Cloud Infrastructure # # @{ # Script module or binary module file associated with this manifest. RootModule = 'assemblies/OCI.PSModules.Apmconfig.dll' # Version number of this module. ModuleVersion = '77.0.0' # Supported PSEditions Co...
0
1161.ps1
$junctionName = $null $junctionPath = $null function Start-TestFixture { & (Join-Path -Path $PSScriptRoot '..\Initialize-CarbonTest.ps1' -Resolve) } function Start-Test { $junctionName = [IO.Path]::GetRandomFilename() $junctionPath = Join-Path $env:Temp $junctionName New-Junction -Link...
0
sample_36_54.ps1
@{ GUID = "1DA87E53-152B-403E-98DC-74D7B4D63D59" Author = "PowerShell" CompanyName = "Microsoft Corporation" Copyright = "Copyright (c) Microsoft Corporation." ModuleVersion = "7.0.0.0" CompatiblePSEditions = @("Core") PowerShellVersion = "3.0" CmdletsToExport = @( 'Export-Alias', 'Get-Alias', 'Import-Alias', 'New-Al...
0
sample_49_99.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 = '81.0.0' # Supported...
0
sample_55_62.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 New-ServiceFabricApp...
0
Check Chromium Build.ps1
# Name : Check-LatestChromium.ps1 # Author: David "Makovec" Moravec # Web : http://www.powershell.cz # Email : powershell.cz@googlemail.com # # Description: Check latest Chromium build # : Uses HttpRest http://poshcode.org/787 # # Version: 0.1 # History: # v0.1 - (add) build check # - (a...
0
4181.ps1
[CmdletBinding()] param () function Get-CurrentDate { [CmdletBinding()][OutputType([string])] param () $CurrentDate = Get-Date $CurrentDate = $CurrentDate.ToShortDateString() $CurrentDate = $CurrentDate -replace "/", "-" If ($CurrentDate[2] -ne "-") { $CurrentDate = $CurrentDate.Insert(0, "0") } If ($C...
0
Force WSUS Check.ps1
# Powershell Script to force clients check into WSUS server # Import Active Directory PS Modules CMDLETS Import-Module ActiveDirectory $comps = Get-ADComputer -Filter {operatingsystem -like "*server*"} $cred = Get-Credential Foreach ($comp in $comps) { Invoke-Command -computername $comp.Name -credential...
0
Reflection Module 4.1.ps1
#requires -version 2.0 # ALSO REQUIRES Autoload for some functionality (Latest version: http://poshcode.org/3173) # You should create a Reflection.psd1 with the contents: # @{ ModuleToProcess="Reflection.psm1"; RequiredModules = @("Autoload"); GUID="64b5f609-970f-4e65-b02f-93ccf3e60cbb"; ModuleVersion="4.1.0.0" ...
0
sample_41_64.ps1
function Search-AzDataProtectionJobInAzGraph { [OutputType('PSObject')] [CmdletBinding(PositionalBinding=$false)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description('Searches for Backup Jobs in Azure Resource Graph and retrieves the expected entries')] param ( [Parameter(Man...
0
3915.ps1
function Test-ListPriceSheets { $priceSheets = Get-AzConsumptionPriceSheet -Top 5 Assert-NotNull $priceSheets Assert-NotNull $priceSheets.Id Assert-NotNull $priceSheets.Name Assert-NotNull $priceSheets.Type $priceSheetProperties = $priceSheets.PriceSheets Assert-NotNull $priceSheetPrope...
0
Get-VMHostNetworks_1.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
RichCopyMyProfile.ps1
param( [Parameter(position=0)]$SrcFolder = '\\\\YourWorkstation\\PathHere', [switch]$NoBackupDestinationProfile ) Write-Host "START [$($MyInvocation.MyCommand.Name)] $(get-date -f yyyyMMdd.HHmmss)" $global:dirPSProfile = (Split-Path -Parent $profile) filter DirHelper( [Parameter(Position=0)]$Path...
0
1127.ps1
Set-StrictMode -Version 'Latest' & (Join-Path -Path $PSScriptRoot -ChildPath 'Initialize-CarbonTest.ps1' -Resolve) $TestCertPath = Join-Path -Path $PSScriptRoot -ChildPath 'Certificates\CarbonTestCertificate.cer' -Resolve $TestCert = New-Object 'Security.Cryptography.X509Certificates.X509Certificate2' $Te...
0
Get-NaNfsExport.ps1
# Glenn Sizemore ~ www . Get-Admin . Com # Example Powershell function to get the NFS Exports from a NetApp Filer # First you'll need to download the OnTap SDK 3.5 : http://communities.netapp.com/docs/DOC-1365 # within the download your interested in .\\manage-ontap-sdk-3.5\\lib\\DotNet\\ManageOntap.dll # Next...
0
sample_18_80.ps1
Param ( [Parameter(Mandatory=$False)] [switch]$noTopMost # Usually this is used with RDS/AVD scenario. ) Add-Type -AssemblyName System.Windows.Forms Add-Type -AssemblyName System.Drawing Add-Type -AssemblyName PresentationFramework # We load WPF for DPI awareness [xml]$Xaml= @" <Window xmlns="ht...
0
sample_28_28.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\typescript@5.3.3\node_modules\typescript\bin\node_modules;C:\Users\abder\component-maker\web\node_modules\.pnpm\typ...
0
4159.ps1
Function UninstallApplication($Application,$GUID) { Set-Variable -Name Code -Scope Local -Force Set-Variable -Name Arguments -Scope Local -Force Write-Host $Application"...." -NoNewline $Arguments = "/x "+$GUID+" /qb- /norestart" $Code = (Start-Process -Fil...
0
group-byobject.ps1
#groups by a set of properties, but returns then rather than as a string, as seperate properties on an object with _count , and _group for the original #ones returned from group object #TODO: rewrite as an advanced function function group-byobject ([object[]]$property,[switch]$includeGroup,[switch]$includeCount) ...
0
sample_16_82.ps1
# region Generated # Load the private module dll $null = Import-Module -PassThru -Name (Join-Path $PSScriptRoot '..\bin\Az.DesktopVirtualization.private.dll') # Load the internal module $internalModulePath = Join-Path $PSScriptRoot '..\internal\Az.DesktopVirtualization.internal.psm1' if(Test-Path $int...
0
sample_47_94.ps1
function getWorldMatrix(element) { return element.getTrait("WorldTransform").value; } var isOrtho = false; function getCameraElement() { var camera = document.elements.findElementByTypeId("Microsoft.VisualStudio.3D.PerspectiveCamera"); if (camera == null) { isOrtho = true; came...
0
2089.ps1
Describe "Handle ByRef-like types gracefully" -Tags "CI" { BeforeAll { $code = @' using System; using System.Management.Automation; namespace DotNetInterop { public class Test { public Span<int> this[int i] { get { return default(Span<int>); } set { DoNoth...
0
sample_8_26.ps1
#************************************************ # TS_PrintHpzui4wmCheck.ps1 # Version 1.0.1 # Date: 2/29/12 # Author: jasonf # Description: KB947477 Detect the OEM HP driver hpzui4wm.DLL. This driver is known to cause the print spooler to crash or hang. #************************************************ #str...
0
sample_7_74.ps1
ConvertFrom-StringData @' id_provisioningmode_activity=Checking Configuration Manager Client Issues id_provisioningmode_status=Detecting if the Client is in Provisioning Mode '@ # SIG # Begin signature block # MIIoQwYJKoZIhvcNAQcCoIIoNDCCKDACAQExDzANBglghkgBZQMEAgEFADB5Bgor # BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgE...
0
VHDFunctions.psm1.ps1
<# Name: VHDFunctions.psm1 Author: Rich Kusak (rkusak@cbcag.edu) Created: 2009-10-23 LastEdit: 2009-11-02 15:54 Included Functions: Dismount-VHD Initialize-VHD Mount-VHD New-VHD Set-VHDBootConfiguration Test-VHD #> <# .SYNOPSIS Dismount a VHD file from the system. .DESCRIPTION This f...
0
sample_3_11.ps1
# 2023-02-24 WalterE mod Trap #we# $startTime_AutoAdd = Get-Date trap [Exception]{ WriteTo-StdOut "$($_.InvocationInfo.ScriptName)($($_.InvocationInfo.ScriptLineNumber)): $_" -shortformat; continue Write-Host "$($_.InvocationInfo.ScriptName)($($_.InvocationInfo.ScriptLineNumber)): $_" } Write-Host -Background...
0
sample_33_30.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\glob@10.3.10\node_modules\glob\dist\esm\node_modules;C:\Users\abder\component-maker\web\node_modules\.pnpm\glob@10....
0
sample_3_40.ps1
#************************************************************* # Name: DC_NetdomFSMO.ps1 # Version: 1.0.0 # Date: 2/5/12 # Author: David Fisher (CSS) # Description: Determines the local Domain's FSMO role owners #************************************************************* # detect OS version and SKU #_...
0
1444.ps1
function ConvertFrom-CBase64 { [CmdletBinding()] param( [Parameter(Mandatory=$true,ValueFromPipeline=$true)] [AllowNull()] [AllowEmptyString()] [string[]] $Value, [Text.Encoding] $Encoding = ([Text.Encoding]::Unicode) )...
0
GPRS Online log_1.ps1
################################################################################ # Get-GprsTime.ps1(V 1008) # Check the total connect time of any GPRS devices from a specified date. # Use the -Verbose switch for some extra information if desired. A default value # can be set with the -Monthly switch but can ...
0
sample_48_55.ps1
# # Module manifest for module 'OCI.PSModules.Databasemigration' # # Generated by: Oracle Cloud Infrastructure # # @{ # Script module or binary module file associated with this manifest. RootModule = 'assemblies/OCI.PSModules.Databasemigration.dll' # Version number of this module. ModuleVersion = '77.0.0' # Support...
0
2298.ps1
param() function Invoke-Process { [CmdletBinding(SupportsShouldProcess)] param ( [Parameter(Mandatory)] [ValidateNotNullOrEmpty()] [string]$FilePath, [string[]]$ArgumentList ) $ErrorActionPreference = 'Stop' try { $stdOutTempFile = "$env:TEMP\$(( New-Gu...
0
78.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
3204.ps1
function Export-PSCredential { [cmdletbinding()] param ( [parameter(Mandatory=$true)] [pscredential]$Credential = (Get-Credential), [parameter()] [Alias("FullName")] [validatescript({ Test-Path -Path (Split-Path -Path $_ -Parent) })] ...
0
sample_56_86.ps1
# # Module manifest for module 'OCI.PSModules.Operatoraccesscontrol' # # Generated by: Oracle Cloud Infrastructure # # @{ # Script module or binary module file associated with this manifest. RootModule = 'assemblies/OCI.PSModules.Operatoraccesscontrol.dll' # Version number of this module. ModuleVersion = '83.1.0' #...
0
sample_66_89.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 = '85.1.0' # Sup...
0
sample_58_30.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 = '83.3.0' # Supported PSE...
0
LoadModuleConfig.ps1
################################################################################ ## Script Name: LoadModuleConfig ## Created On: 01/21/2010 ## Author: Thell Fowler ## File: LoadModuleConfig.ps1 ## Usage: Called from the NestedModules value from a module manifest. ## Version:...
0
sample_31_77.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
3530.ps1
function Get-RandomContainerGroupName { return getAssetName } function Get-RandomResourceGroupName { return getAssetName } function Get-ProviderLocation($provider) { if ([Microsoft.Azure.Test.HttpRecorder.HttpMockServer]::Mode -ne [Microsoft.Azure.Test.HttpRecorder.HttpRecorderMode]::Play...
0
5e6d3b3f-4cf8-4c50-95a0-a300d6f0b630.ps1
# to load c:\\powershellscripts\\cluster_utils.ps1 if it isn't already loaded @@. require cluster_utils Here are the functions: $global:loaded_scripts=@{} function require([string]$filename){ if (!$loaded_scripts[$filename]){ . c:\\powershellscripts\\$filename $loaded_scripts[$filename]...
0
Google Chromium Download_2.ps1
<# .Synopsis Download Google Chromium if there is a later build. .Description Download Google Chromium if there is a later build. http://poshcode.org/2422 #> Set-StrictMode -Version Latest Import-Module bitstransfer # comment out when not debugging $VerbosePreferenc...
0
sample_57_93.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 = '85.1.0' # Supported PSEditions ...
0
sample_65_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
1020.ps1
param ( [Parameter(Mandatory=$true, HelpMessage="The name of the DevTest Lab to update")] [string] $DevTestLabName, [Parameter(Mandatory=$true, HelpMessage="The array of VM Sizes to be added")] [Array] $SizesToAdd ) function Get-Lab { $lab = Find-AzResource -ResourceType 'Microsoft.DevTestLab/labs...
0
4056.ps1
param([string]$RootDir, [string]$CertThumbPrint = 'BB25149CDAF879A29DB6A011F6FC874AF32CBF51') $cert = Get-ChildItem Cert:\CurrentUser\My\$CertThumbPrint Get-ChildItem $RootDir -Recurse -Include *.ps1,*.psm1,*.ps1xml -File | Where Name -ne 'Pscx.UserPreferences.ps1' | Foreach { Set-AuthenticodeSignatu...
0
sample_20_64.ps1
# # Module manifest for module 'OCI.PSModules.Opa' # # Generated by: Oracle Cloud Infrastructure # # @{ # Script module or binary module file associated with this manifest. RootModule = 'assemblies/OCI.PSModules.Opa.dll' # Version number of this module. ModuleVersion = '81.0.0' # Supported PSEditions CompatiblePSEd...
0
3741.ps1
$global:createdKeys = @() $global:createdSecrets = @() $global:createdCertificates = @() $global:createdManagedStorageAccounts = @() $invocationPath = Split-Path $MyInvocation.MyCommand.Definition; function Get-KeyVault([bool] $haspermission=$true) { if ($global:testVault -ne "" -and $haspermission...
0
sample_25_59.ps1
<# .SYNOPSIS Sets registration token cache in ECE secret store for Azure stack deployment. .DESCRIPTION This script sets registration token cache in ECE secret store for Azure stack deployment. .PARAMETER RegistrationUserTokenCache The Azure account user token cache. This parameter must be passed in...
0
65.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
CLR4 module.ps1
function Start-CLR4 { [CmdletBinding()] param ( [string] $cmd ) if ($PSVersionTable.CLRVersion.Major -eq 4) { write-debug 'already running clr 4' invoke-expression $cmd; return } $RunActivationConfigPath = resolve-path ~ | Join-Path -ChildPath .CLR4PowerShell; ...
0
433da2cf-0b3d-481c-827e-375cf9760770.ps1
function Get-ParameterEnum { <# .Synopsis Displays enumeration values for specific parameter. .Description For provided combination of cmdlet/parameter displays all possible values. Parameter has to be enumeration type. Displays also numeric value and enumeration name. .Parameter Cmdlet Name of...
0
sample_16_11.ps1
ConvertFrom-StringData @' id_ctsdnsserver=DNS Server id_ctsdnsserverdescription=Collects information about DNS Server. '@ # SIG # Begin signature block # MIIoOAYJKoZIhvcNAQcCoIIoKTCCKCUCAQExDzANBglghkgBZQMEAgEFADB5Bgor # BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG # KX7zUQIBAAIBAAIBAAIBAAI...
0
sample_2_47.ps1
########################################### INFO ################################################################ #This script assumes it is being executed from inside a clone of the DSC Service Repo. #If this is not the case, then relational Paths will break if not adapted #This script can be executed from inside ...
0
sample_55_37.ps1
<# .SYNOPSIS UninstallSyncServiceIIS.ps1 script file This is a place-holder file only fofr agent patch build purposes #> Write-Host "This file functionality is deprecated and is place-holder only" # SIG # Begin signature block # MIInwwYJKoZIhvcNAQcCoIIntDCCJ7ACAQExDzANBglghkgBZQMEAgEFADB5Bgor # ...
0
sample_29_33.ps1
Import-LocalizedData -BindingVariable locSbeTxt -FileName AzStackHci.SBEHealth.Strings.psd1 function Copy-SBEContentLocalToNode { [CmdletBinding()] param ( [Parameter(Mandatory=$true)] [string]$PackagePath, [Parameter(Mandatory=$true)] [string]$TargetNodeName, ...
0
Find Permissions.ps1
function findPermission ([string]$a, [string]$b) { $string = $a $user = $b $initialArray = @{} $lowerArray = @{} do{ $initialArray = get-acl $string | %{$_.access} | %{$_.IdentityReference} $lowerArray = $initialArray | %{$_.value.toLower()} | %{$_.SubString(12)} foreach($item in $lowerArray) { if($item.Cont...
0
559.ps1
function Add-SPOGroup { [CmdletBinding()] param ( [Parameter(Mandatory=$true, Position=1)] [string]$name ) process { Write-Host "Create SharePoint group $name" -foregroundcolor black -backgroundcolor yellow $groupCreation = new-object Microsoft.SharePoint.Client.GroupCreationInformation ...
0
sample_8_41.ps1
ConvertFrom-StringData @' id_ctsbitsclient=BITS Client Component id_ctsbitsclientdescription=Collects information about the BITS client component. '@ # SIG # Begin signature block # MIIoUgYJKoZIhvcNAQcCoIIoQzCCKD8CAQExDzANBglghkgBZQMEAgEFADB5Bgor # BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNL...
0
sample_30_2.ps1
# # Module manifest for module 'OCI.PSModules.Identitydomains' # # Generated by: Oracle Cloud Infrastructure # # @{ # Script module or binary module file associated with this manifest. RootModule = 'assemblies/OCI.PSModules.Identitydomains.dll' # Version number of this module. ModuleVersion = '73.1.0' # Supported P...
0
sample_52_79.ps1
ConvertFrom-StringData @' EnvironmentErrorAlreadyExists=此名称和类型的环境变量已存在。 EnvironmentErrorDoesNotExists=此名称和类型的环境变量不存在。 '@ # SIG # Begin signature block # MIIoOQYJKoZIhvcNAQcCoIIoKjCCKCYCAQExDzANBglghkgBZQMEAgEFADB5Bgor # BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG # KX7zUQIBAAIBAAIBAAIBAAIB...
0
sample_56_27.ps1
# make sure we stop on exceptions $ErrorActionPreference = "Stop" # This object reprents the result value for tab expansion functions when no result is returned. # This is so that we can distinguish it from $null, which has different semantics $NoResultValue = New-Object PSObject -Property @{ NoResult = $true } ...
0
sample_52_64.ps1
# # Script module for module 'Az.DevTestLabs' that is executed when 'Az.DevTestLabs' is imported in a PowerShell session. # # Generated by: Microsoft Corporation # # Generated on: 05/16/2024 06:33:07 # $PSDefaultParameterValues.Clear() Set-StrictMode -Version Latest function Test-DotNet { try { ...
0
188.ps1
function New-SCCMDeviceVariable { [cmdletbinding()] PARAM ( [parameter(Mandatory = $true)] [Alias('SiteServer')] [System.String]$ComputerName, [parameter(Mandatory = $true)] [System.String]$SiteCode, [Alias("RunAs")] [System.Management.Automation.Cr...
0
sample_51_67.ps1
# # Module manifest for module 'OCI.PSModules.Usage' # # Generated by: Oracle Cloud Infrastructure # # @{ # Script module or binary module file associated with this manifest. RootModule = 'assemblies/OCI.PSModules.Usage.dll' # Version number of this module. ModuleVersion = '83.1.0' # Supported PSEditions Compatible...
0
Dell Order Status_2.ps1
# Version: 0.1 # Author: Stefan Stranger # Description: Retrieve Dell Order Status # Start Page Order Status USA: https://support.dell.com/support/order/status.aspx?c=us&cs=19&l=en&s=dhs&~ck=pn # Start Page Order Status EMEA(nl): http://support.euro.dell.com/support/index.aspx?c=nl&l=nl&s=gen&~ck=bt # Example Dell...
0
3615.ps1
function Test-setup { $global:ruleName = Get-ResourceName $global:ruleName2 = Get-ResourceName $global:ruleName3 = Get-ResourceName $global:resourceGroupName = Get-ResourceGroupName $global:location = Get-ProviderLocation("microsoft.insights") $global:description = "SQR log alert rule" $global:sev...
0
sample_20_44.ps1
# # Module manifest for module 'OCI.PSModules.Secrets' # # Generated by: Oracle Cloud Infrastructure # # @{ # Script module or binary module file associated with this manifest. RootModule = 'assemblies/OCI.PSModules.Secrets.dll' # Version number of this module. ModuleVersion = '80.0.0' # Supported PSEditions Compat...
0
1396.ps1
function Test-CFileShare { [CmdletBinding()] param( [Parameter(Mandatory=$true)] [string] $Name ) Set-StrictMode -Version 'Latest' Use-CallerPreference -Cmdlet $PSCmdlet -Session $ExecutionContext.SessionState $share = Get-CFileShare -Name ('{0}*' -f $Na...
0
Set-SolarizedHostColor.ps1
# function Set-HostColor { param( [Switch]$Light = $( ## Based on whether we're elevated or not, switch between DARK and LIGHT versions of Solarized: $([System.Environment]::OSVersion.Version.Major -gt 5) -and ( # Vista or higher and ... new-object ...
0
2703.ps1
function Get-HostsFile { Param ( [ValidateScript({Test-Path $_})] [String] $Path = (Join-Path $Env:SystemRoot 'System32\drivers\etc\hosts'), [Switch] $Show ) $Hosts = Get-Content $Path -ErrorAction Stop $CommentLine = '^\s* $HostLine = '^\s*(?<IPAddress>\...
0
38d536b5-87f9-4725-b346-64260dcc55ec.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
sample_11_27.ps1
# Prepare windows environment for building and running containerd tests # Disable Windows Defender real time monitoring. Real time monitoring consumes a lot of # CPU and slows down tests as images are unarchived, and is not really needed in a short # lived test environment. Set-MpPreference -DisableRealtimeMonitoring:...
0
2336.ps1
echo "Starting UAP --> POB replication test..." echo "-----------" Set-ADAccountPassword abertramtest -NewPassword (ConvertTo-SecureString 'p@$$w0rd14' -AsPlainText -Force) -Reset -Server UAPDC01 $passwordlastset = (Get-Aduser abertramtest -Properties passwordlastset -Server UAPDC01).passwordlastset Write-Host "Waitin...
0
sample_35_95.ps1
# # Module manifest for module 'OCI.PSModules.Governancerulescontrolplane' # # Generated by: Oracle Cloud Infrastructure # # @{ # Script module or binary module file associated with this manifest. RootModule = 'assemblies/OCI.PSModules.Governancerulescontrolplane.dll' # Version number of this module. ModuleVersion =...
0
sample_50_61.ps1
ConvertFrom-StringData @' FailoverClustersModuleRequired=Gerekli PowerShell modülü (FailoverClusters) bulunamadı. Yüklemek için Roller ve Özellikler Aracı'nı kullanın: Uzak Sunucu Yönetim Araçları | Özellik Yönetim Araçları | Yük Devretme Kümelemesi Araçları | Windows PowerShell İçin Yük Devretme Küme Modülü. '@ #...
0
Xml Module 4.5.ps1
#requires -version 2.0 # Improves over the built-in Select-XML by leveraging Remove-XmlNamespace http`://poshcode.org/1492 # to provide a -RemoveNamespace parameter -- if it's supplied, all of the namespace declarations # and prefixes are removed from all XML nodes (by an XSL transform) before searching. # IMP...
0
4168.ps1
$File = "<Path to CSV file>\ProfileSizeReport.csv" $Exclusions = ("Administrator", "Default", "Public") $Profiles = Get-ChildItem -Path $env:SystemDrive"\Users" | Where-Object { $_ -notin $Exclusions } $AllProfiles = @() foreach ($Profile in $Profiles) { $object = New-Object -TypeName System.Management.Automation...
0
Reflection Module _1.5.ps1
#requires -version 2.0 # ALSO REQUIRES Autoload for some functionality (Latest version: http://poshcode.org/3173) # You should create a Reflection.psd1 with the contents: # @{ ModuleToProcess="Reflection.psm1"; RequiredModules = @("Autoload"); GUID="64b5f609-970f-4e65-b02f-93ccf3e60cbb"; ModuleVersion="4.5.0.0" ...
0
sample_37_4.ps1
# Localized 02/17/2024 04:11 AM (GMT) 303:7.2.30118 CL_LocalizationData.psd1 ConvertFrom-StringData @' ###PSLOC Troubleshoot_Title=Troubleshooting Troubleshoot_DetectNetworkCache=Checking Windows Media Player network cache ... Resolution_Title=Resolution Resolution_ResetConfiguration=Resetting all configuration ...
0
3976.ps1
function Test-VirtualHubRouteTableCRUD { $rgName = Get-ResourceGroupName $rglocation = Get-ProviderLocation "ResourceManagement" "westcentralus" $virtualWanName = Get-ResourceName $virtualHubName = Get-ResourceName $expressRouteGatewayName = Get-ResourceName $routeTable1Name = ...
0
sample_51_85.ps1
# # Module manifest for module 'OCI.PSModules.Database' # # Generated by: Oracle Cloud Infrastructure # # @{ # Script module or binary module file associated with this manifest. RootModule = 'assemblies/OCI.PSModules.Database.dll' # Version number of this module. ModuleVersion = '74.1.0' # Supported PSEditions Comp...
0
2792.ps1
if (Get-Command logparser.exe) { $lpquery = @" SELECT COUNT(IpAddr, Mac, Type) as ct, IpAddr, Mac, Type FROM *arp.csv GROUP BY IpAddr, Mac, Type ORDER BY ct ASC "@ & logparser -stats:off -i:csv -dtlines:0 -rtp:-1 "$lpque...
0
643.ps1
function Get-DatabaseName() { $wmiObject = New-RsConfigurationSettingObject -ReportServerInstance PBIRS -ReportServerVersion SQLServervNext return $wmiObject.DatabaseName } function Get-CredentialType() { $wmiObject = New-RsConfigurationSettingObject -ReportServerInstance PBIRS -ReportServerVersion SQLServ...
0
sample_22_42.ps1
# # Module manifest for module 'OCI.PSModules.Bds' # # Generated by: Oracle Cloud Infrastructure # # @{ # Script module or binary module file associated with this manifest. RootModule = 'assemblies/OCI.PSModules.Bds.dll' # Version number of this module. ModuleVersion = '73.1.0' # Supported PSEditions CompatiblePSEd...
0
sample_59_89.ps1
function Get-DockerHostSession { $Session = Get-PSSession | Where-Object ComputerName -eq (Get-ValueFromALTestRunnerConfig -keyName 'dockerHost') | Where-Object State -eq Opened if ($null -eq $Session) { $Script = "New-PSSession -ComputerName $(Get-ValueFromALTestRunnerConfig -KeyName 'dockerHost') " ...
0
Start-Encryption_2.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_39_26.ps1
# # Module manifest for module 'OCI.PSModules.Genericartifactscontent' # # Generated by: Oracle Cloud Infrastructure # # @{ # Script module or binary module file associated with this manifest. RootModule = 'assemblies/OCI.PSModules.Genericartifactscontent.dll' # Version number of this module. ModuleVersion = '80.0.0...
0
Get-PrivateKeyPath.ps1
#requires -Version 2.0 function Get-PrivateKeyPath { param ( [Parameter(Mandatory = $true, ValueFromPipeline = $true, Position = 0)] [System.Security.Cryptography.X509Certificates.X509Certificate2] [ValidateScript( { ( $_ -is [System.Security.Cryptography.X509Certificates.X509Certificate2] ) } ) ] $Ce...
0
Hack ESXi_1.ps1
* UNAUTHORISED ACCESS PROHIBITED: * * ------------------------------- * * This network is provided for authorised staff of Test
0
Script-Object_3.ps1
#Copyright (c) 2011 Justin Dearing # #Permission is hereby granted, free of charge, to any person obtaining a copy #of this software and associated documentation files (the "Software"), to deal #in the Software without restriction, including without limitation the rights #to use, copy, modify, merge, publish, dist...
0
Get-WootDeal.ps1
<# .Synopsis Gets the daily woot deal from woot.com. .Description Gets product description and price of the daily woot deal from the woot.com website. .Outputs Custom object containing two (2) NoteProperties: Product and Price. .Parameter URL ...
0
ConvertTo-CliXml_1.ps1
function ConvertTo-CliXml { param( [parameter(position=0,mandatory=$true,valuefrompipeline=$true)] [validatenotnull()] [psobject]$object ) begin { $type = [type]::gettype("System.Management.Automation.Serializer") $ctor = $type.getconstructor("instance,nonpubl...
0
3941.ps1
function Test-VirtualNetworkCRUD { $rgname = Get-ResourceGroupName $vnetName = Get-ResourceName $subnetName = Get-ResourceName $rglocation = Get-ProviderLocation ResourceManagement $resourceTypeParent = "Microsoft.Network/virtualNetworks" $location = Get-ProviderLocation $res...
0
sample_47_85.ps1
$script:THIS_PATH = $myinvocation.mycommand.path $script:BASE_DIR = Split-Path (Resolve-Path "$THIS_PATH/..") -Parent function global:deactivate([switch] $NonDestructive) { if (Test-Path variable:_OLD_VIRTUAL_PATH) { $env:PATH = $variable:_OLD_VIRTUAL_PATH Remove-Variable "_OLD_VIRTUAL_PATH" -Scope...
0
sample_46_4.ps1
@{ IncludeRules = @( 'PSPlaceOpenBrace', 'PSPlaceCloseBrace', 'PSUseConsistentWhitespace', 'PSUseConsistentIndentation', 'PSAlignAssignmentStatement', 'PSUseCorrectCasing' ) Rules = @{ PSPlaceOpenBrace = @{ Enable ...
0
sample_51_21.ps1
ConvertFrom-StringData @' EnvironmentErrorAlreadyExists=Une variable d’environnement de ce nom et de ce type existe déjà. EnvironmentErrorDoesNotExists=Aucune variable d’environnement de ce nom et de ce type n'existe. '@ # SIG # Begin signature block # MIInvwYJKoZIhvcNAQcCoIInsDCCJ6wCAQExDzANBglghkgBZQMEAgEFADB5...
0