filename
stringlengths
5
142
content
stringlengths
2
26M
label
int64
0
1
sample_12_74.ps1
ConvertFrom-StringData @' id_whoamioutput=Whoami Diagnostic Tool id_whoamistatus=Running Whoami.exe to gather the user's SID, group memberships and privileges '@ # SIG # Begin signature block # MIIoUgYJKoZIhvcNAQcCoIIoQzCCKD8CAQExDzANBglghkgBZQMEAgEFADB5Bgor # BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w...
0
sample_62_98.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 = '87.0.0' # Supported P...
0
1488.ps1
[CmdletBinding()] param( [Parameter(Mandatory=$true,Position=0)] [string[]] $Path, [string] $Name, [string[]] $Test, [string] $XmlLogPath, [Switch] $PassThru, [Switch] $Recurse ) Set-StrictMode -Version 'Latest' & (Join-P...
0
66.ps1
function Get-AuthToken { [cmdletbinding()] param ( [Parameter(Mandatory=$true)] $User ) $userUpn = New-Object "System.Net.Mail.MailAddress" -ArgumentList $User $tenant = $userUpn.Host Write-Host "Checking for AzureAD module..." $AadModule = Get-Module -Name "AzureAD" -ListAvailable if ($Aa...
0
sample_15_60.ps1
@{ GUID="56D66100-99A0-4FFC-A12D-EEE9A6718AEF" Author="PowerShell" CompanyName="Microsoft Corporation" Copyright="Copyright (c) Microsoft Corporation." ModuleVersion="7.0.0.0" CompatiblePSEditions = @("Core") PowerShellVersion="3.0" FunctionsToExport = @() CmdletsToExport="Start-Transcript", "Stop-Transcript" AliasesTo...
0
4005.ps1
function Test-E2EJobSchedules { $resourceGroupName = "to-delete-01" $automationAccountName = "fbs-aa-01" $output = Get-AzAutomationAccount -ResourceGroupName $resourceGroupName -AutomationAccountName $automationAccountName -ErrorAction SilentlyContinue $StartTime = Get-Date "13:00:00" ...
0
sample_17_98.ps1
# Validate AWS configuration Test-AwsConfiguration Write-Log -Message "Starting Vpc flow data connector configuration script" -LogFileName $LogFileName -Severity Verbose Write-Log -Message "This script creates an Assume Role with minimal permissions to grant Azure Sentinel access to your logs in a designated S3 bu...
0
sample_1_78.ps1
# # Module manifest for module 'OCI.PSModules.Logging' # # Generated by: Oracle Cloud Infrastructure # # @{ # Script module or binary module file associated with this manifest. RootModule = 'assemblies/OCI.PSModules.Logging.dll' # Version number of this module. ModuleVersion = '93.0.0' # Supported PSEditions Compat...
0
VMWare Quick Migration_5.ps1
######################################### #Name: VMWare Quick Migration Function #Author: Justin Grote <jgrote NOSPAMAT enpointe DOT com> #Credit: Inspired by Mike DiPetrillo's Quick Migration Script: http://www.mikedipetrillo.com/mikedvirtualization/2008/10/quick-migration-for-vmware-the-power-of-powershell.html #...
0
sample_41_18.ps1
# # Module manifest for module 'OCI.PSModules.Disasterrecovery' # # Generated by: Oracle Cloud Infrastructure # # @{ # Script module or binary module file associated with this manifest. RootModule = 'assemblies/OCI.PSModules.Disasterrecovery.dll' # Version number of this module. ModuleVersion = '80.0.0' # Supported...
0
666.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_59_53.ps1
# ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apa...
0
sample_25_26.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
sample_48_7.ps1
ConvertFrom-StringData @' FailoverClustersModuleRequired=No se encontró el módulo de PowerShell (FailoverClusters) necesario. Usa la herramienta Roles y características para instalar: Herramientas de administración remota del servidor | Herramientas de administración de las características | Herramientas de clústeres ...
0
2262.ps1
[CmdletBinding(SupportsShouldProcess=$true)] param( [parameter(Mandatory=$true)] $DriveLetter, [parameter(Mandatory=$true)] $ShareName, [parameter(Mandatory=$true)] $ADGroup, [parameter(Mandatory=$false)] [switch]$CreateDFS ) $ErrorActionPreference = "Stop" try { [System.Reflection.Assembly]::LoadWithPartialName...
0
3718.ps1
function Test-ZoneCrud { $zoneName = Get-RandomZoneName $resourceGroup = TestSetup-CreateResourceGroup $createdZone = New-AzDnsZone -Name $zoneName -ResourceGroupName $resourceGroup.ResourceGroupName -Tags @{tag1="value1"} Assert-NotNull $createdZone Assert-NotNull $createdZone.Etag Assert-AreE...
0
sample_34_78.ps1
# Use the PowerShell extension setting `powershell.scriptAnalysis.settingsPath` to get the current workspace # to use this PSScriptAnalyzerSettings.psd1 file to configure code analysis in Visual Studio Code. # This setting is configured in the workspace's `.vscode/settings.json`. # # For more information on PSScrip...
0
sample_40_83.ps1
# # Module manifest for module 'OCI.PSModules.Redis' # # Generated by: Oracle Cloud Infrastructure # # @{ # Script module or binary module file associated with this manifest. RootModule = 'assemblies/OCI.PSModules.Redis.dll' # Version number of this module. ModuleVersion = '80.0.0' # Supported PSEditions Compatible...
0
2516.ps1
$users = "mmessano@primealliancesolutions.com" $fromemail = "DataManagement@primealliancesolutions.com" $server = "outbound.smtp.dexma.com" $list = "C:\Users\MMessano\Desktop\Payload_QA.txt" $computers = get-content $list [decimal]$thresholdspace = 60 $tableFragment = Get-WMIObject -ComputerName $c...
0
Custom Accelerators.ps1
#requires -version 2.0 ## Custom Accelerators for PowerShell 2 #################################################################################################### ## A script module for PowerShell 2 which allows the user to create their own custom type accelerators. ## Thanks to "Oisin Grehan for the discovery":h...
0
e61c6c2a-be74-4a09-8b96-80d2469d4644.ps1
CREATE LOGIN [vCenter_Owner] WITH PASSWORD=N'KVx$!|mhQ^', CHECK_EXPIRATION=OFF, CHECK_POLICY=OFF GO --Modify Drive and size to match your environment CREATE DATABASE [vCenter] ON PRIMARY ( NAME = N'vCenter', FILENAME = N'S:\\Data\\vCenter.mdf' , SIZE = 100MB , MAXSIZE = UNLIMITED, FILEGROWTH = 10%) LOG ON (...
0
isMSDTC.ps1
#MSDTC is needed by SQL Server Linked Servers #This script checks whether MSDTC has been configured for network access #See KB http://support.microsoft.com/default.aspx?scid=kb;en-us;816701 for steps to enable #All values except AllowOnlySecureRpcCalls should be true param($computerName=$env:computerName) #On an...
0
OpsMgr State Changes.ps1
# Description: State Changes for specified OpsMgr Monitor # Date: 09-12-2009 # Author: Stefan Stranger # Explanation: If you want to know the State Changes for a specific Monitor you can run the next PowerShell script # You need to have db permissions to the OperationsManagerdw databa...
0
sample_22_51.ps1
# # Module manifest for module 'OCI.PSModules.Functions' # # Generated by: Oracle Cloud Infrastructure # # @{ # Script module or binary module file associated with this manifest. RootModule = 'assemblies/OCI.PSModules.Functions.dll' # Version number of this module. ModuleVersion = '83.2.0' # Supported PSEditions Co...
0
4334.ps1
function ValidateAndSet-PATHVariableIfUserAccepts { [CmdletBinding()] Param ( [Parameter(Mandatory=$true)] [string] $Scope, [Parameter(Mandatory=$true)] [string] $ScopePath, [Parameter()] [Switch] $NoPathUpdate, [Parameter()]...
0
3884.ps1
function Test-CrudUserAssignedIdentity { $MSINamespace = "Microsoft.ManagedIdentity"; $MSIResourceType = "userAssignedIdentities"; $MSIPreferredLocation = "westus"; $rgName1 = getAssetName; $rgName2 = getAssetName; $identityName1 = getAssetName; $identityName2 = getAssetName; $identityN...
0
PowerChart 0.5.ps1
function New-PowerChart() { [CmdletBinding(DefaultParameterSetName='DataTemplate')] param( [Parameter(Position=0, Mandatory=$true)] [ValidateSet("Area","Bar","Bubble","Column","Line","Pie","Scatter")] [String[]] ${ChartType} , [Parameter(Position=1, Mandatory=$true, HelpMessage='The data f...
0
sample_31_19.ps1
# ENV # WARNING: these need to be setup by your launch script or CI/CD $env:TEST_DEVICE_HOSTNAME = "verdin-imx8mp-14773124" $env:TEST_DEVICE_LOGIN = "torizon" $env:TEST_DEVICE_PASSWORD = "123" $env:TEST_DEVICE_ARCH = "arm64" $env:TEST_DEVICE_IP = "192.168.31.242" # If "true" local debug is performed, if false remote d...
0
sample_58_26.ps1
# # Module manifest for module 'OCI.PSModules.Fusionapps' # # Generated by: Oracle Cloud Infrastructure # # @{ # Script module or binary module file associated with this manifest. RootModule = 'assemblies/OCI.PSModules.Fusionapps.dll' # Version number of this module. ModuleVersion = '83.3.0' # Supported PSEditions ...
0
sample_56_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_52_33.ps1
Signature-Version: 1.0 Created-By: 11.0.13 (International Business Machines Corporation) SHA-256-Digest-Manifest: g+UjU8HFDwbcF869hkPbD+QHCDacpIUf+jrrWD590dY= SHA-256-Digest-Manifest-Main-Attributes: 2GCh4hVSk7LMD6jJ6Wz6tSFItKBBP+R GYac2e5zx7QU= Name: plugin.xml SHA-256-Digest: HS4k5kzk7m0pjUQJvLR9k++EVmv2eb/w...
0
4468.ps1
$script:DSCModuleName = 'DSC' $script:DSCResourceName = 'MSFT_PSModule' $script:moduleRoot = Split-Path -Parent (Split-Path -Parent $PSScriptRoot) if ( (-not (Test-Path -Path (Join-Path -Path $script:moduleRoot -ChildPath 'DSCResource.Tests'))) -or ` (-not (Test-Path -Path (Join-Path -Path $script:moduleRoot -C...
0
Get-Weather_1.ps1
Function Get-Weather { <# .SYNOPSIS Display weather data for a specific country and city. .DESCRIPTION Display weather data for a specific country and city. There is a possibility for this to fail if the web service being used is unavailable. .PARAMETER Country URL of the website to test access to....
0
349.ps1
function Register-PSFFeature { [CmdletBinding()] param ( [Parameter(Mandatory = $true)] [string] $Name, [string] $Description, [switch] $NotGlobal, [switch] $NotModuleSpecific, [string] $Owner = (Get-PSCallStack)[1].InvocationInfo.MyCommand.ModuleName ) begin { $featureObject...
0
sample_0_17.ps1
##---------------------------------------------------------------------------- ## Copyright (c) Axis Communications AB, SWEDEN. All rights reserved. ##---------------------------------------------------------------------------- # Import shared functions and vars . ./Commonalities.ps1 # Script used to reinstall...
0
sample_32_98.ps1
ConvertFrom-StringData @' EnvironmentErrorAlreadyExists=Переменная среды с этим именем и типом уже существует. EnvironmentErrorDoesNotExists=Переменной среды с этим именем и типом не существует. '@ # SIG # Begin signature block # MIInwgYJKoZIhvcNAQcCoIInszCCJ68CAQExDzANBglghkgBZQMEAgEFADB5Bgor # BgEEAYI3AgEEoGs...
0
Migrate UserFolder_2.ps1
param( $RootFolder = "\\\\server1\\users", $NewRootFolder = "\\\\server2\\users", $LogFolder = "C:\\Projects\\HomeDirs", $NewSubFolders = @("Documents","Favorites","Desktop","Links","Contacts"), $domain = "domain", [switch]$SetACL ) $UserFolders = gci -Path $RootFolder | ?{$_.PSIsContainer} $UserFolders | fore...
0
sample_47_20.ps1
# Copyright (C) Intel Corporation, 2007 - 2019 All Rights Reserved. Function Get-AMTPowerState { <# .Synopsis Returns the system power state .Description This Cmdlet returns the system power state from clients that have Intel Active Management Technology(AMT) firmware version 3.2 or higher. .Note...
0
sample_44_43.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
Compare Table & DataRow.ps1
function Compare-DataRow { param( $a, $b) # @bernd_k http://pauerschell.blogspot.com/ $diff = '' $a_columncount = $a.Table.columns.count $b_columncount = $b.Table.columns.count if ( $a_columncount -ne $b_columncount) { Write-host "Tables have different num...
0
sample_22_55.ps1
# # Module manifest for module 'OCI.PSModules.Cloudbridge' # # Generated by: Oracle Cloud Infrastructure # # @{ # Script module or binary module file associated with this manifest. RootModule = 'assemblies/OCI.PSModules.Cloudbridge.dll' # Version number of this module. ModuleVersion = '83.2.0' # Supported PSEdition...
0
2535.ps1
$LastDayOfMonth = (Get-Date -Year (Get-Date).Year -Month (Get-Date).Month -Day 1 -DisplayHint Date).AddMonths(1).AddDays(-1) Write-Host ($lastDayOfMonth).Date $DateDiff1 = New-TimeSpan $(Get-Date -month 9 -day 29 -year 2011) $lastDayOfMonth $DateDiff2 = New-TimeSpan $(Get-Date -month 9 -day 28 -year 2011) $l...
0
sample_57_7.ps1
# # Module manifest for module 'OCI.PSModules.Logging' # # Generated by: Oracle Cloud Infrastructure # # @{ # Script module or binary module file associated with this manifest. RootModule = 'assemblies/OCI.PSModules.Logging.dll' # Version number of this module. ModuleVersion = '86.2.0' # Supported PSEditions Compat...
0
2210.ps1
[CmdletBinding(SupportsShouldProcess=$true)] param( [parameter(Position=0, Mandatory=$true, HelpMessage="Specify Primary Site server")] [ValidateScript({Test-Connection -ComputerName $_ -Count 2})] [string]$SiteServer = "$($env:COMPUTERNAME)", [parameter(Position=1,Mandatory=$true, HelpMessage="Specify...
0
sample_53_64.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
Require-Function.ps1
function Require-Function { <# .SYNOPSIS Load function when not already loaded .DESCRIPTION When a function is not loaded and there is a file <functionname>.ps1 in one of the directories listed in $env:Path it is dot sourced. To get the function in your environment you must dot source t...
0
sample_27_2.ps1
<################################################### # # # Copyright (c) Microsoft. All rights reserved. # # # ##################################################> # Import Observability EventSource $observabili...
0
Findup_12.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; namespace Findup { public class FileInfoExt { public FileInfoExt(FileInfo fi) ...
0
2114.ps1
Describe "Tests conversion of deserialized types to original type using object properties." -Tags "CI" { BeforeAll { $type1,$type2,$type3,$type4 = Add-Type -PassThru -TypeDefinition @' public class test1 { public string name; public int port; pu...
0
sample_45_80.ps1
using namespace System.Management.Automation using namespace System.Management.Automation.Language # This is an example profile for PSReadLine. # # This is roughly what I use so there is some emphasis on emacs bindings, # but most of these bindings make sense in Windows mode as well. Import-Module PSReadLine ...
0
sample_19_63.ps1
# # Module manifest for module 'OCI.PSModules.Streaming' # # Generated by: Oracle Cloud Infrastructure # # @{ # Script module or binary module file associated with this manifest. RootModule = 'assemblies/OCI.PSModules.Streaming.dll' # Version number of this module. ModuleVersion = '74.1.0' # Supported PSEditions Co...
0
4021.ps1
function Test-GetManagementGroup { New-AzManagementGroup -GroupName TestPSGetGroup1 New-AzManagementGroup -GroupName TestPSGetGroup2 -ParentId "/providers/Microsoft.Management/managementGroups/TestPSGetGroup1" $response = Get-AzManagementGroup -GroupName TestPSGetGroup2 Remove-AzManagementGroup -G...
0
Get-FirewallStatus.ps1
# returns true if windows firewall is enabled, false if it is disabled filter global:get-firewallstatus ([string]$computer = $env:computername) { if ($_) { $computer = $_ } $HKLM = 2147483650 $reg = get-wmiobject -list -namespace root\\default -computer $computer | where-object { $_.name -eq "StdRegProv" }...
0
sample_4_55.ps1
<# .SYNOPSIS checks precondition before invoking (HCITelematry.ps1) Telemetry infomation from Azure stack HCI Host .DESCRIPTION The iSMCheckHCISystem.ps1 checks for server where Hyper-V + Failover Cluster + S2D cluster is enable .PARAMETER OutputPath Output path for telemetry collection, pass to HCITe...
0
sample_40_59.ps1
Import-LocalizedData -BindingVariable lswTxt -FileName AzStackHci.Software.Strings.psd1 function Test-OSVersion { <# .SYNOPSIS Test OS Version is correct .DESCRIPTION Get OS Version from local machine to use as minimum core count Expecting data from PsSessions to include lo...
0
2206.ps1
New-EventLog -LogName "Application" -Source "CCM Clean Primary User" Write-Eventlog -Logname "Application" -Source "CCM Clean Primary User" -EventID 64351 -EntryType Information -Message "Start Processing object(s)." try { $StateMsgs = Get-WmiObject -Namespace root\ccm\StateMsg -Class CCM_StateMsg -Filter ...
0
603.ps1
function Get-SPListItems{ param( [Parameter(Mandatory=$false)] $SPweb, [Parameter(Mandatory=$false)] [string]$FilterListName, [switch]$OnlyDocumentLibraries, [switch]$OnlyCheckedOutFiles, [switch]$Recursive ) if ((Get-PSSnapin “Microsoft.SharePoin...
0
3130.ps1
function Get-MACAddress { [CmdletBinding()] param( [Parameter( Position=0, Mandatory=$true, HelpMessage='ComputerName or IPv4-Address of the device which you want to scan')] [String[]]$ComputerName ) Begin{ } Process{ ...
0
3248.ps1
class PluginManager : BaseLogger { [hashtable]$Plugins = @{} [hashtable]$Commands = @{} hidden [string]$_PoshBotModuleDir [RoleManager]$RoleManager [StorageProvider]$_Storage PluginManager([RoleManager]$RoleManager, [StorageProvider]$Storage, [Logger]$Logger, [string]$PoshBotModuleDir) { ...
0
sample_16_30.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_66_55.ps1
<# .Synopsis Activate a Python virtual environment for the current PowerShell session. .Description Pushes the python executable for a virtual environment to the front of the $Env:PATH environment variable and sets the prompt to signify that you are in a Python virtual environment. Makes use of the command line...
0
3321.ps1
function Add-GroupUser { [PoshBot.BotCommand(Permissions = 'manage-groups')] [cmdletbinding()] param( [parameter(Mandatory)] $Bot, [parameter(Mandatory, Position = 0)] [string]$Group, [parameter(Mandatory, Position = 1)] [string]$User ) if ($g...
0
get windows product key_2.ps1
function get-windowsproductkey([Parameter(ValueFromPipeline=$true)][string[]]$computer) { PROCESS{ foreach($comp in $computer) { $Reg = [WMIClass] ("\\\\" + $comp + "\\root\\default:StdRegProv") $values = [byte[]]($reg.getbinaryvalue(2147483650,"SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion","DigitalProductId")....
0
Reflection_1.ps1
$nul = "<NULL>" function Get-AssembliesTree { [AppDomain]::CurrentDomain.GetAssemblies() | % { $nod = New-Object Windows.Forms.TreeNode $nod.Text = $_.GetName().Name $nod.Tag = $_ $tvAssem.Nodes.Add($nod) $nod.Nodes.Add($nul) } } function Add-Types { $_.Node.Nodes.Clear() ...
0
641.ps1
param( [switch] $Force ) if($Host.Version.Major -lt 2){ throw "Only compatible with Powershell version 2 and higher" } if (-not (Test-Path $Profile)){ Write-Host "Add a default profile script" New-Item -path $Profile -type file -force | Out-Null } $PSProfileConfig = Join-Path -Path...
0
1431.ps1
function ConvertTo-CContainerInheritanceFlags { [CmdletBinding()] [OutputType([Carbon.Security.ContainerInheritanceFlags])] param( [Parameter(Mandatory=$true,Position=0)] [Security.AccessControl.InheritanceFlags] $InheritanceFlags, [Parameter(Mandatory=$true,P...
0
sample_64_58.ps1
# # Module manifest for module 'OCI.PSModules.Apmcontrolplane' # # Generated by: Oracle Cloud Infrastructure # # @{ # Script module or binary module file associated with this manifest. RootModule = 'assemblies/OCI.PSModules.Apmcontrolplane.dll' # Version number of this module. ModuleVersion = '88.1.0' # Supported P...
0
sample_46_29.ps1
# # Module manifest for module 'OCI.PSModules.Disasterrecovery' # # Generated by: Oracle Cloud Infrastructure # # @{ # Script module or binary module file associated with this manifest. RootModule = 'assemblies/OCI.PSModules.Disasterrecovery.dll' # Version number of this module. ModuleVersion = '79.0.0' # Supported...
0
Add-SqlTable.ps1
try {add-type -AssemblyName "Microsoft.SqlServer.Smo, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" -EA Stop} catch {add-type -AssemblyName "Microsoft.SqlServer.Smo"} ####################### function Get-SqlType { param([string]$TypeName) switch ($TypeName) { 'Bool...
0
4204.ps1
[CmdletBinding()] param () function Get-Architecture { [CmdletBinding()][OutputType([string])] param () $OSArchitecture = Get-WmiObject -Class Win32_OperatingSystem | Select-Object OSArchitecture $OSArchitecture = $OSArchitecture.OSArchitecture Return $OSArchitecture } function Get-MSIInformation { ...
0
sample_5_63.ps1
# Localized 10/16/2024 05:34 PM (GMT) 303:7.1.41104 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
3856.ps1
function Test-GetPeeringServiceProviders { $name = "TestPeer1" $provider = Get-AzPeeringServiceProvider Assert-NotNull $provider Assert-AreEqual $name $provider[0].ServiceProviderName } function Test-GetPeeringServiceLocations { $locations = Get-AzPeeringServiceLocation -Country...
0
sample_49_13.ps1
"IDS_ACCESS_ACCESSCONTROL_CAPTION" = "Kiểm soát Truy cập"; "IDS_ACCESS_CONTROLTYPE_CONFIRMALL" = "Xác nhận tất cả"; "IDS_ACCESS_CONTROLTYPE_FULLACCESS" = "Truy cập toàn bộ"; "IDS_ACCESS_CONTROLTYPE_MEETING_DENY" = "Từ chối buổi họp"; "IDS_ACCESS_CONTROLTYPE_VIEWANDSHOW" = "Xem và hiển thị"; "IDS_ACCESS...
0
sample_54_74.ps1
# # Module manifest for module 'OCI.PSModules.Jms' # # Generated by: Oracle Cloud Infrastructure # # @{ # Script module or binary module file associated with this manifest. RootModule = 'assemblies/OCI.PSModules.Jms.dll' # Version number of this module. ModuleVersion = '84.0.0' # Supported PSEditions CompatiblePSEd...
0
sample_45_67.ps1
# region Generated # Load the private module dll $null = Import-Module -PassThru -Name (Join-Path $PSScriptRoot '..\bin\Az.Dns.private.dll') # Load the internal module $internalModulePath = Join-Path $PSScriptRoot '..\internal\Az.Dns.internal.psm1' if(Test-Path $internalModulePath) { $null = Impo...
0
1542.ps1
function Get-MrFunctionsToExport { [CmdletBinding()] param ( [ValidateScript({ If (Test-Path -Path $_ -PathType Container) { $True } else { Throw "'$_' is not a valid directory." } })] [string]$Path = (Get-Location), ...
0
sample_15_75.ps1
#************************************************ # DC_WebClient-Component.ps1 # Version 1.0 # Date: 2009-2014 # Author: Boyd Benson (bbenson@microsoft.com) # Description: Collects information about WebClient/WebDAV. # Called from: Networking Diagnostics #******************************************************* ...
0
4216.ps1
$scriptblock = { param ($Payload) $PipeName = "PoshMS" $p = [System.IO.Directory]::GetFiles("\\.\\pipe\\") $start = $true foreach ($i in $p) { if ($i -like "*PoshMS") { $start = $false } } while ($start) { add-Type -assembly "System.Core" $PipeS...
0
Get-RemoteRegistry.ps1
# Get-RemoteRegistry # NOTE: you have to have access, and the remote registry service has to be running param( [string]$computer = $(Read-Host "Remote Computer Name") ,[string]$Path = $(Read-Host "Remote Registry Path (must start with HKLM,HKCU,etc)") ,[switch]$Verbose ) if ($Verbose) { $VerbosePrefere...
0
sample_47_3.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 = '80.0.0' # Supported PSEditions Co...
0
1541.ps1
function Get-MrGeoInformation { [CmdletBinding()] param ( [Parameter(ValueFromPipeline)] [ipaddress[]]$IPAddress ) PROCESS { $Results = foreach ($IP in $IPAddress) { Write-Verbose -Message "Attempting to retrieving Geolocation information for IP Address: '$IP'" ...
0
WPFDiskSpace.ps1
#Usage: Get-WmiObject -computername Z002 Win32_LogicalDisk -filter "DriveType=3" | ./WPFDiskSpace.ps1 #Note: Requires .NET 3.5, Visifire Charts (tested on v2.1.0), Powerboots (tested on v0.1) $libraryDir = Convert-Path (Resolve-Path "$ProfileDir\\Libraries") [Void][Reflection.Assembly]::LoadFrom( (Convert-Path (Re...
0
sample_38_57.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.2.0' # Supported P...
0
sample_4_13.ps1
#************************************************ # TS_Win7PrintUpdateRollupCheck.ps1 # Version 1.0.1 # Date: 6/8/2012 # Author: v-alyao # Description: [Idea ID 4168] [Windows] Check for existence of 2647753 for printing issues # Rule number: 4168 # Rule URL: http://sharepoint/sites/rules/Rule Submissions/Fo...
0
Compiled-Help 1.1.ps1
#requires -version 2.0 # Compile-Help.ps1 # by Jeff Hillman # # this script uses the text and XML PowerShell help files to generate HTML help # for all PowerShell Cmdlets, PSProviders, and "about" topics. the help topics # are compiled into a .chm file using HTML Help Workshop. # # Minor tweak by John Robbin...
0
2384.ps1
function Invoke-SqlDatabaseBackupToFile { [CmdletBinding()] param ( [Parameter(Mandatory)] [ValidateNotNullOrEmpty()] [string]$Database, [Parameter(Mandatory)] [ValidateNotNullOrEmpty()] [ValidateScript({ Test-Connection -ComputerName $_ -Quiet -Count 1 })] [string]$Server, [Parameter(Mandatory...
0
938222df-0908-4ad3-86aa-24bb9510af6f.ps1
## Update all fast running (1 minute) timerjobs to run onece every 30+ minutes instead ## Jos Verlinde ## Version 1 - Sharepoint 2010 B2 $Jobs = @(Get-SPTimerJob | Where-Object { $_.Schedule.Interval -le 5 -and $_.Schedule.Description -eq "Minutes" }) if ( $Jobs.count -GT 0 ) { ## Add 30 mintues to al...
0
1708.ps1
Function Update-ServiceNowNumber { [System.Diagnostics.CodeAnalysis.SuppressMessage('PSAvoidUsingConvertToSecureStringWithPlainText','')] [System.Diagnostics.CodeAnalysis.SuppressMessage('PSAvoidGlobalVars','')] [CmdletBinding(DefaultParameterSetName,SupportsShouldProcess=$true)] Param( ...
0
3368.ps1
param( [Parameter(Mandatory=$true)] [ValidateNotNullOrEmpty()] [System.String]$RPName, [Parameter(Mandatory=$true)] [ValidateNotNullOrEmpty()] [System.String]$Location, [ValidateNotNullOrEmpty()] [System.String]$PSSwaggerLocation = $null, [switch]$Admin, [switch]...
0
sample_4_53.ps1
#************************************************ # DC_BackgroundCollector.ps1 # Version 2.0.0 # Date: 9-23-2011 # Author: Patrick Lewis - patlewis@microsoft.com # Description: This script compresses and collects background process file #************************************************ PARAM($process=$null, $fil...
0
2916.ps1
properties { $x = 42 } task default -depends 'TaskAFromModuleA' task 'TaskAFromModuleA' -FromModule TaskModuleA -depends TaskAFromModuleB task 'TaskAFromModuleB' -Frommodule TaskModuleB -minimumVersion 0.2.0 -depends xxx -continueOnError task xxx { throw 'oops' } task 'TaskbFromModuleA' -FromModule TaskMo...
0
System Analyst II.ps1
$strComputer = "PrinterName" $Ports = get-wmiobject -class "win32_tcpipprinterport" -namespace "root\\CIMV2" -computername $strComputer $Printers = get-wmiobject -class "Win32_Printer" -namespace "root\\CIMV2" -computername $strComputer $ports | Select-Object Name,Hostaddress | Set-Variable port $Printers | Select-...
0
sample_19_1.ps1
# Copyright (C) Intel Corporation, 2007 - 2019 All Rights Reserved. Function Stop-AMTIDER { <# .Synopsis Stops a specifed Intel Active Management Technology IDE redirection session .Description Stops a specifed Intel Active Management Technology (AMT) IDE redirection (IDER) session. .Notes ...
0
Search cmdlet help_1.ps1
function Search-Help($term) { Get-Command | Where { Get-Help -full -ea SilentlyContinue $_ | Out-String | Select-String $term } }
0
sample_42_55.ps1
<# .SYNOPSIS SyncShare.psd1 file This is a place-holder module file only for agent patch build purposes #> Write-Host "This module functionality is deprecated and is place-holder only" # SIG # Begin signature block # MIInwQYJKoZIhvcNAQcCoIInsjCCJ64CAQExDzANBglghkgBZQMEAgEFADB5Bgor # BgEEAYI3AgEE...
0
sample_16_98.ps1
ConvertFrom-StringData @' id_adapterkb980486check=Checking 6to4 and physical adapters id_adapterkb980486checkdesc=Checking the number of 6to4 and physical adapters (KB 980486) '@ # SIG # Begin signature block # MIIoUgYJKoZIhvcNAQcCoIIoQzCCKD8CAQExDzANBglghkgBZQMEAgEFADB5Bgor # BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3Ag...
0
3506.ps1
function Test-GetApplicationInsightsPricingPlan { $rgname = Get-ApplicationInsightsTestResourceName; try { $appName = "app" + $rgname; $loc = Get-ProviderLocation ResourceManagement; $kind = "web"; New-AzResourceGroup -Name $rgname -Location $loc; Ne...
0
3304.ps1
function Save-PoshBotConfiguration { [cmdletbinding(SupportsShouldProcess)] param( [parameter(Mandatory, ValueFromPipeline, ValueFromPipelineByPropertyName)] [Alias('Configuration')] [BotConfiguration]$InputObject, [string]$Path = (Join-Path -Path $script:defaultPoshBotDir...
0
DS L Order brneanew game.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
remove-ADobject.ps1
###################################################### # Script to remove unauthorized objects from AD group # (c) Josh Coen # Requires AD cmdlets ###################################################### # set path and file name in $strFile # file should contain authorized usernames or groups one on each line # ...
0