Search is not available for this dataset
filename
stringlengths
5
114
module_name
stringlengths
8
67
content
stringlengths
0
282M
Set-ConsoleTransparency.ps1
xUtility-2.1.3
<# .SYNOPSIS Sets console transparency .DESCRIPTION Adjust the console transparency to a given level .EXAMPLE PS> Set-ConsoleTransparency Sets console transparency to default level of 220 .EXAMPLE PS> Set-ConsoleTransparency -Off Disables console transparency .EXAMPLE PS> Set-ConsoleTransparency -Le...
Tests.ps1
xUtility-2.1.3
<# .SYNOPSIS Executes tests for xUtility module .DESCRIPTION Executes a series of tests to verify functionality for xUtility module #> function isWindows { [CmdletBinding()] param() if ($PSVersionTable.OS -eq $null -or $PSVersionTable.OS.Contains('Windows')) { Write-Output $true } else...
Remove-ExpiringCacheItem.ps1
xUtility-2.1.3
<# .SYNOPSIS Removes an item from the expiring cache .DESCRIPTION Removes an item from the expiring cache .EXAMPLE PS> Remove-ExpiringCacheItem -Key "CachedItem" Removes the item with the given key from the cache #> function Remove-ExpiringCacheItem { [CmdletBinding()] param( [Parameter(...
Set-PSVersionCheckpoint.ps1
xUtility-2.1.3
<# .SYNOPSIS Sets the time span between checks for newer PowerShell versions .DESCRIPTION Takes a time span for checking for newer PowerShell versions. Upon loading, a check for a newer PowerShell version will be made if the time span between the last time checked and the current time is greater than the set tim...
Write-InlineProgress.ps1
xUtility-2.1.3
<# .SYNOPSIS Writes inline progress .DESCRIPTION Writes inline progress messages. This is designed to display multiple progress messages in the same line .EXAMPLE $p = { [PSCustomObject] @{ 'Header' = 'MyProcess'; 'Message' = ("Evaluating: {0}" -f $_); 'Percentage' = $_ } } 1..100 |%{Start-Sleep -Millisecond...
Get-WindowSize.ps1
xUtility-2.1.3
<# .SYNOPSIS Gets the size and buffer size for the current console .DESCRIPTION Returns an object that reflects the size of the current console window and the current buffer size #> function Get-WindowSize { [CmdletBinding()] param() $currentBuffer = $Host.UI.RawUI.BufferSize $currentWind...
Invoke-ScriptBlockWithRetry.ps1
xUtility-2.1.3
<# .SYNOPSIS Executes a ScriptBlock with Retry .DESCRIPTION Wraps a ScriptBlock in a try/catch to allow for retrying based on specific exceptions as defined in the retry policy passed. To create a retry policy object see New-RetryPolicy cmdlet. .EXAMPLE PS> $policy = New-RetryPolicy -Policy Linear -...
New-ConsoleColorSet.ps1
xUtility-2.1.3
<# .SYNOPSIS Creates a color set object. Foreground, background with optional word matching. .DESCRIPTION Creates a custom object that defines specifications for using specific foreground and background colors as well as any word matching. All parameters are optional, specifying a word will match thi...
Invoke-PSCommand.ps1
xUtility-2.1.3
<# .SYNOPSIS Invokes a PowerShell command .DESCRIPTION Invokes a PowerShell command with the option to elevate to an admin process to execute. .EXAMPLE PS> Invoke-PSCommand -Command 'dir C:\' Attempts to execute the given command in the current session .EXAMPLE PS> Invoke-PSCommand -Command 'di...
Set-Prompt.ps1
xUtility-2.1.3
<# .SYNOPSIS Creates a custom PowerShell prompt .DESCRIPTION Creates a custom PowerShell prompt with the following features: - Separates the Current Path $PWD into its own line - Allows for quick select of the path - Path segments are apart by hightlighted separators - Red/Green prompt s...
BaseRetryPolicy.ps1
xUtility-2.1.3
# Defines a base Retry Policy. Derived policy objects are expected to implement (override) all methods below class BaseRetryPolicy { # Gets the policy name [string] getPolicyName() { throw [xUtilityException]::New( "BaseRetryPolicy.getPolicyName", [xUtilityErrorCategory]::InvalidIm...
util.ps1
xUtility-2.1.3
# Module Error Categories enum xUtilityErrorCategory { CacheKeyNotFound DependencyNotFound DuplicateMatchingCriteria InconsistentMatchingTypes InsufficientPermission InvalidCacheKey InvalidImplementation InvalidParameter InvalidRetryLogicEvaluation MaxRetryLimitReached } enum ErrorRec...
Get-ExpiringCacheItem.ps1
xUtility-2.1.3
<# .SYNOPSIS Retrives a value from the local expiring cache .DESCRIPTION Retrieves either the cached value, or call the invocation definition to get a new value, which after being cached is returned to the caller .EXAMPLE PS> Get-ExpiringCacheItem -Key 'SomeKey' Retrieves the cached item for the given key...
Get-AppDataPath.ps1
xUtility-2.1.3
<# .SYNOPSIS Gets the path of the local app data folder .DESCRIPTION Deals with inconsistencies between supported operating systems and gets the App data folder or equivalent #> function Get-AppDataPath { [CmdletBinding()] param() $ErrorActionPreference = 'Stop' Write-Output (GetAppDataPath -B...
New-ConstantRetryPolicy.ps1
xUtility-2.1.3
<# .SYNOPSIS Creates a Constant Retry Policy .DESCRIPTION Creates a new object of type ConstantRetryPolicy to be used with Invoke-ScriptBlockWithRetry. The algorithm takes a constant delay, processing this policy will take baseDelay milliseconds to complete. Constructing a linear retry policy re...
MSFT_xWebConfigProperty.strings.psd1
xWebAdministration-3.3.0
# culture="en-US" ConvertFrom-StringData -StringData @' VerboseTargetCheckingTarget = Checking for the existence of property "{0}" using filter "{1}" located at "{2}". VerboseTargetPropertyNotFound = Property "{0}" has not been found. VerboseTargetPropertyFound = Property "{0}" has been fou...
MSFT_xWebSite.strings.psd1
xWebAdministration-3.3.0
# culture="en-US" ConvertFrom-StringData -StringData @' ErrorWebsiteNotFound = The requested website "{0}" cannot be found on the target machine. ErrorWebsiteDiscoveryFailure = Failure to get the requested website "{0}" information from the target machine. ErrorWebsiteCreationFailure = Failure to successful...
xWebAdministration.Common.psm1
xWebAdministration-3.3.0
<# .SYNOPSIS Retrieves the localized string data based on the machine's culture. Falls back to en-US strings if the machine's culture is not supported. .PARAMETER ResourceName The name of the resource as it appears before '.strings.psd1' of the localized string file. For example...
MSFT_xWebSite.psm1
xWebAdministration-3.3.0
#requires -Version 4.0 -Modules CimCmdlets $script:resourceModulePath = Split-Path -Path (Split-Path -Path $PSScriptRoot -Parent) -Parent $script:modulesFolderPath = Join-Path -Path $script:resourceModulePath -ChildPath 'Modules' $script:localizationModulePath = Join-Path -Path $script:modulesFolderPath -ChildPath 'xW...
MSFT_xWebConfigPropertyCollection.psm1
xWebAdministration-3.3.0
$script:resourceModulePath = Split-Path -Path (Split-Path -Path $PSScriptRoot -Parent) -Parent $script:modulesFolderPath = Join-Path -Path $script:resourceModulePath -ChildPath 'Modules' $script:localizationModulePath = Join-Path -Path $script:modulesFolderPath -ChildPath 'xWebAdministration.Common' Import-Module -Nam...
MSFT_xIisFeatureDelegation.strings.psd1
xWebAdministration-3.3.0
# Localized resources for MSFT_xIisFeatureDelegation ConvertFrom-StringData @' GetOverrideMode = Getting override mode for '{0}'. UnableToGetConfig = Unable to get configuration data for '{0}'. VerboseGetTargetResource = Get-TargetResource has been run. VerboseSetTargetResource = Changed overrideMode f...
xWebAdministration.psm1
xWebAdministration-3.3.0
<# This file is intentionally left empty. It is must be left here for the module manifest to refe to. It is recreated during the build process. #>
MSFT_WebApplicationHandler.psm1
xWebAdministration-3.3.0
$script:resourceModulePath = Split-Path -Path (Split-Path -Path $PSScriptRoot -Parent) -Parent $script:modulesFolderPath = Join-Path -Path $script:resourceModulePath -ChildPath 'Modules' $script:localizationModulePath = Join-Path -Path $script:modulesFolderPath -ChildPath 'xWebAdministration.Common' Import-Module -Nam...
xIisModuleDesigner.ps1
xWebAdministration-3.3.0
$diff = join-Path ${env:ProgramFiles(x86)} "Beyond compare 2\bc2.exe" $friendlyName = "xIisModule" $resourceName = "MSFT_$friendlyName" $classVersion = "1.0.0" $scriptRoot = Split-Path $MyInvocation.MyCommand.Path $originalModuleRoot = join-Path $scriptroot "..\.." $originalModuleRootPath = Resolve-Path $originalModul...
MSFT_xIisModule.psm1
xWebAdministration-3.3.0
$script:resourceModulePath = Split-Path -Path (Split-Path -Path $PSScriptRoot -Parent) -Parent $script:modulesFolderPath = Join-Path -Path $script:resourceModulePath -ChildPath 'Modules' $script:localizationModulePath = Join-Path -Path $script:modulesFolderPath -ChildPath 'xWebAdministration.Common' Import-Module -Nam...
MSFT_xIisMimeTypeMapping.strings.psd1
xWebAdministration-3.3.0
# culture ="en-US" ConvertFrom-StringData -StringData @' AddingType = Adding MIMEType '{0}' for extension '{1}'. RemovingType = Removing MIMEType '{0}' for extension '{1}'. TypeExists = MIMEType '{0}' for extension '{1}' is present. TypeNotPresent ...
MSFT_xWebApplication.strings.psd1
xWebAdministration-3.3.0
# culture="en-US" ConvertFrom-StringData -StringData @' ErrorWebApplicationTestAutoStartProviderFailure = Desired AutoStartProvider is not valid due to a conflicting Global Property. Ensure that the serviceAutoStartProvider is a unique key. VerboseGetTargetResource =...
MSFT_xWebConfigPropertyCollection.strings.psd1
xWebAdministration-3.3.0
# culture="en-US" ConvertFrom-StringData -StringData @' VerboseTargetCheckingTarget = Checking for the existence of property "{0}" in collection item "{1}/{2}" with key "{3}={4}" using filter "{5}" located at "{6}". VerboseTargetItemNotFound = Collection item "{0}/{1}" with key "{2}={3}"...
MSFT_xWebConfigKeyValue.psm1
xWebAdministration-3.3.0
$script:resourceModulePath = Split-Path -Path (Split-Path -Path $PSScriptRoot -Parent) -Parent $script:modulesFolderPath = Join-Path -Path $script:resourceModulePath -ChildPath 'Modules' $script:localizationModulePath = Join-Path -Path $script:modulesFolderPath -ChildPath 'xWebAdministration.Common' Import-Module -Nam...
xWebAdministration.Common.strings.psd1
xWebAdministration-3.3.0
# Localized resources for helper module xWebAdministration.Common. ConvertFrom-StringData @' EvaluatePropertyState = Evaluating the state of the property '{0}'. (WACOMMON0001) PropertyInDesiredState = The parameter '{0}' is in desired state. (WACOMMON0002) PropertyNotInDesiredSta...
MSFT_xIisFeatureDelegation.psm1
xWebAdministration-3.3.0
$script:resourceModulePath = Split-Path -Path (Split-Path -Path $PSScriptRoot -Parent) -Parent $script:modulesFolderPath = Join-Path -Path $script:resourceModulePath -ChildPath 'Modules' $script:localizationModulePath = Join-Path -Path $script:modulesFolderPath -ChildPath 'xWebAdministration.Common' Import-Module -Nam...
xWebAdministration.Common.psd1
xWebAdministration-3.3.0
@{ # Script module or binary module file associated with this manifest. RootModule = 'xWebAdministration.Common.psm1' # Version number of this module. ModuleVersion = '1.0.0' # ID used to uniquely identify this module GUID = 'e32b82a0-ef75-4a64-9a98-e261758e3b71' # Author...
MSFT_xIisLogging.strings.psd1
xWebAdministration-3.3.0
ConvertFrom-StringData @' VerboseGetTargetResult = Get-TargetResource has been run. VerboseSetTargetUpdateLogPath = LogPath is not in the desired state and will be updated. VerboseSetTargetUpdateLogFlags = LogFlags do not match and will be updated. VerboseSet...
MSFT_xWebVirtualDirectory.strings.psd1
xWebAdministration-3.3.0
# culture ="en-US" ConvertFrom-StringData -StringData @' VerboseGetTargetResource = Get-TargetResource has been run. VerboseSetTargetPhysicalPath = Updating physical path for Web Virtual Directory '{0}'. VerboseSetTargetCreateVirtualDirectory = Creating new Web Virtual Directory...
MSFT_xWebSiteDefaults.psm1
xWebAdministration-3.3.0
$script:resourceModulePath = Split-Path -Path (Split-Path -Path $PSScriptRoot -Parent) -Parent $script:modulesFolderPath = Join-Path -Path $script:resourceModulePath -ChildPath 'Modules' $script:localizationModulePath = Join-Path -Path $script:modulesFolderPath -ChildPath 'xWebAdministration.Common' Import-Module -Nam...
MSFT_WebApplicationHandler.strings.psd1
xWebAdministration-3.3.0
ConvertFrom-StringData @' AddingHandler = Adding handler {0} UpdatingHandler = Updating handler {0} RemovingHandler = Removing handler {0} VerboseGetTargetPresent = Handler is Present {0} VerboseGetTargetAbsent = Handler is Absent {0} PropertyNotInDesire...
MSFT_xSslSettings.psm1
xWebAdministration-3.3.0
$script:resourceModulePath = Split-Path -Path (Split-Path -Path $PSScriptRoot -Parent) -Parent $script:modulesFolderPath = Join-Path -Path $script:resourceModulePath -ChildPath 'Modules' $script:localizationModulePath = Join-Path -Path $script:modulesFolderPath -ChildPath 'xWebAdministration.Common' Import-Module -Nam...
MSFT_xWebAppPool.strings.psd1
xWebAdministration-3.3.0
# culture="en-US" ConvertFrom-StringData -StringData @' ErrorAppCmdNonZeroExitCode = AppCmd.exe has exited with error code "{0}". VerboseAppPoolFound = Application pool "{0}" was found. VerboseAppPoolNotFound = Application pool "{0}" was not found. Verbose...
MSFT_xIisMimeTypeMapping.psm1
xWebAdministration-3.3.0
$script:resourceModulePath = Split-Path -Path (Split-Path -Path $PSScriptRoot -Parent) -Parent $script:modulesFolderPath = Join-Path -Path $script:resourceModulePath -ChildPath 'Modules' $script:localizationModulePath = Join-Path -Path $script:modulesFolderPath -ChildPath 'xWebAdministration.Common' Import-Module -Nam...
MSFT_xSslSettings.strings.psd1
xWebAdministration-3.3.0
ConvertFrom-StringData @' UnableToFindConfig = Unable to find configuration in AppHost Config. SettingsslConfig = Setting {0} ssl binding to {1}. sslBindingsCorrect = ssl Bindings for {0} are correct. sslBindingsAbsent = ssl Bindings for {0} are absent. VerboseGetTargetResource = Get-TargetResource ...
MSFT_xWebAppPool.psm1
xWebAdministration-3.3.0
#requires -Version 4.0 -Modules CimCmdlets $script:resourceModulePath = Split-Path -Path (Split-Path -Path $PSScriptRoot -Parent) -Parent $script:modulesFolderPath = Join-Path -Path $script:resourceModulePath -ChildPath 'Modules' $script:localizationModulePath = Join-Path -Path $script:modulesFolderPath -ChildPath 'xW...
MSFT_xIIsHandler.strings.psd1
xWebAdministration-3.3.0
ConvertFrom-StringData @' AddingHandler = Adding handler '{0}'. RemovingHandler = Removing handler '{0}'. HandlerExists = Handler with name '{0}' already exist. HandlerNotPresent = Handler with name '{0}' is not present as requested. HandlerNotSupported ...
MSFT_xIisLogging.psm1
xWebAdministration-3.3.0
$script:resourceModulePath = Split-Path -Path (Split-Path -Path $PSScriptRoot -Parent) -Parent $script:modulesFolderPath = Join-Path -Path $script:resourceModulePath -ChildPath 'Modules' $script:localizationModulePath = Join-Path -Path $script:modulesFolderPath -ChildPath 'xWebAdministration.Common' Import-Module -Nam...
xWebAdministration.psd1
xWebAdministration-3.3.0
@{ # Version number of this module. moduleVersion = '3.3.0' # ID used to uniquely identify this module GUID = 'b3239f27-d7d3-4ae6-a5d2-d9a1c97d6ae4' # Author of this module Author = 'DSC Community' # Company or vendor of this module CompanyName = 'DSC Community' # Copyright state...
MSFT_xIisModule.strings.psd1
xWebAdministration-3.3.0
ConvertFrom-StringData @' VerboseGetTargetResource = Get-TargetResource has been run. VerboseSetTargetRemoveHandler = Removing handler. VerboseSetTargetAddHandler = Adding handler. VerboseSetTargetAddfastCgi ...
MSFT_xWebConfigKeyValue.strings.psd1
xWebAdministration-3.3.0
# culture="en-US" ConvertFrom-StringData -StringData @' VerboseGetTargetCheckingTarget = Checking for the existance of key "{0}" in ConfigSection "{1}" located at "{2}" VerboseGetTargetAttributeCheck = Checking if key "{0}" is an Attribute VerboseGetTargetKeyNotFound = Key "{0}" has not been found. ...
MSFT_xWebApplication.psm1
xWebAdministration-3.3.0
$script:resourceModulePath = Split-Path -Path (Split-Path -Path $PSScriptRoot -Parent) -Parent $script:modulesFolderPath = Join-Path -Path $script:resourceModulePath -ChildPath 'Modules' $script:localizationModulePath = Join-Path -Path $script:modulesFolderPath -ChildPath 'xWebAdministration.Common' Import-Module -Nam...
MSFT_xWebAppPoolDefaults.strings.psd1
xWebAdministration-3.3.0
# culture="en-US" ConvertFrom-StringData -StringData @' SettingValue = Changing default value '{0}' to '{1}' ValueOk = Default value '{0}' is already '{1}' VerboseGetTargetResource = Get-TargetResource has been run. '@
MSFT_xWebConfigProperty.psm1
xWebAdministration-3.3.0
$script:resourceModulePath = Split-Path -Path (Split-Path -Path $PSScriptRoot -Parent) -Parent $script:modulesFolderPath = Join-Path -Path $script:resourceModulePath -ChildPath 'Modules' $script:localizationModulePath = Join-Path -Path $script:modulesFolderPath -ChildPath 'xWebAdministration.Common' Import-Module -Nam...
MSFT_xWebAppPoolDefaults.psm1
xWebAdministration-3.3.0
$script:resourceModulePath = Split-Path -Path (Split-Path -Path $PSScriptRoot -Parent) -Parent $script:modulesFolderPath = Join-Path -Path $script:resourceModulePath -ChildPath 'Modules' $script:localizationModulePath = Join-Path -Path $script:modulesFolderPath -ChildPath 'xWebAdministration.Common' Import-Module -Nam...
MSFT_xIisHandler.psm1
xWebAdministration-3.3.0
$script:resourceModulePath = Split-Path -Path (Split-Path -Path $PSScriptRoot -Parent) -Parent $script:modulesFolderPath = Join-Path -Path $script:resourceModulePath -ChildPath 'Modules' $script:localizationModulePath = Join-Path -Path $script:modulesFolderPath -ChildPath 'xWebAdministration.Common' Import-Module -Nam...
MSFT_xWebSiteDefaults.strings.psd1
xWebAdministration-3.3.0
# culture="en-US" ConvertFrom-StringData -StringData @' SettingValue = Changing default Value '{0}' to '{1}' ValueOk = Default Value '{0}' is already '{1}' VerboseGetTargetResource = Get-TargetResource has been run. '@
MSFT_xWebVirtualDirectory.psm1
xWebAdministration-3.3.0
$script:resourceModulePath = Split-Path -Path (Split-Path -Path $PSScriptRoot -Parent) -Parent $script:modulesFolderPath = Join-Path -Path $script:resourceModulePath -ChildPath 'Modules' $script:localizationModulePath = Join-Path -Path $script:modulesFolderPath -ChildPath 'xWebAdministration.Common' Import-Module -Nam...
xWebDeploy.psd1
xWebDeploy-1.2.0
# # Module manifest for module composite resource 'xWebDeploy' # # Generated on: 8/23/2014 # @{ # Script module or binary module file associated with this manifest. RootModule = 'xWebDeploy.Schema.psm1' # Version number of this module. ModuleVersion = '1.0' # ID used to uniquely identify this module ...
xWebDeploy.Schema.psm1
xWebDeploy-1.2.0
# Composite configuration to install the Web Deploy 3.5 IIS extension (MSDeploy) from default URL : http://go.microsoft.com/fwlink/?LinkID=309497. Supports MSWebDeploy sync, dump verbs with iisApp , contentPath parameters. # Examples of sync verb used with ContentPath and iisApp paramters: # -verb:sync -so...
xWebDeploySample.ps1
xWebDeploy-1.2.0
# This is a sample configuration to deploy a web server in IIS using xWebDeploy composite resource.Note that xWebDeploy version 3.5 is installing WebDeploy extension using the following URL: http://go.microsoft.com/fwlink/?LinkID=309497. # If you need to install web deploy from a different location, you need to pass...
xWebPackageDeploySample.ps1
xWebDeploy-1.2.0
################### # Configuration script to deploy a website using webdeploy IIS extension. This sample assumes that Web Deploy extension is installed in IIS, and the website content is packaged in a zip file using web deploy extension. ################### configuration DeployWebSiteUsingWebDeploy { param ...
xWebPackageDeploy.psm1
xWebDeploy-1.2.0
######################################################################################################################################### # xWebPackageDeploy module for deploying IIS WebSite using web deploy IIS extension. This resource assumes that WebDeploy tool # is installed in IIS. #############################...
xWinEventLog.psd1
xWinEventLog-1.3.0
# # Module manifest for module 'xWinEventLog' # # Generated by: Microsoft Corporation # # Generated on: 5/24/2014 # @{ # Script module or binary module file associated with this manifest. # RootModule = '' # Version number of this module. moduleVersion = '1.3.0.0' # ID used to uniquely identify this...
MSFT_xWinEventLog.psm1
xWinEventLog-1.3.0
function New-TerminatingError { param ( [Parameter(Mandatory = $true)] [String]$errorId, [Parameter(Mandatory = $true)] [String]$errorMessage, [Parameter(Mandatory = $true)] [System.Management.Automation.ErrorCategory]$errorCategory ) $exc...
xWinEventLog.psm1
xWinEventLog-1.3.0
function Show-xWinEventLogExamples { $path = Join-Path $PSScriptRoot 'Examples\*' if ($Host.Name -eq 'Windows PowerShell ISE Host') { psedit $path } else { $files = @() foreach ($f in dir $path) { $files += "$($f.FullName)" } ...
WinEvent.Tests.ps1
xWinEventLog-1.3.0
<# .NOTES #> Import-Module $PSScriptRoot\DSCResources\MSFT_xWinEventLog\MSFT_xWinEventLog.psm1 -Prefix WinEventLog -Force #Getting initial Value for Capi2 Log so we can test the ability to set Isenabled to False #and then set it back to its original value when we're done $Capi2Log = Get-WinEv...
Demo1.ps1
xWinEventLog-1.3.0
cls $before = Get-WinEvent -ListLog "Microsoft-Windows-MSPaint/Admin" configuration Demo1 { Import-DscResource -module xWinEventLog xWinEventLog Demo1 { LogName = "Microsoft-Windows-MSPaint/Admin" IsEnabled = $true LogMode = "AutoBackup" ...
xWindowsEventForwarding.psd1
xWindowsEventForwarding-1.0.0
# # Module manifest for module 'xWindowsEventForwarding' # # Generated by: PowerShell Team # # Generated on: 3/26/2015 # @{ # Script module or binary module file associated with this manifest. # RootModule = '' # Version number of this module. ModuleVersion = '1.0.0.0' # ID used to uniquely identify...
MSFT_xWEFCollector.psm1
xWindowsEventForwarding-1.0.0
function Get-TargetResource { [CmdletBinding()] [OutputType([System.Collections.Hashtable])] param ( [parameter(Mandatory = $true)] [System.String] $Name ) $ServiceStartMode = (Get-WmiObject -Query "Select * From Win32_Service Where Name='Wecsvc'").StartMode ...
xDSCResourceDesigner_NewModuleScript.ps1
xWindowsEventForwarding-1.0.0
$Exists = test-path 'C:\Program Files\WindowsPowerShell\Modules\xWindowsEventForwarding\' if (!$Exists) { mkdir 'C:\Program Files\WindowsPowerShell\Modules\xWindowsEventForwarding\' New-ModuleManifest -Path 'C:\Program Files\WindowsPowerShell\Modules\xWindowsEventForwarding\xWindowsEventForwarding.psd1' -Gui...
ExampleConfiguration.ps1
xWindowsEventForwarding-1.0.0
configuration SetupCollector { Import-DscResource -ModuleName xWindowsEventForwarding xWEFCollector Enabled { Ensure = "Present" Name = "Enabled" } xWEFSubscription TestSub { SubscriptionID = "TestSub" Ensure = "Present" SubscriptionType = 'C...
MSFT_xWEFSubscription.psm1
xWindowsEventForwarding-1.0.0
function Get-TargetResource { [CmdletBinding()] [OutputType([System.Collections.Hashtable])] param ( [parameter(Mandatory = $true)] [System.String] $SubscriptionID, [ValidateSet("Present","Absent")] [System.String] $Ensure = 'Present', ...
xSystemRestore.psm1
xWindowsRestore-1.0.0
#--------------------------------------------------------------------------------- #The sample scripts are not supported under any Microsoft standard support #program or service. The sample scripts are provided AS IS without warranty #of any kind. Microsoft further disclaims all implied warranties including, #wit...
xWindowsRestore.psd1
xWindowsRestore-1.0.0
@{ # Version number of this module. ModuleVersion = '1.0.0' # ID used to uniquely identify this module GUID = '32fe8783-1978-4d79-bf90-fddca2bbbf7b' # Author of this module Author = 'OneScript Team' # Company or vendor of this module CompanyName = 'Microsoft Corporation' # Copyright statement for this ...
CreateSystemRestorePoint.ps1
xWindowsRestore-1.0.0
#--------------------------------------------------------------------------------- #The sample scripts are not supported under any Microsoft standard support #program or service. The sample scripts are provided AS IS without warranty #of any kind. Microsoft further disclaims all implied warranties including, #wit...
xSystemRestorePoint.psm1
xWindowsRestore-1.0.0
#--------------------------------------------------------------------------------- #The sample scripts are not supported under any Microsoft standard support #program or service. The sample scripts are provided AS IS without warranty #of any kind. Microsoft further disclaims all implied warranties including, #wit...
ConfigureSystemRestore.ps1
xWindowsRestore-1.0.0
#--------------------------------------------------------------------------------- #The sample scripts are not supported under any Microsoft standard support #program or service. The sample scripts are provided AS IS without warranty #of any kind. Microsoft further disclaims all implied warranties including, #wit...
MSFT_xWindowsUpdateAgent.tests.ps1
xWindowsUpdate-2.8.0
<# .Synopsis Unit tests for xWindowsUpdateAgent .DESCRIPTION Unit tests for xWindowsUpdateAgent .NOTES Code in HEADER and FOOTER regions are standard and may be moved into DSCResource.Tools in Future and therefore should not be altered if possible. #> $Global:DSCModuleName = 'xWindowsUp...
MSFT_xMicrosoftUpdate.psm1
xWindowsUpdate-2.8.0
function Write-DeprecatedMessage { Write-Warning -Message 'xMicrosoftUpdate is deprecated. Please use xWindows Update Agent' } function Get-TargetResource { [CmdletBinding()] [OutputType([System.Collections.Hashtable])] param ( [parameter(Mandatory = $true)] [ValidateSe...
xWindowsUpdate.psd1
xWindowsUpdate-2.8.0
@{ # Version number of this module. moduleVersion = '2.8.0.0' # ID used to uniquely identify this module GUID = 'a9cba250-ea73-4d82-b31b-7e58cc50ffd1' # Author of this module Author = 'Microsoft Corporation' # Company or vendor of this module CompanyName = 'Microsoft Corporation' # Copyright statement ...
1-Sample_xWindowsUpdateFromPath.ps1
xWindowsUpdate-2.8.0
<# .EXAMPLE This sample looks at installing a particular windows update. However, the path and ID properties can be changed as per the hotfix that you want to install #> Configuration Example { Import-DscResource -ModuleName xWindowsUpdate xHotfix m1 { Path = "c:\Windows...
1-SetWuaScheduledFromWu.ps1
xWindowsUpdate-2.8.0
<# .EXAMPLE Sets the Windows Update Agent to use the Windows Update service and sets the notifications to scheduled install. Does not install updates during the configuration. #> Configuration Example { Import-DscResource -ModuleName xWindowsUpdate xWindowsUpdateAgent MuSecurit...
MSFT_xWindowsUpdate.tests.ps1
xWindowsUpdate-2.8.0
<# .SYNOPSIS Unit tests for xWindowsUpdate .DESCRIPTION Unit tests for xWindowsUpdate .NOTES Code in HEADER and FOOTER regions are standard and may be moved into DSCResource.Tools in Future and therefore should not be altered if possible. #> $Script:DSCModuleN...
MSFT_xWindowsUpdate.psm1
xWindowsUpdate-2.8.0
Data LocalizedData { # culture="en-US"e ConvertFrom-StringData @' GettingHotfixMessage=Getting the hotfix patch with ID {0}. ValidatingPathUri=Validating path/URI. ErrorPathUriSpecifiedTogether=Hotfix path and Uri parameters cannot be specified together. ErrorInvalidFilePa...
1-Sample_xMicrosoftUpdate.ps1
xWindowsUpdate-2.8.0
<# .EXAMPLE Enables Mircosoft Update on Server1, Server2 and Server3 #> Configuration Example { Import-DscResource -Module xWindowsUpdate Node localhost { xMicrosoftUpdate "EnableMSUpdate" { Ensure = "Present" } } }
2-Sample_xWindowsUpdateFromURI.ps1
xWindowsUpdate-2.8.0
<# .EXAMPLE This sample looks at installing a particular windows update. However, the URI and ID properties can be changed as per the hotfix that you want to install #> Configuration Example { Import-DscResource -module xWindowsUpdate xHotfix m1 { Path = 'http://hotfix...
MSFT_xWindowsUpdateAgent.psm1
xWindowsUpdate-2.8.0
Set-StrictMode -Version latest $script:WuaSearchString = 'IsAssigned=1 and IsHidden=0 and IsInstalled=0' function Get-WuaServiceManager { return (New-Object -ComObject Microsoft.Update.ServiceManager) } function Add-WuaService { param( [Parameter(Mandatory=$true)] [string] $ServiceId, ...
xXMLConfigFile.Integration.Tests.ps1
xXMLConfigFile-2.0.0.3
Import-Module $PSScriptRoot\..\DSCResources\xXMLConfigFile\xXMLConfigFile.psm1 -Force #this function was taken from xExchange module function Test-AllTargetResourceFunctions { [CmdletBinding()] param([Hashtable]$Params, [string]$ContextLabel, [Hashtable]$ExpectedGetResults, [bool]$ExpectedTestResult = $tru...
AddRemovModifyeSingleAttributeValue.ps1
xXMLConfigFile-2.0.0.3
configuration AddRemoveModifySingleAttributeValue { param ( [string[]]$NodeName = 'localhost' ) Import-DscResource -Module xXMLConfigFile Node $NodeName { #ensure attribute exists and has specified value XMLConfigFile MaxRetries { Confi...
AddRemoveModifyAttributeNode.ps1
xXMLConfigFile-2.0.0.3
configuration AddRemoveModifyAttributeNode { param ( [string[]]$NodeName = 'localhost' ) Import-DscResource -Module xXMLConfigFile Node $NodeName { #ensure node with attribute SmtpSendLogFlushInterval exists and has specified value XMLConfigFile SMTPSendFlus...
AddRemoveModifyElement.ps1
xXMLConfigFile-2.0.0.3
configuration AddElement { param ( [string[]]$NodeName = 'localhost' ) Import-DscResource -Name xXMLConfigFile Node $NodeName { XMLConfigFile Element { ConfigPath = 'C:\temp\Test.config' XPath = '/*' Name = '...
New-XMLConfigFileResource.ps1
xXMLConfigFile-2.0.0.3
$ConfigPath = New-xDscResourceProperty -Name ConfigPath -Type String -Attribute Key -Description 'Path to config file' $XPath = New-xDscResourceProperty -Name XPath -Type String -Attribute Key -Description 'XPath to use' $Name = New-xDscResourceProperty -Name Name -Type String -Attribute Key -Description 'Name of the...
xXMLConfigFileCommonFunctions.psm1
xXMLConfigFile-2.0.0.3
function Get-XMLItem { [CmdletBinding()] param ( [string]$ConfigPath, [string]$XPath, [string]$Name, [string]$Value, [Boolean]$isAttribute, [Boolean]$isElementTextValue, [string]$Attribute1 = 'key', [string]$Attribute2 = 'value', ...
xXMLConfigFile.psm1
xXMLConfigFile-2.0.0.3
[Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSDSCDscTestsPresent", "")] [Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSDSCDscExamplesPresent", "")] [CmdletBinding()] param() function Get-TargetResource { [Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSDSCUseVerboseMessageInDSCResource",...
xXMLConfigFile.psd1
xXMLConfigFile-2.0.0.3
# # Module manifest for module 'xXMLConfigFile' # # Generated by: Ingo Gegenwarth # # Generated on: 19.01.2017 # @{ # Script module or binary module file associated with this manifest. # RootModule = '' # Version number of this module. ModuleVersion = '2.0.0.3' # ID used to uniquely identify this mo...
Publish-ToPSGallery.ps1
xanderu.helpers-1.0.0
Function Publish-ToPSGallery { <# .SYNOPSIS .DESCRIPTION This is a simple helper script to publish scripts to PSGallery .EXAMPLE .NOTES #> Param([Parameter(Mandatory=$true)] [String] $PSGalleryKey # Name of secure Repo for PSRepository ...
New-ModuleTemplate.ps1
xanderu.helpers-1.0.0
Function New-ModuleTemplate { PARAM([Parameter(Mandatory=$true)] [string]$ProcessName , [string]$description , [Parameter(Mandatory=$true,position=0)] [AllowNull()] [AllowEmptyCollection()] [Tags[]] $tags , [string]$orgName , [Parameter(Mandatory=$true)] [str...
New-ScriptTemplate.ps1
xanderu.helpers-1.0.0
Function New-ScriptTemplate { PARAM([Parameter(Mandatory=$true)] [string]$processName , [string]$description , [Parameter(Mandatory=$true)] [AllowNull()] [AllowEmptyCollection()] [Tags[]] $tags , [string]$orgName , [Parameter(Manda...
xanderu.helpers.psm1
xanderu.helpers-1.0.0
#Requires -Version 3.0 [CmdletBinding()] Param() #Set-StrictMode -Version Latest #################################################################################### ## Dynamic module loader - can be used without changes for any PowerShell module ## All function files must be in 'public' or 'private' child di...
xanderu.helpers.psd1
xanderu.helpers-1.0.0
# # Module manifest for module 'xanderu.helpers' # # Generated by: alex.rudolph.1987@gmail.com # # Generated on: 1/24/2021 # @{ # Script module or binary module file associated with this manifest. RootModule = 'xanderu.helpers.psm1' # Version number of this module. ModuleVersion = '1.0.0' # Supporte...
New-PowershellTemplate.ps1
xanderu.helpers-1.0.0
Function New-PowershellTemplate { <# .SYNOPSIS .DESCRIPTION This script is designed to create quick frames for powershell scripts. Feel free to leave me feedback @ http://rudolphhome.privatedns.org/. .EXAMPLE .NOTES #> param ( [Parameter(Mandatory)] [ValidateSe...
Invoke-AzSqlCmd.ps1
xanderu.sql-0.0.3
Function Invoke-AzSqlCmd { Param($serverInstance ,$dbName ,$Query ,$context ) # Build off this article https://thomasthornton.cloud/2020/10/06/query-azure-sql-database-using-service-principal-with-powershell/ $ConnectionString="Data Source=$serverInstance; Initial Ca...
xanderu.sql.psm1
xanderu.sql-0.0.3
#Requires -Version 3.0 [CmdletBinding()] Param() #################################################################################### ## Dynamic module loader - can be used without changes for any PowerShell module ## All function files must be in 'public' or 'private' child directories. #######################...
xanderu.sql.psd1
xanderu.sql-0.0.3
# # Module manifest for module 'xanderu.sql' # # Generated by: ALEXR # # Generated on: 02/17/2021 # @{ # Script module or binary module file associated with this manifest. RootModule = 'xanderu.sql.psm1' # Version number of this module. ModuleVersion = '0.0.3' # Supported PSEditions # CompatiblePSE...