filename
stringlengths
5
142
content
stringlengths
2
26M
label
int64
0
1
1839.ps1
Describe "WSMan Config Provider" -Tag Feature,RequireAdminOnWindows { BeforeAll { $originalDefaultParameterValues = $PSDefaultParameterValues.Clone() $PSDefaultParameterValues["it:skip"] = !$IsWindows if ($IsWindows) { $badCredentialError = 1326 $pluginXm...
0
NewUser in AD_OCS_Email_1.ps1
# New User In PowerShell # ye110wbeard (EnergizedTech) Finally shuts up and writes a script that is USEFUL and doesn't sing about it # 7/15/2009 :) # And it couldn't have happened if it wasn't for the Powershell Community # # This script in many ways is VERY simple. I simply chose to use simple assignments i...
0
Get-PerformanceHistory _2.ps1
##requires -version 2.0 ## Get-PerformanceHistory.ps1 ############################################################################################################## ## Lets you see the amount of time recent commands in your history have taken ## History: ## v2.53 - added back the Lines, Words, and Characters .... ...
0
sample_59_2.ps1
# # Module manifest for module 'OCI.PSModules.Osuborganizationsubscription' # # Generated by: Oracle Cloud Infrastructure # # @{ # Script module or binary module file associated with this manifest. RootModule = 'assemblies/OCI.PSModules.Osuborganizationsubscription.dll' # Version number of this module. ModuleVersion...
0
Get-Tomorrow.ps1
##############################################################################\n## Get-Tomorrow\n##\n## Get the date that represents tomorrow\n##\n## From Windows PowerShell Cookbook (O'Reilly)\n## by Lee Holmes (http://www.leeholmes.com/guide)\n##\n######################################################################...
0
sample_63_67.ps1
# # Module manifest for module 'OCI.PSModules.Capacitymanagement' # # Generated by: Oracle Cloud Infrastructure # # @{ # Script module or binary module file associated with this manifest. RootModule = 'assemblies/OCI.PSModules.Capacitymanagement.dll' # Version number of this module. ModuleVersion = '85.1.0' # Suppo...
0
TabExpansion_7.ps1
## Tab-Completion ################# ## Please dot souce this script file. ## In first loading, it may take a several minutes, in order to generate ProgIDs and TypeNames list. ## Some features(relate to '$_' expansion) require the latest Get-PipelineObject.ps1 in a same diretory. (from http://poshcode.org/author/foo...
0
1190.ps1
Set-StrictMode -Version 'Latest' & (Join-Path -Path $PSScriptRoot -ChildPath 'Initialize-CarbonTest.ps1' -Resolve) function Assert-NoDocumentationMissing { param( [string[]] $CommandName ) Set-StrictMode -Version 'Latest' $CommandName | Should -BeNullOrEmpty -Because ("Th...
0
sample_24_54.ps1
# ------------------------------------------------------------ # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License (MIT). See License.txt in the repo root for license information. # ------------------------------------------------------------ ## ## TODO: Refactor the cer...
0
sample_22_53.ps1
# Localized 12/03/2020 06:20 PM (GMT) 303:4.80.0411 Add-AppDevPackage.psd1 # Culture = "en-US" ConvertFrom-StringData @' ###PSLOC PromptYesString=&Evet PromptNoString=&Hayır BundleFound=Demet bulundu: {0} PackageFound=Paket bulundu: {0} EncryptedBundleFound=Şifreli demet bulundu: {0} EncryptedPackageFound=Şif...
0
sample_12_22.ps1
##---------------------------------------------------------------------------- ## Copyright (c) Axis Communications AB, SWEDEN. All rights reserved. ##---------------------------------------------------------------------------- # Import shared functions and vars . ./Commonalities.ps1 # Script used to reinstall...
0
JSON 1.3.ps1
#requires -version 2.0\n# Version History:\n# v 0.5 - First Public version\n# v 1.0 - Made ConvertFrom-Json work with arbitrary JSON \n# - switched to xsl style sheets for ConvertTo-JSON\n# v 1.1 - Changed ConvertFrom-Json to handle single item results\n# v 1.2 - CodeSigned to make a fellow geek happy\n# v 1.3 - ...
0
sample_34_0.ps1
# region Generated # Load the private module dll $null = Import-Module -PassThru -Name (Join-Path $PSScriptRoot '..\bin\Az.ScheduledQueryRule.private.dll') # Get the private module's instance $instance = [Microsoft.Azure.PowerShell.Cmdlets.Monitor.ScheduledQueryRule.Module]::Instance # Export nothin...
0
sample_65_96.ps1
import{m as s}from"./index-D0knu95e.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166) * Released under the MIT license * https://github.com/microsoft/monaco-edit...
0
sample_41_11.ps1
# <copyright> # INTEL CONFIDENTIAL # # Copyright 2021 Intel Corporation # # This software and the related documents are Intel copyrighted materials, and your use of # them is governed by the express license under which they were provided to you ("License"). # Unless the License provides otherwise, you may not us...
0
453.ps1
Register-PSFConfigValidation -Name "long" -ScriptBlock { Param ( $Value ) $Result = New-Object PSOBject -Property @{ Success = $True Value = $null Message = "" } try { [long]$number = $Value } catch { $Result.Message = "Not a long: $Value" $Result.Success = $False return $Result } $Result...
0
sample_6_53.ps1
#************************************************ # TS_TelnetSystemAccount.ps1 # Version 1.0.1 # Date: 5/9/2012 # Author: v-blchen # Description: [Idea ID 2695] [Windows] Check the Log On account for the Telnet service to verify it's not using the Local System account # Rule number: 2695 # Rule URL: //sharepo...
0
99425dd4-2c85-40f1-9cc8-39300a810b7a.ps1
[reflection.assembly]::LoadWithPartialName("Microsoft.SharePoint") | out-null [reflection.assembly]::LoadWithPartialName("Microsoft.Office.Server") | out-null [reflection.assembly]::LoadWithPartialName("Microsoft.Office.Server.Search") | out-null #NOTE: I've set strict crawl freshness/crawl duration/success ratio ...
0
PoshCode ISE Addon.ps1
if (!(Get-Module WPK)) {Import-Module -global WPK} if (!(Get-Module PoshCode)) {Import-Module -global PoshCode} Function Get-PoshCodePreferences { if (Get-Item $global:xmlPath -ErrorAction SilentlyContinue) { try { $pcPreferences = Import-Clixml -Path $global:xmlPath $global:...
0
sample_2_23.ps1
# You may use this code and information and create derivative works of it, # provided that the following conditions are met: # 1. This code and information and any derivative works may only be used for # troubleshooting a) Windows and b) products for Windows, in either case using # the Windows Troubleshooting Platf...
0
sample_50_12.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
3854.ps1
function Test-SetNewIP { $peer = Get-AzPeering -ResourceGroupName testCarrier -Name "NewExchangePeeringCVS2160" $peerIpAddress = $peer.Connections[0].BgpSession.PeerSessionIPv4Address $offset = getPeeringVariable "offSet" (Get-Random -Maximum 100 -Minimum 1 | % { $_ * 2 } ) $newIpAddress ...
0
sample_40_66.ps1
# # Module manifest for module 'OCI.PSModules.Generativeai' # # Generated by: Oracle Cloud Infrastructure # # @{ # Script module or binary module file associated with this manifest. RootModule = 'assemblies/OCI.PSModules.Generativeai.dll' # Version number of this module. ModuleVersion = '75.1.0' # Supported PSEditi...
0
sample_56_69.ps1
# # Module manifest for module 'OCI.PSModules.Jmsjavadownloads' # # Generated by: Oracle Cloud Infrastructure # # @{ # Script module or binary module file associated with this manifest. RootModule = 'assemblies/OCI.PSModules.Jmsjavadownloads.dll' # Version number of this module. ModuleVersion = '85.1.0' # Supported...
0
sample_14_32.ps1
ConvertFrom-StringData @' IPAddressDisplayNameFormat=Adres IP: {0} NetworkNameDisplayNameFormat=Nazwa: {0} NetworkNameOfflineDisplayNameFormat=Adres IP: adres w sieci „{0}” CreateClusterProgressValidationStart=Weryfikowanie możliwości użycia serwerów w klastrze trybu failover. CreateClusterProgressValidationEnd=Za...
0
1823.ps1
Describe "Validate Copy-Item locally" -Tags "CI" { It "Copy-Item has non-terminating error if destination is in use" -Skip:(!$IsWindows) { Copy-Item -Path $env:windir\system32\cmd.exe -Destination TestDrive:\ $cmd = Start-Process -FilePath TestDrive:\cmd.exe -PassThru try { { ...
0
sample_48_34.ps1
# # Module manifest for module 'OCI.PSModules.Optimizer' # # Generated by: Oracle Cloud Infrastructure # # @{ # Script module or binary module file associated with this manifest. RootModule = 'assemblies/OCI.PSModules.Optimizer.dll' # Version number of this module. ModuleVersion = '75.1.0' # Supported PSEditions Co...
0
sample_15_98.ps1
#************************************************ # TS_SurfacePro3DetectWifiDriverVersion.ps1 # Version 1.0.09.19.14: Created and tested SurfacePro3 scripts from Sep12-19 # Version 1.1.10.09.14: Modified the detection method from file version to product version because the file version does not change between versio...
0
sample_21_94.ps1
# # Module manifest for module 'OCI.PSModules.Computecloudatcustomer' # # Generated by: Oracle Cloud Infrastructure # # @{ # Script module or binary module file associated with this manifest. RootModule = 'assemblies/OCI.PSModules.Computecloudatcustomer.dll' # Version number of this module. ModuleVersion = '77.0.0' ...
0
sample_27_1.ps1
# Localized 05/07/2022 02:58 AM (GMT) 303:7.0.30723 AssignedAccessMsg.psd1 # Localized resources for AssignedAccess.psm1 ConvertFrom-StringData @' ###PSLOC AppliedSettings=User and Application set, log on as this user to start Assigned Access ClearedSettings=Cleared Assigned Access, settings reset to factory defa...
0
Check Exchange2010 queue.ps1
# Script: Exch2010QueueMonitor.ps1 # Purpose: This script can be set as a scheduled task to run every 30minutes and will monitor all exchange 2010 queue's. If a threshold of 10 is met an # output file with the queue details will be e-mailed to all intended admins listed in the e-mail settings # Author: Papercl...
0
Get-HtmlHelp_2.ps1
Hello, I may have contacted you in the past, but wanted to reach out again to inquire about the possibility of advertising on your blog in the form of sponsored guest posts. Either I can have content written or you can write content that is relevant to your audience and helps to promote our client's service. We...
0
sample_61_65.ps1
# # Module manifest for module 'OCI.PSModules.Filestorage' # # Generated by: Oracle Cloud Infrastructure # # @{ # Script module or binary module file associated with this manifest. RootModule = 'assemblies/OCI.PSModules.Filestorage.dll' # Version number of this module. ModuleVersion = '89.0.0' # Supported PSEdition...
0
Findup_16.ps1
using System; using System.Collections; using System.Collections.Generic; using System.Text; using System.Security.Cryptography; using System.Runtime.InteropServices; using Microsoft.Win32; using System.IO; using System.Text.RegularExpressions; namespace Findup { public class FileLengthComparer : I...
0
1959.ps1
Describe "Get-Uptime" -Tags "CI" { BeforeAll { $IsHighResolution = [system.diagnostics.stopwatch]::IsHighResolution if ( ! $IsHighResolution ) { $origDefaults = $PSDefaultParameterValues.Clone() $PSDefaultParameterValues['it:skip'] = $true...
0
Get-RebootTime.ps1
$compres = Read-Host -message "Enter a computer name." $date = Get-WmiObject Win32_OperatingSystem -ComputerName $compres | foreach{$_.LastBootUpTime} $RebootTime = [System.DateTime]::ParseExact($date.split('.')[0],'yyyyMMddHHmmss',$null) $RebootTime
0
POC $psnull.ps1
$a = @" using System; namespace ClassLibrary1 { #proof of concept public static class Class1 { public static string Foo(string value) { if (value == null) return "Special processing of null."; else return "'" + value + "' has been processed."; } } } "@ $b = @" using System; namespace test...
0
sample_61_93.ps1
# # Module manifest for module 'OCI.PSModules.Emwarehouse' # # Generated by: Oracle Cloud Infrastructure # # @{ # Script module or binary module file associated with this manifest. RootModule = 'assemblies/OCI.PSModules.Emwarehouse.dll' # Version number of this module. ModuleVersion = '88.1.0' # Supported PSEdition...
0
sample_48_74.ps1
# # Module manifest for module 'OCI.PSModules.Emwarehouse' # # Generated by: Oracle Cloud Infrastructure # # @{ # Script module or binary module file associated with this manifest. RootModule = 'assemblies/OCI.PSModules.Emwarehouse.dll' # Version number of this module. ModuleVersion = '80.0.0' # Supported PSEdition...
0
222.ps1
function ConvertTo-StringList { [CmdletBinding()] [OutputType([string])] param ( [Parameter(Mandatory = $true, ValueFromPipeline = $true)] [System.Array]$Array, [system.string]$Delimiter = "," ) BEGIN { $StringList = "" } PROCESS { W...
0
Search-CertificateStore..ps1
##############################################################################\n##\n## Search-CertificateStore\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
Get-PipeLineObject_1.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
Get-SiSReport_3.ps1
Function Get-SiSReport { <# .SYNOPSIS Get the overall SIS usage information. .DESCRIPTION This function uses the sisadmin command to get the usage information for a SIS enabled drive. .PARAMETER SisDisk The drive letter of a disk that ...
0
251.ps1
Function Invoke-Ping { [cmdletbinding(DefaultParameterSetName = 'Ping')] param ( [Parameter(ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Position = 0)] [string[]]$ComputerName, [Parameter(ParameterSetName = 'Detail')] ...
0
2381.ps1
function Find-TroubleshootingEvent { [OutputType()] [CmdletBinding()] param ( [Parameter()] [ValidateNotNullOrEmpty()] [string[]]$ComputerName = (hostname), [Parameter()] [ValidateNotNullOrEmpty()] [int]$EventId ) try { @($ComputerName).foreach({ $computer = $_ $getEventParams = @{ Compu...
0
RunSSIS_1.ps1
# --------------------------------------------------------------------------- ### <Script> ### <Author> ### Chad Miller ### </Author> ### <Description> ### Executes SSIS package for both server and file system storage types. ### </Description> ### <Usage> ### -------------------------- EXAMPLE 1 ------------...
0
ShowUI Text Converter.ps1
#Import-Module showui $Windowparam = @{ Width = 500 Height = 400 Title = 'Fun Text Converter' Background = '#C4CBD8' WindowStartupLocation = 'CenterScreen' AsJob = $True } #Create Window New-Window @Windowparam { New-Grid -Rows *,Auto,*,Auto -Children { New-TextBox -Row...
0
New-XVM_4.ps1
#Examples <# New-XVM -Name "WS2012-TestServer01" -SwitchName "Switch(192.168.2.0/24)" -VhdType NoVHD New-XVM -Name "WS2012-TestServer02" -SwitchName "Switch(192.168.2.0/24)" -VhdType ExistingVHD -VhdPath 'D:\\vhds\\WS2012-TestServer02.vhdx' New-XVM -Name "WS2012-TestServer03" -SwitchName "Switch(192.168.2.0/24)" ...
0
sample_59_43.ps1
$ServerCertificateName = "CN=ServiceFabricServerCert" $ClientCertificateName = "CN=ServiceFabricClientCert" function IsSecurityX509([string]$ClusterConfigFilePath) { $jsonConfig = Get-Content $ClusterConfigFilePath -Raw | ConvertFrom-Json $properties = $jsonConfig.properties if ($properties -ne $Nul...
0
sample_67_3.ps1
$ServerCertificateName = "CN=ServiceFabricServerCert" $ClientCertificateName = "CN=ServiceFabricClientCert" function IsSecurityX509([string]$ClusterConfigFilePath) { $jsonConfig = Get-Content $ClusterConfigFilePath -Raw | ConvertFrom-Json $properties = $jsonConfig.properties if ($properties -ne $Nul...
0
finddupe_4.ps1
function Get-MD5([System.IO.FileInfo] $file = $(throw 'Usage: Get-MD5 [System.IO.FileInfo]')) { $stream = $null; $cryptoServiceProvider = [System.Security.Cryptography.MD5CryptoServiceProvider]; $hashAlgorithm = new-object $cryptoServiceProvider $stream = $file.OpenRead(); $hashByteArray = $hashA...
0
sample_54_35.ps1
COURSE DATASHEET MS-900T01A Microsoft 365 Fundamentals 6 Learning path 2: Describe Microsoft 365 apps and services Module 1: What is Microsoft 365? 1. Introduction 2. Describe the differences between Office 365 and Microsoft 365 3. Describe Windows 365 4. Describe how Microsoft 365 empowers workers in this hybrid ...
0
sample_21_44.ps1
[ "if" "elseif" "else" "switch" ] @keyword.control.conditional [ "foreach" "for" "while" "do" "until" ] @keyword.control.repeat [ "break" "continue" "return" ] @keyword.control.return "in" @keyword.operator "function" @keyword.function [ "class" "enum" ] @keyword.storage.type [ "para...
0
sample_60_41.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 = '85.1.0' # Sup...
0
sample_2_68.ps1
# # Module manifest for module 'OCI.PSModules.Waf' # # Generated by: Oracle Cloud Infrastructure # # @{ # Script module or binary module file associated with this manifest. RootModule = 'assemblies/OCI.PSModules.Waf.dll' # Version number of this module. ModuleVersion = '92.1.0' # Supported PSEditions CompatiblePSEd...
0
1049.ps1
& (Join-Path -Path $PSScriptRoot -ChildPath '..\Initialize-CarbonTest.ps1' -Resolve) if( Test-AdminPrivilege ) { $originalTrustedHosts = $null function Start-Test { $originalTrustedHosts = @( Get-TrustedHost ) Clear-TrustedHost } function Stop-Test { if( $...
0
673.ps1
$reportServerUri = if ($env:PesterServerUrl -eq $null) { 'http://localhost/reportserver' } else { $env:PesterServerUrl } Function Set-FolderReportDataSource { param ( [string] $NewFolderPath ) $tempProxy = New-RsWebServiceProxy -ReportServerUri $reportServerUri $localResources...
0
sample_40_88.ps1
/* ----------------------------------------------------------------------- Copyright (c) Microsoft Corporation. All rights reserved. ----------------------------------------------------------------------- */ let pluginUrl = window.chrome.webview.hostObjects.sync.external.GetPluginUrl(); let scripts = [plug...
0
1206.ps1
& (Join-Path -Path $PSScriptRoot -ChildPath 'Initialize-CarbonTest.ps1' -Resolve) Describe 'ConvertTo-ProviderAccessControlRights' { BeforeAll { } InModuleScope 'Carbon' { It 'should convert file system value' { (ConvertTo-ProviderAccessControlRights -ProviderName 'File...
0
sample_63_14.ps1
# # Module manifest for module 'OCI.PSModules.Datasafe' # # Generated by: Oracle Cloud Infrastructure # # @{ # Script module or binary module file associated with this manifest. RootModule = 'assemblies/OCI.PSModules.Datasafe.dll' # Version number of this module. ModuleVersion = '85.2.0' # Supported PSEditions Comp...
0
sample_67_37.ps1
# # Add-AppxDevPackage.ps1 is a PowerShell script designed to install app # packages created by Visual Studio for developers. To run this script from # Explorer, right-click on its icon and choose "Run with PowerShell". # # Visual Studio supplies this script in the folder generated with its # "Prepare Package" c...
0
New-PSOCustomObject.ps1
# References: # http://blogs.msdn.com/powershell/archive/2009/12/05/new-object-psobject-property-hashtable.aspx # http://poshoholic.com/2008/07/03/essential-powershell-name-your-custom-object-types/ # http://poshoholic.com/2008/07/05/essential-powershell-define-default-properties-for-custom-objects/ function New-...
0
873.ps1
$here = Split-Path -Parent $MyInvocation.MyCommand.Path $sut = (Split-Path -Leaf $MyInvocation.MyCommand.Path) -replace '\.Tests', '' . "$here\$sut" $clusterName = $ENV:ClusterName $httpUserPassword = $ENV:HttpPassword $securePassword = ConvertTo-SecureString $httpUserPassword -AsPlainText -Force $creds = New-Object -...
0
sample_28_74.ps1
# # Module manifest for module 'OCI.PSModules.Aidocument' # # Generated by: Oracle Cloud Infrastructure # # @{ # Script module or binary module file associated with this manifest. RootModule = 'assemblies/OCI.PSModules.Aidocument.dll' # Version number of this module. ModuleVersion = '83.2.0' # Supported PSEditions ...
0
sample_34_79.ps1
# Copyright (c) Microsoft Corporation. # Licensed under the MIT License. Microsoft.PowerShell.Management\Get-Item function:Clear-Host | Microsoft.PowerShell.Management\Set-Item function:__clearhost function Clear-Host { [Alias('cls')] param() __clearhost if ($host.Runspace.LanguageMode -eq ...
0
sample_39_52.ps1
# Copyright (C) Intel Corporation, 2007 - 2019 All Rights Reserved. Function Get-AmtSetup { <# .Synopsis Returns Intel Active Management Technology setup information .Description This CmdLet gets Intel Active Management Technology (AMT) setup information from the local system. .Notes ME Dev...
0
sample_61_64.ps1
@{ GUID="c61d6278-02a3-4618-ae37-a524d40a7f44 " Author="PowerShell" CompanyName="Microsoft Corporation" Copyright="Copyright (c) Microsoft Corporation." ModuleVersion="7.0.0.0" CompatiblePSEditions = @("Core") PowerShellVersion="3.0" ModuleToProcess="PSDiagnostics.psm1" Func...
0
1539.ps1
function Stop-MrPendingService { [CmdletBinding()] param ( [Parameter(ValueFromPipeline)] [ValidateNotNullorEmpty()] [string[]]$ComputerName = $env:COMPUTERNAME, [System.Management.Automation.Credential()]$Credential = [System.Management.Automation.PSCredential]::Empty ) ...
0
1977.ps1
Describe "Update-List Tests" -Tag CI { BeforeEach { $testObj = [pscustomobject]@{a = [System.Collections.ArrayList]::new(@(1,2,3))} } It "-Add works" { $testObj | Update-List -Property a -Add 4 $testObj.A | Should -Be 1,2,3,4 } It "-Remove works" { Update-List -...
0
Out-Working.ps1
## You'll want to dot-source this into your script ## To change colors, specify the parameters: ## . Scripts\\OutWorkingScript.ps1 "Yellow" "Blue" ## ## Then you can show progress like this: ## ## $x = 1..50 | out-working 50 ## ## Notice that the $wait parameter is only needed if there will not ## be enough...
0
3902.ps1
function Test-AddApplication { $applicationName = "test" $applicationVersion = "foo" $context = New-Object Microsoft.Azure.Commands.Batch.Test.ScenarioTests.ScenarioTestContext try { $addAppPack = New-AzBatchApplication -AccountName $context.AccountName -ApplicationName...
0
Prevent-Screensaver.ps1
######################################################### # Prevent-Screensaver ######################################################### # This script "presses" a keyboard key every minute # for specified number of minutes which makes # Windows "think" you are at your desktop # so the screensaver does not start ...
0
sample_31_34.ps1
# # Module manifest for module 'Az.StreamAnalytics' # # Generated by: Microsoft Corporation # # Generated on: 23/04/2024 # @{ # Script module or binary module file associated with this manifest. RootModule = 'Az.StreamAnalytics.psm1' # Version number of this module. ModuleVersion = '2.0.1' # Support...
0
New-StoredProcFunction_1.ps1
# New-StoredProcFunction.ps1 # Steven Murawski # http://blog.usepowershell.com # 04/08/2009 # Example: ./New-StoredProcFunction.ps1 'DataSource=MySqlServer;Database=Northwind;User=AnythingButSa;Password=abc123' sp_createnewcustomer # Example 'sp_createnewcustomer | ./New-StoredProcFunction.ps1 'DataSource=MySqlS...
0
sample_65_63.ps1
# # Module manifest for module 'ThreadJob' # @{ # Script module or binary module file associated with this manifest. RootModule = '.\Microsoft.PowerShell.ThreadJob.dll' # Version number of this module. ModuleVersion = '2.0.3' # ID used to uniquely identify this module GUID = '0e7b895d-2fec-43f7-8cae-11...
0
sample_50_38.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 = '75.1.0' # Supported PSEdi...
0
sample_32_64.ps1
# Copyright (C) Intel Corporation, 2007 - 2019 All Rights Reserved. Function Set-AMTAlarmClock { <# .Synopsis Sets a Intel Active Management Technology alarm clock timer .Description This CmdLet allows the user to set a wake timer on clients that have Intel Active Management Technology (AMT) firmwa...
0
Get-LockoutInfo.ps1
<###################################################### # Find Lockout Events # # # # Pre-Requisites: Domain Admin Rights, Writeable # # C:\\temp directory on both the local machine and # # the domain controllers. ...
0
2762.ps1
function GetBase64GzippedStream { Param( [Parameter(Mandatory=$True,Position=0)] [System.IO.FileInfo]$File ) $memFile = New-Object System.IO.MemoryStream (,[System.IO.File]::ReadAllBytes($File)) $memStrm = New-Object System.IO.MemoryStream $gzStrm = New-Object Syste...
0
sample_25_73.ps1
# Copyright (c) 2020 Ansible Project # Simplified BSD License (see licenses/simplified_bsd.txt or https://opensource.org/licenses/BSD-2-Clause) Function Get-AnsibleWindowsWebRequest { <# .SYNOPSIS Creates a System.Net.WebRequest object based on common URL module options in Ansible. .DESCRIPTION Wi...
0
sample_2_65.ps1
#************************************************ # TS_TCPIPSettingsCheck.ps1 # Version 1.0.1 # Date: 03-27-2011 # Author: v-anecho # Description: Checks if a Kyocera print driver is installed then checks if KB982728 is installed #************************************************ Import-LocalizedData -BindingV...
0
sample_19_86.ps1
ConvertFrom-StringData @' id_dpm_information=DPM Information id_dpm_errorlogs_files=DPM Errorlog Files '@ # SIG # Begin signature block # MIIoUgYJKoZIhvcNAQcCoIIoQzCCKD8CAQExDzANBglghkgBZQMEAgEFADB5Bgor # BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG # KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAF...
0
sample_46_16.ps1
# # Module manifest for module 'OCI.PSModules.Autoscaling' # # Generated by: Oracle Cloud Infrastructure # # @{ # Script module or binary module file associated with this manifest. RootModule = 'assemblies/OCI.PSModules.Autoscaling.dll' # Version number of this module. ModuleVersion = '74.1.0' # Supported PSEdition...
0
Get-Tail.ps1
# Name: Get-Tail.ps1 # Author: William Stacey # Created: 02/22/2007 # Description: Gets the last N lines of a file. Does scan from end-of-file so works on large files. Also has a loop flag that prompts for refresh. function Get-Tail([string]$path = $(throw "Path name must be specified."), [int]$count = 10, [bool...
0
sample_29_91.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 = '80.0.0' # Supported P...
0
940.ps1
$apiVersion = "2015-04-08" $resourceGroupName = "myResourceGroup" $accountName = "mycosmosaccount" $databaseName = "database1" $containerName = "container1" $databaseThroughputResourceName = $accountName + "/sql/" + $databaseName + "/throughput" $databaseThroughputResourceType = "Microsoft.DocumentDb/databaseAccounts...
0
370.ps1
function Get-PSFLocalizedString { [OutputType([PSFramework.Localization.LocalStrings], ParameterSetName = 'Default')] [OutputType([System.String], ParameterSetName = 'Name')] [CmdletBinding(DefaultParameterSetName = 'Default')] param ( [Parameter(Mandatory = $true, ParameterSetName = 'Name')] [Parameter(Mandat...
0
Get-ProcessCount_1.ps1
# Get-ProcessCount uses 2 main variables, server and process name. # Process name is typically the end exe, such as "svchost.exe" # Will accept unnamed args (Get-ProcessCount servername processname) # or named args (Get-ProcessCount -Computer servername -Process processname) Function Get-ProcessCount([string]$proce...
0
sample_1_67.ps1
#************************************************ # TS_DCDiag.ps1 # Version 1.1.1 # Date: 04-11-2011 # Authors : Andre Teixeira/ David Fisher (CSS)/ Craig Landis # Description: Run DCDiag utility to obtain log files #************************************************ if($debug -eq $true){[void]$shell.popup("R...
0
Set-SendAs_1.ps1
# NAME # Set-SendAs # # SYNOPSIS # Use the Set-SendAs cmdlet to grant or Remove SendAs permissions on a mailbox # # SYNTAX # Set-SendAs -Identity <MailboxIdParameter> -SendAs <MailboxIdParameter> -ou <OrganizationalUnit> [-Remove <SwitchParameter> [-Confirm [<SwitchParameter>]]] [-DomainController <Fqdn>] ...
0
sample_0_39.ps1
@{ GUID="766204A6-330E-4263-A7AB-46C87AFC366C" Author="PowerShell" CompanyName="Microsoft Corporation" Copyright="Copyright (c) Microsoft Corporation." ModuleVersion="7.0.0.0" CompatiblePSEditions = @("Core") PowerShellVersion="3.0" FunctionsToExport = @() CmdletsToExport="Disable-WSManCredSSP", "Enable-WSManC...
0
GPRS Online log_4.ps1
<# .SYNOPSIS Get-GprsTime (V3.0 Update for Windows 7) Check the total connect time of any GPRS devices from a specified date. Use Get-Help .\\Get-GprsTime -full to view Help for this file. .DESCRIPTION Display all the GPRS modem Event Log entries. While applications issued by the mobile phone manufacturers wi...
0
sample_24_47.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 Publish-UpgradedServ...
0
sample_47_71.ps1
9A PIN-kód helytelen. Adja meg az új hitelesítő adatokat.ÕA PIN-kód helytelen. Adja meg az új hitelesítő adatokat. Ha a(z) %s nem támogatja a Hálózati szintű hitelesítést, akkor nem fogja elfogadni ezeket a hitelesítő adatokat. Segítségért forduljon a rendszergazdához.ųA Távoli asztal nem tudja ellenőrizni a távoli ...
0
sample_11_3.ps1
ConvertFrom-StringData @' id_detectmtu1514_activity=Detect MTU of 1514 id_detectmtu1514_status=Checking network adapters for an MTU of 1514. '@ # SIG # Begin signature block # MIIoKgYJKoZIhvcNAQcCoIIoGzCCKBcCAQExDzANBglghkgBZQMEAgEFADB5Bgor # BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG # K...
0
sample_26_72.ps1
# # Module manifest for module 'Microsoft.SME.WindowsUpdate' # @{ # Script module or binary module file associated with this manifest. RootModule = 'Microsoft.SME.WindowsUpdate.psm1' # Version number of this module. ModuleVersion = '4.9.2' # Supported PSEditions # CompatiblePSEditions = @() # ID use...
0
sample_11_26.ps1
#************************************************ # TS_ServicingPendingXml.ps1 # Version 1.0.1 # Date: 6/6/2012 # Author: v-alyao # Description: [Idea ID 3472] [Windows] Pending Transactions Rule Idea - Pending.xml # Rule number: 3472 # Rule URL: http://sharepoint/sites/rules/Rule Submissions/Forms/DispForm.a...
0
sample_21_65.ps1
# # Module manifest for module 'OCI.PSModules.Generativeai' # # Generated by: Oracle Cloud Infrastructure # # @{ # Script module or binary module file associated with this manifest. RootModule = 'assemblies/OCI.PSModules.Generativeai.dll' # Version number of this module. ModuleVersion = '79.0.0' # Supported PSEditi...
0
sample_67_8.ps1
@{ GUID = 'C46BE3DC-30A9-452F-A5FD-4BF9CA87A854' Author="Microsoft Corporation" CompanyName="Microsoft Corporation" Copyright="Copyright (C) Microsoft Corporation. All rights reserved." ModuleVersion = '1.0' NestedModules = @( 'MSFT_MpComputerStatus.cdxml', 'MSFT_Mp...
0
1547.ps1
function Get-MrHash { [CmdletBinding()] param ( [string]$String, [ValidateSet('MD5', 'SHA1')] [string]$Algorithm = 'MD5' ) Add-Type -AssemblyName System.Web [System.Web.Security.FormsAuthentication]::HashPasswordForStoringInConfigFile($String, $Algorithm) }
0