filename stringlengths 5 142 | content stringlengths 2 26M | label int64 0 1 |
|---|---|---|
sample_18_53.ps1 | #
# Module manifest for module 'OCI.PSModules.Identity'
#
# Generated by: Oracle Cloud Infrastructure
#
#
@{
# Script module or binary module file associated with this manifest.
RootModule = 'assemblies/OCI.PSModules.Identity.dll'
# Version number of this module.
ModuleVersion = '75.1.0'
# Supported PSEditions
Comp... | 0 |
Import-GmailFilterXml.ps1 | param (
$Path
)
[xml]$flt = Get-Content -Path $Path
$title = $flt.feed.title
$author = $flt.feed.author.name
$output = @()
foreach ( $entry in $flt.feed.entry ) {
foreach ( $property in $entry.property ) {
foreach ($item in $property) {
$process = "" | select Id, Updated, Name, Value
$process.Id = ... | 0 |
sample_54_38.ps1 | import{Z as s}from"./index-DMMxKnLF.js";/*!-----------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Version: 0.47.0(69991d66135e4a1fc1cf0b1ac4ad25d429866a0d)
* Released under the MIT license
* https://github.com/microsoft/monaco-edit... | 0 |
2281.ps1 | param(
[parameter(Mandatory=$true)]
[string]$RBOptionFirst,
[parameter(Mandatory=$true)]
[string]$RBOptionSecond,
[parameter(Mandatory=$true)]
[string]$DomainName,
[parameter(Mandatory=$true)]
[string]$DomainSuffix,
[parameter(Mandatory=$true)]
[string[]]$LocationList
)
function Load-Form {
$Form.Controls.AddRang... | 0 |
Get-RecurseMember_2.ps1 | function Get-RecurseMember {
<#
.Synopsis
Does a recursive search for unique users that are members of an AD group.
.Description
Recursively gets a list of unique users that are members of the specified
group, expanding any groups that are members out into their member users.
Note: Requires the Ques... | 0 |
sample_50_86.ps1 | # Copyright (C) Intel Corporation, 2007 - 2019 All Rights Reserved.
Function Export-CertForAMT {
<#
.Synopsis
Exports certificates from the Windows Certificate Store for use by the IntelvPro PowerShell Module
.Description
Exports certificates from the Windows Certificate Store for use by the Intelv... | 0 |
sample_54_45.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 |
sample_55_43.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 = '87.0.0'
# Supported PSEditions
Comp... | 0 |
sample_29_55.ps1 | #
# Module manifest for module 'ExtensionService'
#
# Generated by: Microsoft
#
# Generated on: 04/09/2020
#
@{
# Script module or binary module file associated with this manifest.
ModuleToProcess = 'ExtensionService.psm1'
# Version number of this module.
ModuleVersion = '1.0'
# ID used to uniquely ... | 0 |
1468.ps1 |
function Convert-ModuleHelpToHtml
{
[CmdletBinding()]
param(
[Parameter(Mandatory=$true)]
[string]
$ModuleName,
[string[]]
$Script,
[hashtable]
$HeadingMap,
[Switch]
$SkipCommandHelp
)
S... | 0 |
614.ps1 | param(
[string]$Version,
[string]$Path,
[switch]$Force,
[switch]$Update,
[switch]$Uninstall
)
$Configs = @{
Url = "https://chocolatey.org/install.ps1"
ConditionExclusion = "Get-Command `"cinst`" -ErrorAction SilentlyContinue"
}
$Configs | ForEach-Object{
try{
$_.Result = $null
if(-not... | 0 |
1406.ps1 |
function Test-CTypeDataMember
{
[CmdletBinding()]
[OutputType([bool])]
param(
[Parameter(Mandatory=$true)]
[string]
$TypeName,
[Parameter(Mandatory=$true)]
[string]
$MemberName
)
Set-StrictMode -Version 'Latest'
Use-Calle... | 0 |
104237c9-a8e9-419e-b285-638b60444a56.ps1 | # by @bernd_k aka @sqlsulidae http://sqlsulidae.blogspot.com/
#
# This is an extension of the script you find at
# http://www.sqlmusings.com/2009/08/21/sql-server-powershell-how-to-view-your-ssrs-reports-rdl-using-powershell-and-reportviewer/
# I show ... | 0 |
Test-IPMask_1.ps1 | <#
.SYNOPSIS
Tests for a valid IP mask.
.DESCRIPTION
The Test-IPMask script validates the input string against all CIDR subnet masks and returns a boolean value.
.PARAMETER IPMask
The IP mask to be evaluated.
.EXAMPLE
Test-IPMask 255.255.255.0
Description
-----------
Tests if the I... | 0 |
875.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_6_35.ps1 | # Load Common Library
# Load Reporting Utilities
#_#$debug = $false
. ./utils_cts.ps1
. ./TS_RemoteSetup.ps1
# 2023-02-20 WalterE mod Trap #we#
trap [Exception]{
WriteTo-StdOut "$($_.InvocationInfo.ScriptName)($($_.InvocationInfo.ScriptLineNumber)): $_" -shortformat; continue
Write-Host "$($_.InvocationIn... | 0 |
530.ps1 |
function Backup-AllSPWebs{
[CmdletBinding()]
param(
[Parameter(Position=0, Mandatory=$true)]
[String]
$Path
)
if(-not (Get-PSSnapin "Microsoft.SharePoint.PowerShell" -ErrorAction SilentlyContinue)){Add-PSSnapin "Microsoft.SharePoint.PowerShell"}
$SPSites = $SPWebApp | Get-SPsite -Limi... | 0 |
692.ps1 | function Get-ItemType
{
param
(
[string]$FileExtension
)
switch ($FileExtension)
{
'.rdl' { return 'Report' }
'.rsds' { return 'DataSource' }
'.rds' { return 'DataSource' }
'.rsd' { return 'DataSet' }
'.rsmobile' { return 'MobileReport' }
'.p... | 0 |
sample_42_67.ps1 | #
# Module manifest for module 'OCI.PSModules.Usageapi'
#
# Generated by: Oracle Cloud Infrastructure
#
#
@{
# Script module or binary module file associated with this manifest.
RootModule = 'assemblies/OCI.PSModules.Usageapi.dll'
# Version number of this module.
ModuleVersion = '83.2.0'
# Supported PSEditions
Comp... | 0 |
sample_26_47.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 = '80.0.0'
# Supported PSEditions
... | 0 |
322.ps1 | function Wait-PSFMessage
{
[CmdletBinding()]
param (
[PSFDateTime]
$Timeout = "5m",
[switch]
$Terminate
)
begin
{
function Test-LogFlushed
{
[OutputType([bool])]
[CmdletBinding()]
param (
)
if ([PSFramework.Message.LogHost]::OutQueueLog.Count -gt 0) { return $false ... | 0 |
4a02f944-afe3-4393-b3c2-0d92d77d0b82.ps1 | if (Get-Process 'WRemote' -ea SilentlyContinue) {
if (Get-Process 'POS2100' -ea -ErrorAction SilentlyContinue) {
Write-Host "Restarting WinRemote"
Stop-Process -processname WRemote
Reset-Tray
#Start-Sleep -Second 2
#Invoke-Item C:\\ICOM\\POS2100\\WRemote.exe
}
else
{
Write-Ho... | 0 |
BinaryClock V_1.0.ps1 | Function Start-BinaryClock {
<#
.SYNOPSIS
This is a binary clock that lists the time in hours, minutes and seconds
.DESCRIPTION
This is a binary clock that lists the time in hours, minutes and seconds.
Key Input Tips:
r: Toggles the resize mode of the clock so you can adjust the size.... | 0 |
126.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... | 0 |
sample_21_16.ps1 | # 2023-02-20 WalterE mod Trap #we#
trap [Exception]{
WriteTo-StdOut "$($_.InvocationInfo.ScriptName)($($_.InvocationInfo.ScriptLineNumber)): $_" -shortformat; continue
Write-Host "$($_.InvocationInfo.ScriptName)($($_.InvocationInfo.ScriptLineNumber)): $_"
}
. ./utils_cts.ps1
SkipSecondExecution
$EventLogAl... | 0 |
sample_4_9.ps1 | # Copyright ?2009, Microsoft Corporation. All rights reserved.
# 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 ... | 0 |
sample_45_58.ps1 | #
# Module manifest for module 'OCI.PSModules.Identity'
#
# Generated by: Oracle Cloud Infrastructure
#
#
@{
# Script module or binary module file associated with this manifest.
RootModule = 'assemblies/OCI.PSModules.Identity.dll'
# Version number of this module.
ModuleVersion = '83.2.0'
# Supported PSEditions
Comp... | 0 |
netcast show downloader_1.ps1 | cd M:\\Files\\Netcasts\\ShowName # switch to the diretory to store your content
Import-Module BitsTransfer # enable BITS on host machine as a file transfer method
$start=47 # start epidode number
$end=170 # end epidode number
$url="http://download.domain.com/episodes/" # URL of the download up to the ... | 0 |
4101.ps1 |
Set-Variable -Name RelativePath -Scope Global -Force
Set-Variable -Name Title -Scope Global -Force
Function InitializeVariables {
$Global:RelativePath = (split-path $SCRIPT:MyInvocation.MyCommand.Path -parent) + "\"
$Global:Title = "SCCM 2012 R2 Client"
}
Function Install-EXE {
... | 0 |
sample_58_24.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 = '85.2.0'
# Supported PSEditions
Compatible... | 0 |
sample_19_4.ps1 | FFFFFFFF 00 F16388ACE371A2400AB0EC90AC8B6716
FFFFFFFE 00 1
FFFFFFFD 00 2
FFFFFFFC 00 3
FFFFFFFB 00 1
00011520 71 System.String System.SR::GetResourceString(System.String)
000115A0 50 System.Resources.ResourceManager System.SR::get_ResourceManager()
000115F0 14 System.String System.SR::get_InvalidOperation_ResourceWrite... | 0 |
Watch-SG2011LeaderBoard.ps1 | #requires -Version 2.0
<#
.Synopsis
Script that will produce table of leaders in a give category.
.Description
Just some fun with regex/ xml. :)
It will grab SG 2011 Leader Board for a given category.
Than parse the string, convert it into XML, create custom ... | 0 |
1352.ps1 |
function Grant-CMsmqMessageQueuePermission
{
[CmdletBinding(SupportsShouldProcess=$true)]
param(
[Parameter(Mandatory=$true)]
[string]
$Name,
[Switch]
$Private,
[Parameter(Mandatory=$true)]
[string]
... | 0 |
PowerBoots Gadgets_1.ps1 | $gadgetWindow = @{
# Transparency, WindowStyle, and background work together
# to get rid of the standard window's chrome and make the window "irregular" shaped
# that is, the window will be the shape of it's content.
AllowsTransparency = $True
WindowStyle = "None"
Background = "Transparent"
... | 0 |
sample_17_20.ps1 | <#############################################################
# #
# Copyright (C) Microsoft Corporation. All rights reserved. #
# #
#############################################################>
... | 0 |
1638.ps1 |