full_path stringlengths 31 232 | filename stringlengths 4 167 | content stringlengths 0 48.3M |
|---|---|---|
PowerShellCorpus/PowerShellGallery/ciSCSI/1.2.1.95/Examples/Sample_ciSCSIServerTarget.ps1 | Sample_ciSCSIServerTarget.ps1 | configuration Sample_ciSCSIServerTarget
{
Param
(
[String] $NodeName = 'LocalHost'
)
Import-DscResource -Module ciSCSI
Node $NodeName
{
WindowsFeature iSCSITargetServerInstall
{
Ensure = "Present"
Name = "FS-iSCSITarget-Server"
}
... |
PowerShellCorpus/PowerShellGallery/oneliners/1.0.1.90/functions/dotnetver.ps1 | dotnetver.ps1 | function get-dotnetversions() {
$def = get-content "$psscriptroot\dotnetver.cs" | out-string
add-type -TypeDefinition $def
write-host ""
write-host "Available .Net frameworks:"
write-host ""
$r = [DotNetVer]::GetVersionFromRegistry()
$r | write-host
write-host ""
write-host "Availab... |
PowerShellCorpus/PowerShellGallery/oneliners/1.0.1.90/functions/invoke-jenkins.ps1 | invoke-jenkins.ps1 | function Invoke-Jenkins {
[CmdletBinding()]
param(
[Parameter(Mandatory = $true)]$action = "start",
[Parameter(Mandatory = $true)]$job = "test.pipeline",
[Parameter(Mandatory = $false)]
$server = $null,
$UserName = $null,
$apikey = $null,
$jobparams =... |
PowerShellCorpus/PowerShellGallery/oneliners/1.0.1.90/functions/stack.ps1 | stack.ps1 |
function add-stackitem {
param(
[Parameter(Mandatory=$true,ValueFromPipeline=$true)] $what,
$stackname = "default",
[switch][bool] $get,
[Alias("est")] $estimatedTime,
[alias("c")]
[switch][bool] $asChild,
[alias("i")]
[switch][bool]$interruption,
... |
PowerShellCorpus/PowerShellGallery/oneliners/1.0.1.90/functions/sync.ps1 | sync.ps1 |
function get-syncdir() {
if (test-path "HKCU:\Software\Microsoft\OneDrive")
{
$prop = get-itemproperty "HKCU:\Software\Microsoft\OneDrive\" "UserFolder"
if ($prop -ne $null) {
$dir = $prop.userfolder
}
}
if ($dir -ne $null) {
$syncdir = join-path $d... |
PowerShellCorpus/PowerShellGallery/mwr_tools/1.7.4/init.ps1 | init.ps1 |
# use this file to define global variables on module scope
# or perform other initialization procedures.
# this file will not be touched when new functions are exported to
# this module.
|
PowerShellCorpus/PowerShellGallery/mwr_tools/1.7.4/Start-ExternalEmailTester.ps1 | Start-ExternalEmailTester.ps1 | Function Start-ExternalEmailTester {
param(
[Parameter(Mandatory=$true)]
[System.Management.Automation.PsCredential]
$Cred = $Host.UI.PromptForCredential('Enter Outlook.com Credential',
'Enter the username and password of your outlook.com account.',
'',
'userCreds'),
[String]
... |
PowerShellCorpus/PowerShellGallery/mwr_tools/1.7.4/Invoke-Audio.ps1 | Invoke-Audio.ps1 | function Invoke-Audio
{
<#
.SYNOPSIS
Plays an audio cue on the console machine.
.DESCRIPTION
Plays a predefined sound on the console machine. Used for audible notes of certain tasks being completed during debugging/diagnostics.
.EXAMPLE
Invoke-Audio -AudioType Failhorn
Plays the P... |
PowerShellCorpus/PowerShellGallery/mwr_tools/1.7.4/Get-TeamViewerID.ps1 | Get-TeamViewerID.ps1 | function Get-TeamViewerID
{
<#
.SYNOPSIS
Short Description
.DESCRIPTION
Detailed Description
.EXAMPLE
Get-TeamViewerID
explains how to use the command
can be multiple lines
.EXAMPLE
Get-TeamViewerID
another example
can have as many examples as you like
... |
PowerShellCorpus/PowerShellGallery/mwr_tools/1.7.4/Get-ConsoleWidth.ps1 | Get-ConsoleWidth.ps1 | function Get-ConsoleWidth
{
<#
.SYNOPSIS
Returns the width of the current PowerShell Console
.DESCRIPTION
Returns the width of the current PowerShell Console
.EXAMPLE
Get-ConsoleWidth
Prints out the current console width
.EXAMPLE
$width = Get-ConsoleWidth
Stores the... |
PowerShellCorpus/PowerShellGallery/mwr_tools/1.7.4/Get-WannaCryPatchStatus.ps1 | Get-WannaCryPatchStatus.ps1 | <#PSScriptInfo
.VERSION 1.3
.AUTHOR mike@riston.me
.RELEASENOTES Fixed logic error and added more information in help section.
.DESCRIPTION
Bulk of the script from :
<<<<<<<<<<<<
Version 1.08.00 @KieranWalsh May 2017
Computer Talk LTD
Thanks to https://github.com/TLaborde, an... |
PowerShellCorpus/PowerShellGallery/mwr_tools/1.7.4/Backup-Profile.ps1 | Backup-Profile.ps1 | function Backup-Profile
{
<#
.SYNOPSIS
Performs a backup of $profile to a specific location
.DESCRIPTION
Performs a backup of $profile to a specific location. Able to specify location & number of historical copies to keep.
.EXAMPLE
Backup-Profile -BackupPath 'c:\mybackups\' -Historical... |
PowerShellCorpus/PowerShellGallery/OperationsManagerFever/1.1.0/Functions/Reset-SCOMAgentConfig.ps1 | Reset-SCOMAgentConfig.ps1 | <#
.SYNOPSIS
Reset a Monitoring Agent (Health Service) to it's initial state as it was
after a clean installation.
.DESCRIPTION
Reset a Monitoring Agent (Health Service) to it's initial state as it was
after a clean installation. To do the reset, the command stops the Health
Service Windows... |
PowerShellCorpus/PowerShellGallery/OperationsManagerFever/1.1.0/Functions/Get-SCOMHealthServiceFailedWorkflow.ps1 | Get-SCOMHealthServiceFailedWorkflow.ps1 | <#
.SYNOPSIS
Get all failed workflows on the target health services.
.DESCRIPTION
This function is a wrapper for the SCOM Task 'Show Failed Rules and
Monitors for this Health Service'. It will execute this task against
all provided health services.
.EXAMPLE
Get-SCOMHealthServiceFailedW... |
PowerShellCorpus/PowerShellGallery/OperationsManagerFever/1.1.0/Functions/Export-SCOMManagementPackBundle.ps1 | Export-SCOMManagementPackBundle.ps1 | <#
.SYNOPSIS
Export all artifacts from a SCOM Management Pack Bundle (.mpb) to the file
system.
.DESCRIPTION
Use this function to export all artifacts and the unsealed module itself
from a Management Pack Bundle file. It will use the SCOM API to perform
the extraction, therefore a connectio... |
PowerShellCorpus/PowerShellGallery/OperationsManagerFever/1.1.0/Functions/Get-SCOMHealthServiceActiveWorkflow.ps1 | Get-SCOMHealthServiceActiveWorkflow.ps1 | <#
.SYNOPSIS
Get all active workflows on the target health services.
.DESCRIPTION
This function is a wrapper for the SCOM Task 'Show Running Rules and
Monitors for this Health Service'. It will execute this task against
all provided health services.
.EXAMPLE
Get-SCOMHealthServiceActive... |
PowerShellCorpus/PowerShellGallery/OperationsManagerFever/1.1.0/Functions/Get-SCOMAgentManagementGroup.ps1 | Get-SCOMAgentManagementGroup.ps1 |
<#
.SYNOPSIS
Get all Management Group connections of a SCOM Agent.
.DESCRIPTION
Use PowerShell Remoting in combination with a local COM object query to get
the current Management Group configuration of the SCOM Agent.
.INPUTS
None.
.OUTPUTS
OperationsManagerFever.AgentManagementG... |
PowerShellCorpus/PowerShellGallery/OperationsManagerFever/1.1.0/Functions/Remove-SCOMAgentManagementGroup.ps1 | Remove-SCOMAgentManagementGroup.ps1 |
<#
.SYNOPSIS
Remove an existing Management Group connection from a SCOM Agent.
.DESCRIPTION
Use PowerShell Remoting in combination with a local COM object query to
remove an existing Management Group from the SCOM Agent.
.INPUTS
None.
.OUTPUTS
None.
.EXAMPLE
PS C:\> Remo... |
PowerShellCorpus/PowerShellGallery/OperationsManagerFever/1.1.0/Functions/Reset-SCOMMonitor.ps1 | Reset-SCOMMonitor.ps1 | <#
.SYNOPSIS
Reset and recalculate the health state for target monitors.
.DESCRIPTION
Reset the health state for the specified or for all class instance. Before
you can use this function, a connection to a SCOM Management Group has to be
opened.
.INPUTS
None.
.OUTPUTS
None.
... |
PowerShellCorpus/PowerShellGallery/OperationsManagerFever/1.1.0/Functions/Reset-SCOMAgentCache.ps1 | Reset-SCOMAgentCache.ps1 | <#
.SYNOPSIS
Reset the Cache of an Monitoring Agent (Health Service).
.DESCRIPTION
Reset the cache of a Monitoring Agent (HealthSservice). The Management Group
configuration is not reseted. To perform the the reset, this command will
stop the Monitoring Agent Windows service, clear the Health S... |
PowerShellCorpus/PowerShellGallery/OperationsManagerFever/1.1.0/Helpers/Resolve-SCOMWorkflowName.ps1 | Resolve-SCOMWorkflowName.ps1 |
function Resolve-SCOMWorkflowName
{
[CmdletBinding()]
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSAvoidUsingCmdletAliases', '')]
param
(
[Parameter(Mandatory = $true, Position = 0)]
[System.String]
$Name,
[Parameter(Mandatory = $true, Position = 1)]
... |
PowerShellCorpus/PowerShellGallery/OperationsManagerFever/1.1.0/Helpers/Test-SCOMMonitoringTaskResultForError.ps1 | Test-SCOMMonitoringTaskResultForError.ps1 |
function Test-SCOMMonitoringTaskResultForError
{
param
(
[Parameter(Mandatory = $true, ValueFromPipeline = $true)]
[Microsoft.EnterpriseManagement.Runtime.TaskResult]
$Result
)
if ($Result.Status -ne 'Succeeded')
{
Write-Error "Task failed with error code $($Result.... |
PowerShellCorpus/PowerShellGallery/OperationsManagerFever/1.1.0/Helpers/Get-SCOMManagementGroupConnectionActive.ps1 | Get-SCOMManagementGroupConnectionActive.ps1 |
function Get-SCOMManagementGroupConnectionActive
{
[CmdletBinding()]
[OutputType([Microsoft.SystemCenter.Core.Connection.Connection])]
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSAvoidUsingCmdletAliases', '')]
param ()
$ActiveConnection = Get-SCOMManagementGroupConnection | Where-... |
PowerShellCorpus/PowerShellGallery/OperationsManagerFever/1.1.0/Helpers/Invoke-SCOMTask.ps1 | Invoke-SCOMTask.ps1 |
function Invoke-SCOMTask
{
[CmdletBinding()]
[OutputType([Microsoft.EnterpriseManagement.Runtime.TaskResult])]
param
(
[Parameter(Mandatory = $true, Position = 0)]
[System.String]
$TaskName,
[Parameter(Mandatory = $true, Position = 1)]
[Microsoft.EnterpriseManag... |
PowerShellCorpus/PowerShellGallery/SCOrchDev-Utility/2.2.0/SCOrchDev-Utility.tests.ps1 | SCOrchDev-Utility.tests.ps1 | $here = Split-Path -Parent $MyInvocation.MyCommand.Path
$manifestPath = "$here\SCOrchDev-Utility.psd1"
Import-Module $manifestPath -Force
Describe -Tags 'VersionChecks' 'SCOrchDev-Utility manifest' {
$script:manifest = $null
It 'has a valid manifest' {
{
$script:manifest = Test-Mo... |
PowerShellCorpus/PowerShellGallery/HistoryPx/1.0.6.15/functions/Set-CaptureOutputConfiguration.ps1 | Set-CaptureOutputConfiguration.ps1 | <#############################################################################
HistoryPx uses proxy commands to add extended history information to
PowerShell. This includes the duration of a command, a flag indicating whether
a command was successful or not, the output generated by a command (limited to
a configur... |
PowerShellCorpus/PowerShellGallery/HistoryPx/1.0.6.15/functions/Get-ExtendedHistoryConfiguration.ps1 | Get-ExtendedHistoryConfiguration.ps1 | <#############################################################################
HistoryPx uses proxy commands to add extended history information to
PowerShell. This includes the duration of a command, a flag indicating whether
a command was successful or not, the output generated by a command (limited to
a configur... |
PowerShellCorpus/PowerShellGallery/HistoryPx/1.0.6.15/functions/Set-ExtendedHistoryConfiguration.ps1 | Set-ExtendedHistoryConfiguration.ps1 | <#############################################################################
HistoryPx uses proxy commands to add extended history information to
PowerShell. This includes the duration of a command, a flag indicating whether
a command was successful or not, the output generated by a command (limited to
a configur... |
PowerShellCorpus/PowerShellGallery/HistoryPx/1.0.6.15/functions/Get-CaptureOutputConfiguration.ps1 | Get-CaptureOutputConfiguration.ps1 | <#############################################################################
HistoryPx uses proxy commands to add extended history information to
PowerShell. This includes the duration of a command, a flag indicating whether
a command was successful or not, the output generated by a command (limited to
a configur... |
PowerShellCorpus/PowerShellGallery/HistoryPx/1.0.6.15/scripts/Export-BinaryModule.ps1 | Export-BinaryModule.ps1 | <#############################################################################
HistoryPx uses proxy commands to add extended history information to
PowerShell. This includes the duration of a command, a flag indicating whether
a command was successful or not, the output generated by a command (limited to
a configur... |
PowerShellCorpus/PowerShellGallery/TEApi/1.144/Private/Restore-TEApiDnsServer.ps1 | Restore-TEApiDnsServer.ps1 | function Restore-TEApiDnsServer {
<#
.SYNOPSIS
Restore Backed up test created by Backup-TEApiTest
.DESCRIPTION
.EXAMPLE
.EXAMPLE
.PARAMETER apiVersion
.PARAMETER aid
Account Group ID
.PARAMETER id
Test ID for Restore
.PARAMETER restoreLo... |
PowerShellCorpus/PowerShellGallery/TEApi/1.144/Public/Get-TEApiTest.ps1 | Get-TEApiTest.ps1 | function Get-TEApiTest {
<#
.SYNOPSIS
Function for getting tests configured for the account group
.DESCRIPTION
#### STATUS: COMPLETE ####
Grabs either a list of all tests, details for a specific test, or all tests of a specific type
.EXAMPLE
Get-TEApiTest
This will use the def... |
PowerShellCorpus/PowerShellGallery/TEApi/1.144/Public/Send-TEApi.ps1 | Send-TEApi.ps1 | function Send-TEApi {
<#
.SYNOPSIS
Function that takes care of creating the Rest URL. This function also invokes
the Invoke-RestMethod and returns the json data as a PS-Object, Defaults to GET.
.DESCRIPTION
Built for the ThousandEyes API. This function will take url construction parameters... |
PowerShellCorpus/PowerShellGallery/TEApi/1.144/Public/Get-TEApiAdmin.ps1 | Get-TEApiAdmin.ps1 | function Get-TEApiAdmin {
<#
.SYNOPSIS
Admin Endpoint Getter
.DESCRIPTION
#### STATUS: COMPLETE ####
Returns either a list of all account Groups, users, roles or permissions.
Can also return details for a specific Account Group, user, or role, defaults to account groups
.EXAMPLE... |
PowerShellCorpus/PowerShellGallery/TEApi/1.144/Public/Set-TEApiConfig.ps1 | Set-TEApiConfig.ps1 | function Set-TEApiConfig {
<#
.SYNOPSIS
Sets authorization for current session
.DESCRIPTION
#### STATUS: COMPLETE ####
Sets the authorization for the current PS session. By default the apitoken will not be saved.
Using the saveAuth switch will save the username/APItoken to the local ... |
PowerShellCorpus/PowerShellGallery/TEApi/1.144/Public/Get-TEApiAgent.ps1 | Get-TEApiAgent.ps1 | function Get-TEApiAgent {
<#
.SYNOPSIS
Function for getting agents and BGP Monitors
.DESCRIPTION
#### STATUS: COMPLETE ####
Grabs either a list of all agents, details for one or more agents, or a list of BGP monitors
.EXAMPLE
Get-TEApiAgent
This will use the default behavio... |
PowerShellCorpus/PowerShellGallery/TEApi/1.144/Public/New-TEApiInstantTest.ps1 | New-TEApiInstantTest.ps1 | function New-TEApiInstantTest
{
<#
.SYNOPSIS
Function for running instant tests on TE platform
.DESCRIPTION
Instant test function. Function will return a json object of the test results.
.EXAMPLE
New-TEApiInstantTest
.PARAMETER NetPing
Run a Ping test, takes no value. A... |
PowerShellCorpus/PowerShellGallery/TEApi/1.144/Public/Get-TEApiStatus.ps1 | Get-TEApiStatus.ps1 | function Get-TEApiStatus{
<#
.SYNOPSIS
Function to test whether the API is up or not.
.DESCRIPTION
#### STATUS: COMPLETE ####
Will return true or false based on whether API is up or not
.EXAMPLE
Get-TEAPiStatus
Will Return $true if a timestamp is returned, false if not.
... |
PowerShellCorpus/PowerShellGallery/TEApi/1.144/Public/New-TEApiTestBGP.ps1 | New-TEApiTestBGP.ps1 | function New-TEApiTestBGP
{
[CmdletBinding()]
Param(
[Parameter( Mandatory=$true, Position = 0)]
[string]$testName,
[Parameter(ParameterSetName="CreateBGPTest",
Mandatory=$true)]
[switch]$createBGPTest,
[Parameter(ParameterSetName="CreateB... |
PowerShellCorpus/PowerShellGallery/TEApi/1.144/Public/Restore-TEApiTest.ps1 | Restore-TEApiTest.ps1 | function Restore-TEApiTest {
<#
.SYNOPSIS
Restore Backed up test created by Backup-TEApiTest
.DESCRIPTION
.EXAMPLE
.EXAMPLE
.PARAMETER apiVersion
.PARAMETER aid
Account Group ID
.PARAMETER id
Test ID for Restore
.PARAMETER restoreLocati... |
PowerShellCorpus/PowerShellGallery/TEApi/1.144/Public/Get-TEApiAlert.ps1 | Get-TEApiAlert.ps1 | function Get-TEApiAlert {
<#
.SYNOPSIS
Function for getting alerts
.DESCRIPTION
#### STATUS: COMPLETE ####
Grabs either a list of all alert rules, active alerts, or details for a specific alert
.EXAMPLE
Get-TEApiAlert
This will use the default behavior and return all Activ... |
PowerShellCorpus/PowerShellGallery/TEApi/1.144/Public/New-TEApiTest.ps1 | New-TEApiTest.ps1 | function New-TEApiTest
{
[CmdletBinding()]
Param(
##### Common Parameters #####
[Parameter( Mandatory=$true, Position = 0)]
[string]$testName,
[Parameter( HelpMessage="Array of Group objects")]
[array]$groups,
[Parameter( HelpMessage="enable ... |
PowerShellCorpus/PowerShellGallery/TEApi/1.144/Public/Get-TEApiTestData.ps1 | Get-TEApiTestData.ps1 | function Get-TEApiTestData {
<#
.SYNOPSIS
Function for getting test Data
.DESCRIPTION
Returns the data from a specific test, if no options specified the current round of data will be returned
.EXAMPLE
.EXAMPLE
.PARAMETER apiVersion
API version defaults to versio... |
PowerShellCorpus/PowerShellGallery/TEApi/1.144/Public/Get-TEApiUsage.ps1 | Get-TEApiUsage.ps1 | function Get-TEApiUsage{
<#
.SYNOPSIS
Usage Endpoint Getter
.DESCRIPTION
#### STATUS: COMPLETE ####
Returns Usage Data for the specified account group, or default group if no account Group specified
.EXAMPLE
Get-TEApiUsage
.EXAMPLE
Get-TEApiUsage -aid <accountGroupID>
... |
PowerShellCorpus/PowerShellGallery/TEApi/1.144/Public/Backup-TEApiTest.ps1 | Backup-TEApiTest.ps1 | function Backup-TEApiTest {
<#
.SYNOPSIS
Function for backing up ThousandEyes tests
.DESCRIPTION
#### STATUS: COMPLETE ####
Will grab either a single test by using testid or multiple tests by passing an array to testid. You can also back up all
tests by using the backupAll switch. ... |
PowerShellCorpus/PowerShellGallery/TEApi/1.144/Backups/Get-TEApiTest.ps1 | Get-TEApiTest.ps1 | function Get-TEApiTest {
<#
.SYNOPSIS
Function for getting tests configured for the account group
.DESCRIPTION
#### STATUS: COMPLETE ####
Grabs either a list of all tests, details for a specific test, or all tests of a specific type
.EXAMPLE
Get-TEApiTest
This will use the ... |
PowerShellCorpus/PowerShellGallery/TEApi/1.144/Backups/Set-TEApiConfig.2.ps1 | Set-TEApiConfig.2.ps1 | function Set-TEApiConfig {
<#
.SYNOPSIS
Sets authorization for current session
.DESCRIPTION
#### STATUS: COMPLETE ####
Sets the authorization for the current PS session. By default the apitoken will not be saved.
Using the saveAuth switch will save the username/APItoken to the local ... |
PowerShellCorpus/PowerShellGallery/TEApi/1.144/Backups/Set-TEApiConfig.1.ps1 | Set-TEApiConfig.1.ps1 | function Set-TEApiConfig {
<#
.SYNOPSIS
Sets authorization for current session
.DESCRIPTION
#### STATUS: COMPLETE ####
Sets the authorization for the current PS session. By default the apitoken will not be saved.
Using the saveAuth switch will save the username/APItoken to the local ... |
PowerShellCorpus/PowerShellGallery/POSHOrigin_ActiveDirectoryDNS/1.1.4/Invoke.ps1 | Invoke.ps1 | <#
This script expects to be passed a psobject with all the needed properties
in order to invoke 'Active Directory DNS' DSC resources.
#>
[cmdletbinding()]
param(
[parameter(mandatory)]
[psobject]$Options,
[bool]$Direct = $false
)
# Ensure we have a valid 'ensure' property
if ($null -... |
PowerShellCorpus/PowerShellGallery/POSHOrigin_ActiveDirectoryDNS/1.1.4/Examples/Example_CName.ps1 | Example_CName.ps1 | $DscConfigData = @{
AllNodes = @(
@{
NodeName = "*"
PSDscAllowPlainTextPassword = $true
PSDscAllowDomainUser = $true
}
@{
NodeName = 'localhost'
}
)
}
Configuration Example_ARecord {
param(
[string[]]$Nod... |
PowerShellCorpus/PowerShellGallery/POSHOrigin_ActiveDirectoryDNS/1.1.4/Examples/Example_POSHOrigin_ARecord.ps1 | Example_POSHOrigin_ARecord.ps1 | resource 'POSHOrigin_ActiveDirectoryDNS:ARecord' 'serverxyz' @{
ZoneName = 'mydomain.local'
IpAddress = '10.45.195.254'
DnsServer = 'dc01.mydomain.local'
CreatePtr = $true
Credential = Get-POSHOriginSecret 'pscredential' @{
username = 'mydomain\administrator'
password = 'K33p1... |
PowerShellCorpus/PowerShellGallery/POSHOrigin_ActiveDirectoryDNS/1.1.4/Examples/Example_POSHOrigin_CName.ps1 | Example_POSHOrigin_CName.ps1 | resource 'POSHOrigin_ActiveDirectoryDNS:CName' 'serverxyz' @{
ZoneName = 'mydomain.local'
Fqdn = 'www.google.com'
DnsServer = 'dc01.mydomain.local'
Credential = Get-POSHOriginSecret 'pscredential' @{
username = 'mydomain\administrator'
password = 'K33p1t53cr3tK33p1t5@f3'
}
... |
PowerShellCorpus/PowerShellGallery/POSHOrigin_ActiveDirectoryDNS/1.1.4/Examples/Example_ARecord.ps1 | Example_ARecord.ps1 | $DscConfigData = @{
AllNodes = @(
@{
NodeName = "*"
PSDscAllowPlainTextPassword = $true
PSDscAllowDomainUser = $true
}
@{
NodeName = 'localhost'
}
)
}
Configuration Example_ARecord {
param(
[string[]]$Nod... |
PowerShellCorpus/PowerShellGallery/cSonarr/1.2/Examples/cSonarrInstall.ps1 | cSonarrInstall.ps1 | configuration DownloadHostDSC
{
Import-DscResource -ModuleName 'cSonarr'
cSonarrInstall SonarrInstaller
{
Ensure = 'Present'
}
}
|
PowerShellCorpus/PowerShellGallery/OctopusDSC/2.0.106/Examples/cOctopusServerAzureADAuthentication.ps1 | cOctopusServerAzureADAuthentication.ps1 | Configuration SampleConfig
{
Import-DscResource -Module OctopusDSC
Node "localhost"
{
cOctopusServerAzureADAuthentication "Enable AzureAD authentication"
{
InstanceName = "OctopusServer"
Enabled = $true
Issuer = "https://login.microsoftonline.co... |
PowerShellCorpus/PowerShellGallery/OctopusDSC/2.0.106/Examples/cOctopusServerActiveDirectoryAuthentication.ps1 | cOctopusServerActiveDirectoryAuthentication.ps1 | Configuration SampleConfig
{
Import-DscResource -Module OctopusDSC
Node "localhost"
{
cOctopusServerActiveDirectoryAuthentication "Enable AD authentication"
{
InstanceName = "OctopusServer"
Enabled = $true
AllowFormsAuthenticationForDomainUsers ... |
PowerShellCorpus/PowerShellGallery/OctopusDSC/2.0.106/Examples/cOctopusServer.ps1 | cOctopusServer.ps1 | Configuration SampleConfig
{
Import-DscResource -Module OctopusDSC
Node "localhost"
{
cOctopusServer OctopusServer
{
Ensure = "Present"
State = "Started"
# Server instance name. Leave it as 'OctopusServer' unless you have more
# t... |
PowerShellCorpus/PowerShellGallery/OctopusDSC/2.0.106/Examples/cOctopusServerGoogleAppsAuthentication.ps1 | cOctopusServerGoogleAppsAuthentication.ps1 | Configuration SampleConfig
{
Import-DscResource -Module OctopusDSC
Node "localhost"
{
cOctopusServerGoogleAppsAuthentication "Enable Google Apps authentication"
{
InstanceName = "OctopusServer"
Enabled = $true
ClientID = "5743519123-123235852025... |
PowerShellCorpus/PowerShellGallery/OctopusDSC/2.0.106/Examples/cOctopusServerUsernamePasswordAuthentication.ps1 | cOctopusServerUsernamePasswordAuthentication.ps1 | Configuration SampleConfig
{
Import-DscResource -Module OctopusDSC
Node "localhost"
{
cOctopusServerUsernamePasswordAuthentication "Enable Username/Password Auth"
{
InstanceName = "OctopusServer"
Enabled = $true
}
}
}
|
PowerShellCorpus/PowerShellGallery/OctopusDSC/2.0.106/Tests/cOctopusServerGoogleAppsAuthentication.Tests.ps1 | cOctopusServerGoogleAppsAuthentication.Tests.ps1 | #requires -Version 4.0
$moduleName = Split-Path ($PSCommandPath -replace '\.Tests\.ps1$', '') -Leaf
$modulePath = Split-Path $PSCommandPath -Parent
$modulePath = Resolve-Path "$PSCommandPath/../../DSCResources/$moduleName/$moduleName.psm1"
$module = $null
try
{
$prefix = [guid]::NewGuid().Guid -replace '... |
PowerShellCorpus/PowerShellGallery/OctopusDSC/2.0.106/Tests/cTentacleAgent.Tests.ps1 | cTentacleAgent.Tests.ps1 | #requires -Version 4.0
$moduleName = Split-Path ($PSCommandPath -replace '\.Tests\.ps1$', '') -Leaf
$modulePath = Split-Path $PSCommandPath -Parent
$modulePath = Resolve-Path "$PSCommandPath/../../DSCResources/$moduleName/$moduleName.psm1"
$module = $null
try
{
$prefix = [guid]::NewGuid().Guid -replace '... |
PowerShellCorpus/PowerShellGallery/OctopusDSC/2.0.106/Tests/cOctopusServer.Tests.ps1 | cOctopusServer.Tests.ps1 | #requires -Version 4.0
$moduleName = Split-Path ($PSCommandPath -replace '\.Tests\.ps1$', '') -Leaf
$modulePath = Split-Path $PSCommandPath -Parent
$modulePath = Resolve-Path "$PSCommandPath/../../DSCResources/$moduleName/$moduleName.psm1"
$module = $null
try
{
$prefix = [guid]::NewGuid().Guid -replace '... |
PowerShellCorpus/PowerShellGallery/OctopusDSC/2.0.106/Tests/cOctopusServerUsernamePasswordAuthentication.Tests.ps1 | cOctopusServerUsernamePasswordAuthentication.Tests.ps1 | #requires -Version 4.0
$moduleName = Split-Path ($PSCommandPath -replace '\.Tests\.ps1$', '') -Leaf
$modulePath = Split-Path $PSCommandPath -Parent
$modulePath = Resolve-Path "$PSCommandPath/../../DSCResources/$moduleName/$moduleName.psm1"
$module = $null
try
{
$prefix = [guid]::NewGuid().Guid -replace '... |
PowerShellCorpus/PowerShellGallery/OctopusDSC/2.0.106/Tests/cOctopusServerActiveDirectoryAuthentication.Tests.ps1 | cOctopusServerActiveDirectoryAuthentication.Tests.ps1 | #requires -Version 4.0
$moduleName = Split-Path ($PSCommandPath -replace '\.Tests\.ps1$', '') -Leaf
$modulePath = Split-Path $PSCommandPath -Parent
$modulePath = Resolve-Path "$PSCommandPath/../../DSCResources/$moduleName/$moduleName.psm1"
$module = $null
try
{
$prefix = [guid]::NewGuid().Guid -replace '... |
PowerShellCorpus/PowerShellGallery/OctopusDSC/2.0.106/Tests/cOctopusServerAzureADAuthentication.Tests.ps1 | cOctopusServerAzureADAuthentication.Tests.ps1 | #requires -Version 4.0
$moduleName = Split-Path ($PSCommandPath -replace '\.Tests\.ps1$', '') -Leaf
$modulePath = Split-Path $PSCommandPath -Parent
$modulePath = Resolve-Path "$PSCommandPath/../../DSCResources/$moduleName/$moduleName.psm1"
$module = $null
try
{
$prefix = [guid]::NewGuid().Guid -replace '... |
PowerShellCorpus/PowerShellGallery/VMware.VimAutomation.Common/6.5.1.5335010/VMware.VimAutomation.Common.ps1 | VMware.VimAutomation.Common.ps1 | #Initialization script
# SIG # Begin signature block
# MIIdVgYJKoZIhvcNAQcCoIIdRzCCHUMCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB
# gjcCAQSgWzBZMDQGCisGAQQBgjcCAR4wJgIDAQAABBAfzDtgWUsITrck0sYpfvNR
# AgEAAgEAAgEAAgEAAgEAMCEwCQYFKw4DAhoFAAQUGqL/7mqktRcp+XppyDa+RwqD
# k5KgghhpMIID7jCCA1egAwIBAgIQfpPr+3zGTlnqS5p31Ab8OzANBgkqhki... |
PowerShellCorpus/PowerShellGallery/cFSRM/2.0.1.48/Examples/Sample_cFSRMClassificationRule.ps1 | Sample_cFSRMClassificationRule.ps1 | configuration Sample_cFSRMClassificationRule
{
Import-DscResource -Module cFSRM
Node $NodeName
{
cFSRMClassificationRule ConfidentialPrivacyClasificationRule
{
Name = 'Confidential'
Description = 'Set Confidential'
Ensure = 'Present'
Property ... |
PowerShellCorpus/PowerShellGallery/cFSRM/2.0.1.48/Examples/Sample_cFSRMFileScreen_UsingTemplate.ps1 | Sample_cFSRMFileScreen_UsingTemplate.ps1 | configuration Sample_cFSRMFileScreen_UsingTemplate
{
Import-DscResource -Module cFSRM
Node $NodeName
{
cFSRMFileScreen DUsersFileScreens
{
Path = 'd:\users'
Description = 'File Screen for Blocking Some Files'
Ensure = 'Present'
Template = 'Blo... |
PowerShellCorpus/PowerShellGallery/cFSRM/2.0.1.48/Examples/Sample_cFSRMClassificationProperty_YesNo.ps1 | Sample_cFSRMClassificationProperty_YesNo.ps1 | configuration Sample_cFSRMClassificationProperty_YesNo
{
Import-DscResource -Module cFSRM
Node $NodeName
{
cFSRMClassificationProperty ConfidentialFiles
{
Name = 'Confidential'
Type = 'YesNo'
Description = 'Is this file a confidential file'
En... |
PowerShellCorpus/PowerShellGallery/cFSRM/2.0.1.48/Examples/Sample_cFSRMClassificationPropertyValue.ps1 | Sample_cFSRMClassificationPropertyValue.ps1 | configuration Sample_cFSRMClassificationPropertyValue
{
Import-DscResource -Module cFSRM
Node $NodeName
{
cFSRMClassificationPropertyValue PublicClasificationPropertyValue
{
Name = 'Public'
PropertyName = 'Privacy'
Description = 'Publically accessible fil... |
PowerShellCorpus/PowerShellGallery/cFSRM/2.0.1.48/Examples/Sample_cFSRMSettings.ps1 | Sample_cFSRMSettings.ps1 | configuration Sample_cFSRMSettings
{
Import-DscResource -Module cFSRM
Node $NodeName
{
cFSRMSettings FSRMSettings
{
Id = 'Default'
SmtpServer = 'smtp.contoso.com'
AdminEmailAddress = 'fsadmin@contoso.com'
FromEmailAddress = 'fsuser@contoso.com... |
PowerShellCorpus/PowerShellGallery/cFSRM/2.0.1.48/Examples/Sample_cFSRMFileScreenException.ps1 | Sample_cFSRMFileScreenException.ps1 | configuration Sample_cFSRMFileScreenException
{
Import-DscResource -Module cFSRM
Node $NodeName
{
cFSRMFileScreenException DUsersFileScreenException
{
Path = 'd:\users'
Description = 'File Screen for Blocking Some Files'
Ensure = 'Present'
Inc... |
PowerShellCorpus/PowerShellGallery/cFSRM/2.0.1.48/Examples/Sample_cFSRMClassificationProperty_SingleChoice.ps1 | Sample_cFSRMClassificationProperty_SingleChoice.ps1 | configuration Sample_cFSRMClassificationProperty_SingleChoice
{
Import-DscResource -Module cFSRM
Node $NodeName
{
cFSRMClassificationProperty PrivacyClasificationProperty
{
Name = 'Privacy'
Type = 'SingleChoice'
DisplayName = 'File Privacy'
De... |
PowerShellCorpus/PowerShellGallery/cFSRM/2.0.1.48/Examples/Sample_cFSRMQuotaTemplate.ps1 | Sample_cFSRMQuotaTemplate.ps1 | configuration Sample_cFSRMQuotaTemplate
{
Import-DscResource -Module cFSRM
Node $NodeName
{
cFSRMQuotaTemplate HardLimit5GB
{
Name = '5 GB Limit'
Description = '5 GB Hard Limit'
Ensure = 'Present'
Size = 5GB
SoftLimit = $False
... |
PowerShellCorpus/PowerShellGallery/cFSRM/2.0.1.48/Examples/Sample_cFSRMFileGroup.ps1 | Sample_cFSRMFileGroup.ps1 | configuration Sample_cFSRMFileGroup
{
Import-DscResource -Module cFSRM
Node $NodeName
{
cFSRMFileGroup FSRMFileGroupPortableFiles
{
Name = 'Portable Document Files'
Description = 'Files containing portable document formats'
Ensure = 'Present'
... |
PowerShellCorpus/PowerShellGallery/cFSRM/2.0.1.48/Examples/Sample_cFSRMQuota.ps1 | Sample_cFSRMQuota.ps1 | configuration Sample_cFSRMQuota
{
Import-DscResource -Module cFSRM
Node $NodeName
{
cFSRMQuota DUsers
{
Path = 'd:\Users'
Description = '5 GB Hard Limit'
Ensure = 'Present'
Size = 5GB
SoftLimit = $False
ThresholdPercent... |
PowerShellCorpus/PowerShellGallery/cFSRM/2.0.1.48/Examples/Sample_cFSRMClassification.ps1 | Sample_cFSRMClassification.ps1 | configuration Sample_cFSRMClassification
{
Import-DscResource -Module cFSRM
Node $NodeName
{
cFSRMClassification FSRMClassificationSettings
{
Id = 'Default'
Continuous = $True
ContinuousLog = $True
ContinuousLogSize = 2048
Schedule... |
PowerShellCorpus/PowerShellGallery/cFSRM/2.0.1.48/Examples/Sample_cFSRMFileScreenTemplate.ps1 | Sample_cFSRMFileScreenTemplate.ps1 | configuration Sample_cFSRMFileScreenTemplate
{
Import-DscResource -Module cFSRM
Node $NodeName
{
cFSRMFileScreenTemplate FileScreenSomeFiles
{
Name = 'Block Some Files'
Description = 'File Screen for Blocking Some Files'
Ensure = 'Present'
Act... |
PowerShellCorpus/PowerShellGallery/cFSRM/2.0.1.48/Examples/Sample_cFSRMQuota_UsingTemplate.ps1 | Sample_cFSRMQuota_UsingTemplate.ps1 | configuration Sample_cFSRMQuota_UsingTemplate
{
Import-DscResource -Module cFSRM
Node $NodeName
{
cFSRMQuota DUsers
{
Path = 'd:\Users'
Description = '100 MB Limit'
Ensure = 'Present'
Template = '100 MB Limit'
MatchesTemplate = $tr... |
PowerShellCorpus/PowerShellGallery/cFSRM/2.0.1.48/Examples/Sample_cFSRMFileScreen.ps1 | Sample_cFSRMFileScreen.ps1 | configuration Sample_cFSRMFileScreen
{
Import-DscResource -Module cFSRM
Node $NodeName
{
cFSRMFileScreen DUsersFileScreen
{
Path = 'd:\users'
Description = 'File Screen for Blocking Some Files'
Ensure = 'Present'
Active = $true
Inc... |
PowerShellCorpus/PowerShellGallery/cFSRM/2.0.1.48/Examples/Sample_cFSRMAutoQuota.ps1 | Sample_cFSRMAutoQuota.ps1 | configuration Sample_cFSRMAutoQuota
{
Import-DscResource -Module cFSRM
Node $NodeName
{
cFSRMAutoQuota DUsers
{
Path = 'd:\Users'
Ensure = 'Present'
Disabled = $false
Template = '5 GB Limit'
} # End of cFSRMAutoQuota Resource
} # E... |
PowerShellCorpus/PowerShellGallery/cFSRM/2.0.1.48/Tests/Unit/BMD_cFSRMClassificationProperty.Tests.ps1 | BMD_cFSRMClassificationProperty.Tests.ps1 | $DSCResourceName = 'BMD_cFSRMClassificationProperty'
$DSCModuleName = 'cFSRM'
#region HEADER
if ( (-not (Test-Path -Path '.\DSCResource.Tests\')) -or `
(-not (Test-Path -Path '.\DSCResource.Tests\TestHelper.psm1')) )
{
& git @('clone','https://github.com/PlagueHO/DscResource.Tests.git')
}
Import-Module .\DS... |
PowerShellCorpus/PowerShellGallery/cFSRM/2.0.1.48/Tests/Unit/BMD_cFSRMSettings.Tests.ps1 | BMD_cFSRMSettings.Tests.ps1 | $DSCResourceName = 'BMD_cFSRMSettings'
$DSCModuleName = 'cFSRM'
#region HEADER
if ( (-not (Test-Path -Path '.\DSCResource.Tests\')) -or `
(-not (Test-Path -Path '.\DSCResource.Tests\TestHelper.psm1')) )
{
& git @('clone','https://github.com/PlagueHO/DscResource.Tests.git')
}
Import-Module .\DSCResource.Test... |
PowerShellCorpus/PowerShellGallery/cFSRM/2.0.1.48/Tests/Unit/BMD_cFSRMQuotaAction.Tests.ps1 | BMD_cFSRMQuotaAction.Tests.ps1 | $DSCResourceName = 'BMD_cFSRMQuotaAction'
$DSCModuleName = 'cFSRM'
#region HEADER
if ( (-not (Test-Path -Path '.\DSCResource.Tests\')) -or `
(-not (Test-Path -Path '.\DSCResource.Tests\TestHelper.psm1')) )
{
& git @('clone','https://github.com/PlagueHO/DscResource.Tests.git')
}
Import-Module .\DSCResource.T... |
PowerShellCorpus/PowerShellGallery/cFSRM/2.0.1.48/Tests/Unit/BMD_cFSRMQuotaTemplate.Tests.ps1 | BMD_cFSRMQuotaTemplate.Tests.ps1 | $DSCResourceName = 'BMD_cFSRMQuotaTemplate'
$DSCModuleName = 'cFSRM'
#region HEADER
if ( (-not (Test-Path -Path '.\DSCResource.Tests\')) -or `
(-not (Test-Path -Path '.\DSCResource.Tests\TestHelper.psm1')) )
{
& git @('clone','https://github.com/PlagueHO/DscResource.Tests.git')
}
Import-Module .\DSCResource... |
PowerShellCorpus/PowerShellGallery/cFSRM/2.0.1.48/Tests/Unit/BMD_cFSRMFileScreen.Tests.ps1 | BMD_cFSRMFileScreen.Tests.ps1 | $DSCResourceName = 'BMD_cFSRMFileScreen'
$DSCModuleName = 'cFSRM'
#region HEADER
if ( (-not (Test-Path -Path '.\DSCResource.Tests\')) -or `
(-not (Test-Path -Path '.\DSCResource.Tests\TestHelper.psm1')) )
{
& git @('clone','https://github.com/PlagueHO/DscResource.Tests.git')
}
Import-Module .\DSCResource.Te... |
PowerShellCorpus/PowerShellGallery/cFSRM/2.0.1.48/Tests/Unit/BMD_cFSRMFileScreenTemplateAction.Tests.ps1 | BMD_cFSRMFileScreenTemplateAction.Tests.ps1 | $DSCResourceName = 'BMD_cFSRMFileScreenTemplateAction'
$DSCModuleName = 'cFSRM'
#region HEADER
if ( (-not (Test-Path -Path '.\DSCResource.Tests\')) -or `
(-not (Test-Path -Path '.\DSCResource.Tests\TestHelper.psm1')) )
{
& git @('clone','https://github.com/PlagueHO/DscResource.Tests.git')
}
Import-Module .\... |
PowerShellCorpus/PowerShellGallery/cFSRM/2.0.1.48/Tests/Unit/BMD_cFSRMFileScreenAction.Tests.ps1 | BMD_cFSRMFileScreenAction.Tests.ps1 | $DSCResourceName = 'BMD_cFSRMFileScreenAction'
$DSCModuleName = 'cFSRM'
#region HEADER
if ( (-not (Test-Path -Path '.\DSCResource.Tests\')) -or `
(-not (Test-Path -Path '.\DSCResource.Tests\TestHelper.psm1')) )
{
& git @('clone','https://github.com/PlagueHO/DscResource.Tests.git')
}
Import-Module .\DSCResou... |
PowerShellCorpus/PowerShellGallery/cFSRM/2.0.1.48/Tests/Unit/BMD_cFSRMFileScreenTemplate.Tests.ps1 | BMD_cFSRMFileScreenTemplate.Tests.ps1 | $DSCResourceName = 'BMD_cFSRMFileScreenTemplate'
$DSCModuleName = 'cFSRM'
#region HEADER
if ( (-not (Test-Path -Path '.\DSCResource.Tests\')) -or `
(-not (Test-Path -Path '.\DSCResource.Tests\TestHelper.psm1')) )
{
& git @('clone','https://github.com/PlagueHO/DscResource.Tests.git')
}
Import-Module .\DSCRes... |
PowerShellCorpus/PowerShellGallery/cFSRM/2.0.1.48/Tests/Unit/BMD_cFSRMClassificationRule.Tests.ps1 | BMD_cFSRMClassificationRule.Tests.ps1 | $DSCResourceName = 'BMD_cFSRMClassificationRule'
$DSCModuleName = 'cFSRM'
#region HEADER
if ( (-not (Test-Path -Path '.\DSCResource.Tests\')) -or `
(-not (Test-Path -Path '.\DSCResource.Tests\TestHelper.psm1')) )
{
& git @('clone','https://github.com/PlagueHO/DscResource.Tests.git')
}
Import-Module .\DSCRes... |
PowerShellCorpus/PowerShellGallery/cFSRM/2.0.1.48/Tests/Unit/BMD_cFSRMFileScreenException.Tests.ps1 | BMD_cFSRMFileScreenException.Tests.ps1 | $DSCResourceName = 'BMD_cFSRMFileScreenException'
$DSCModuleName = 'cFSRM'
#region HEADER
if ( (-not (Test-Path -Path '.\DSCResource.Tests\')) -or `
(-not (Test-Path -Path '.\DSCResource.Tests\TestHelper.psm1')) )
{
& git @('clone','https://github.com/PlagueHO/DscResource.Tests.git')
}
Import-Module .\DSCRe... |
PowerShellCorpus/PowerShellGallery/cFSRM/2.0.1.48/Tests/Unit/BMD_cFSRMClassificationPropertyValue.Tests.ps1 | BMD_cFSRMClassificationPropertyValue.Tests.ps1 | $DSCResourceName = 'BMD_cFSRMClassificationPropertyValue'
$DSCModuleName = 'cFSRM'
#region HEADER
if ( (-not (Test-Path -Path '.\DSCResource.Tests\')) -or `
(-not (Test-Path -Path '.\DSCResource.Tests\TestHelper.psm1')) )
{
& git @('clone','https://github.com/PlagueHO/DscResource.Tests.git')
}
Import-Module... |
PowerShellCorpus/PowerShellGallery/cFSRM/2.0.1.48/Tests/Unit/BMD_cFSRMFileGroup.Tests.ps1 | BMD_cFSRMFileGroup.Tests.ps1 | $DSCResourceName = 'BMD_cFSRMFileGroup'
$DSCModuleName = 'cFSRM'
#region HEADER
if ( (-not (Test-Path -Path '.\DSCResource.Tests\')) -or `
(-not (Test-Path -Path '.\DSCResource.Tests\TestHelper.psm1')) )
{
& git @('clone','https://github.com/PlagueHO/DscResource.Tests.git')
}
Import-Module .\DSCResource.Tes... |
PowerShellCorpus/PowerShellGallery/cFSRM/2.0.1.48/Tests/Unit/BMD_cFSRMQuota.Tests.ps1 | BMD_cFSRMQuota.Tests.ps1 | $DSCResourceName = 'BMD_cFSRMQuota'
$DSCModuleName = 'cFSRM'
#region HEADER
if ( (-not (Test-Path -Path '.\DSCResource.Tests\')) -or `
(-not (Test-Path -Path '.\DSCResource.Tests\TestHelper.psm1')) )
{
& git @('clone','https://github.com/PlagueHO/DscResource.Tests.git')
}
Import-Module .\DSCResource.Tests\T... |
PowerShellCorpus/PowerShellGallery/cFSRM/2.0.1.48/Tests/Unit/BMD_cFSRMClassification.Tests.ps1 | BMD_cFSRMClassification.Tests.ps1 | $DSCResourceName = 'BMD_cFSRMClassification'
$DSCModuleName = 'cFSRM'
#region HEADER
if ( (-not (Test-Path -Path '.\DSCResource.Tests\')) -or `
(-not (Test-Path -Path '.\DSCResource.Tests\TestHelper.psm1')) )
{
& git @('clone','https://github.com/PlagueHO/DscResource.Tests.git')
}
Import-Module .\DSCResourc... |
PowerShellCorpus/PowerShellGallery/cFSRM/2.0.1.48/Tests/Unit/BMD_cFSRMAutoQuota.Tests.ps1 | BMD_cFSRMAutoQuota.Tests.ps1 | $DSCResourceName = 'BMD_cFSRMAutoQuota'
$DSCModuleName = 'cFSRM'
#region HEADER
if ( (-not (Test-Path -Path '.\DSCResource.Tests\')) -or `
(-not (Test-Path -Path '.\DSCResource.Tests\TestHelper.psm1')) )
{
& git @('clone','https://github.com/PlagueHO/DscResource.Tests.git')
}
Import-Module .\DSCResource.Tes... |
PowerShellCorpus/PowerShellGallery/cFSRM/2.0.1.48/Tests/Unit/BMD_cFSRMQuotaTemplateAction.Tests.ps1 | BMD_cFSRMQuotaTemplateAction.Tests.ps1 | $DSCResourceName = 'BMD_cFSRMQuotaTemplateAction'
$DSCModuleName = 'cFSRM'
#region HEADER
if ( (-not (Test-Path -Path '.\DSCResource.Tests\')) -or `
(-not (Test-Path -Path '.\DSCResource.Tests\TestHelper.psm1')) )
{
& git @('clone','https://github.com/PlagueHO/DscResource.Tests.git')
}
Import-Module .\DSCRe... |
PowerShellCorpus/PowerShellGallery/cFSRM/2.0.1.48/Tests/Integration/BMD_cFSRMSettings.config.ps1 | BMD_cFSRMSettings.config.ps1 | $settings = @{
Id = 'Default'
SmtpServer = 'smtp.contoso.com'
AdminEmailAddress = 'admin@contoso.com'
FromEmailAddress = 'fsrm@contoso.com'
CommandNotificationLimit = 10
EmailNotificationLimit = 20
EventNotificationLimit = 30
}
Configur... |
PowerShellCorpus/PowerShellGallery/cFSRM/2.0.1.48/Tests/Integration/BMD_cFSRMClassificationPropertyValue.Integration.Tests.ps1 | BMD_cFSRMClassificationPropertyValue.Integration.Tests.ps1 | $DSCModuleName = 'cFSRM'
$DSCResourceName = 'BMD_cFSRMClassificationPropertyValue'
#region HEADER
if ( (-not (Test-Path -Path '.\DSCResource.Tests\')) -or `
(-not (Test-Path -Path '.\DSCResource.Tests\TestHelper.psm1')) )
{
& git @('clone','https://github.com/PlagueHO/DscResource.Tests.git')
}
Import-... |
PowerShellCorpus/PowerShellGallery/cFSRM/2.0.1.48/Tests/Integration/BMD_cFSRMFileScreen.Integration.Tests.ps1 | BMD_cFSRMFileScreen.Integration.Tests.ps1 | $DSCModuleName = 'cFSRM'
$DSCResourceName = 'BMD_cFSRMFileScreen'
#region HEADER
if ( (-not (Test-Path -Path '.\DSCResource.Tests\')) -or `
(-not (Test-Path -Path '.\DSCResource.Tests\TestHelper.psm1')) )
{
& git @('clone','https://github.com/PlagueHO/DscResource.Tests.git')
}
Import-Module .\DSCResou... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.