full_path stringlengths 31 232 | filename stringlengths 4 167 | content stringlengths 0 48.3M |
|---|---|---|
PowerShellCorpus/PowerShellGallery/ISHServer.12/1.5/Get-ISHCOMPlus.ps1 | Get-ISHCOMPlus.ps1 | <#
# Copyright (c) 2014 All Rights Reserved by the SDL Group.
#
# 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.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
PowerShellCorpus/PowerShellGallery/ISHServer.12/1.5/Set-ISHUserAdministrator.ps1 | Set-ISHUserAdministrator.ps1 | <#
# Copyright (c) 2014 All Rights Reserved by the SDL Group.
#
# 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.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
PowerShellCorpus/PowerShellGallery/ISHServer.12/1.5/Get-ISHNormalizedCredential.ps1 | Get-ISHNormalizedCredential.ps1 | <#
# Copyright (c) 2014 All Rights Reserved by the SDL Group.
#
# 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.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
PowerShellCorpus/PowerShellGallery/ISHServer.12/1.5/Get-ISHServerFolderPath.ps1 | Get-ISHServerFolderPath.ps1 | <#
# Copyright (c) 2014 All Rights Reserved by the SDL Group.
#
# 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.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
PowerShellCorpus/PowerShellGallery/ISHServer.12/1.5/Set-ISHFirewallSQLServer.ps1 | Set-ISHFirewallSQLServer.ps1 | <#
# Copyright (c) 2014 All Rights Reserved by the SDL Group.
#
# 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.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
PowerShellCorpus/PowerShellGallery/ISHServer.12/1.5/Install-ISHToolOracleODAC.ps1 | Install-ISHToolOracleODAC.ps1 | <#
# Copyright (c) 2014 All Rights Reserved by the SDL Group.
#
# 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.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
PowerShellCorpus/PowerShellGallery/ISHServer.12/1.5/Set-ISHUserLocal.ps1 | Set-ISHUserLocal.ps1 | <#
# Copyright (c) 2014 All Rights Reserved by the SDL Group.
#
# 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.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
PowerShellCorpus/PowerShellGallery/ISHServer.12/1.5/Initialize-ISHMSDTCSettings.ps1 | Initialize-ISHMSDTCSettings.ps1 | <#
# Copyright (c) 2014 All Rights Reserved by the SDL Group.
#
# 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.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
PowerShellCorpus/PowerShellGallery/ISHServer.12/1.5/Initialize-ISHIIS.ps1 | Initialize-ISHIIS.ps1 | <#
# Copyright (c) 2014 All Rights Reserved by the SDL Group.
#
# 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.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
PowerShellCorpus/PowerShellGallery/ISHServer.12/1.5/Install-ISHToolVisualCPP.ISH12.ps1 | Install-ISHToolVisualCPP.ISH12.ps1 | <#
# Copyright (c) 2014 All Rights Reserved by the SDL Group.
#
# 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.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
PowerShellCorpus/PowerShellGallery/ISHServer.12/1.5/Get-ISHNETInfo.ps1 | Get-ISHNETInfo.ps1 | <#
# Copyright (c) 2014 All Rights Reserved by the SDL Group.
#
# 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.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
PowerShellCorpus/PowerShellGallery/ISHServer.12/1.5/Install-ISHToolJAVA.ps1 | Install-ISHToolJAVA.ps1 | <#
# Copyright (c) 2014 All Rights Reserved by the SDL Group.
#
# 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.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
PowerShellCorpus/PowerShellGallery/ISHServer.12/1.5/Get-ISHOSInfo.ps1 | Get-ISHOSInfo.ps1 | <#
# Copyright (c) 2014 All Rights Reserved by the SDL Group.
#
# 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.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
PowerShellCorpus/PowerShellGallery/ISHServer.12/1.5/metadata.ps1 | metadata.ps1 | <#
# Copyright (c) 2014 All Rights Reserved by the SDL Group.
#
# 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.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
PowerShellCorpus/PowerShellGallery/ISHServer.12/1.5/Initialize-ISHMSDTCTransactionTimeout.ps1 | Initialize-ISHMSDTCTransactionTimeout.ps1 | <#
# Copyright (c) 2014 All Rights Reserved by the SDL Group.
#
# 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.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
PowerShellCorpus/PowerShellGallery/ISHServer.12/1.5/Initialize-ISHRegional.ps1 | Initialize-ISHRegional.ps1 | <#
# Copyright (c) 2014 All Rights Reserved by the SDL Group.
#
# 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.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
PowerShellCorpus/PowerShellGallery/ISHServer.12/1.5/Grant-ISHUserLogOnAsService.ps1 | Grant-ISHUserLogOnAsService.ps1 | <#
# Copyright (c) 2014 All Rights Reserved by the SDL Group.
#
# 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.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
PowerShellCorpus/PowerShellGallery/ISHServer.12/1.5/Get-ISHCD.ps1 | Get-ISHCD.ps1 | <#
# Copyright (c) 2014 All Rights Reserved by the SDL Group.
#
# 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.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
PowerShellCorpus/PowerShellGallery/ISHServer.12/1.5/Set-ISHFirewallSMTP.ps1 | Set-ISHFirewallSMTP.ps1 | <#
# Copyright (c) 2014 All Rights Reserved by the SDL Group.
#
# 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.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
PowerShellCorpus/PowerShellGallery/ISHServer.12/1.5/Get-ISHPrerequisites.ISH13.ps1 | Get-ISHPrerequisites.ISH13.ps1 | <#
# Copyright (c) 2014 All Rights Reserved by the SDL Group.
#
# 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.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
PowerShellCorpus/PowerShellGallery/ISHServer.12/1.5/Install-ISHWindowsFeatureIISWinAuth.ps1 | Install-ISHWindowsFeatureIISWinAuth.ps1 | <#
# Copyright (c) 2014 All Rights Reserved by the SDL Group.
#
# 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.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
PowerShellCorpus/PowerShellGallery/ISHServer.12/1.5/Set-ISHToolAntennaHouseLicense.ps1 | Set-ISHToolAntennaHouseLicense.ps1 | <#
# Copyright (c) 2014 All Rights Reserved by the SDL Group.
#
# 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.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
PowerShellCorpus/PowerShellGallery/ISHServer.12/1.5/Expand-ISHCD.ps1 | Expand-ISHCD.ps1 | <#
# Copyright (c) 2014 All Rights Reserved by the SDL Group.
#
# 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.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
PowerShellCorpus/PowerShellGallery/ISHServer.12/1.5/Install-ISHToolJavaHelp.ps1 | Install-ISHToolJavaHelp.ps1 | <#
# Copyright (c) 2014 All Rights Reserved by the SDL Group.
#
# 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.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
PowerShellCorpus/PowerShellGallery/ISHServer.12/1.5/Install-ISHVisualBasicRuntime.ps1 | Install-ISHVisualBasicRuntime.ps1 | <#
# Copyright (c) 2014 All Rights Reserved by the SDL Group.
#
# 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.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
PowerShellCorpus/PowerShellGallery/ISHServer.12/1.5/Set-ISHFirewallNETBIOS.ps1 | Set-ISHFirewallNETBIOS.ps1 | <#
# Copyright (c) 2014 All Rights Reserved by the SDL Group.
#
# 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.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
PowerShellCorpus/PowerShellGallery/ISHServer.12/1.5/Get-ISHPrerequisites.ISH12.ps1 | Get-ISHPrerequisites.ISH12.ps1 | <#
# Copyright (c) 2014 All Rights Reserved by the SDL Group.
#
# 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.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
PowerShellCorpus/PowerShellGallery/ISHServer.12/1.5/Initialize-ISHRegionalDefault.ps1 | Initialize-ISHRegionalDefault.ps1 | <#
# Copyright (c) 2014 All Rights Reserved by the SDL Group.
#
# 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.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
PowerShellCorpus/PowerShellGallery/ISHServer.12/1.5/Initialize-ISHUserLocalProfile.ps1 | Initialize-ISHUserLocalProfile.ps1 | <#
# Copyright (c) 2014 All Rights Reserved by the SDL Group.
#
# 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.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
PowerShellCorpus/PowerShellGallery/ISHServer.12/1.5/Initialize-ISHLocale.ps1 | Initialize-ISHLocale.ps1 | <#
# Copyright (c) 2014 All Rights Reserved by the SDL Group.
#
# 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.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
PowerShellCorpus/PowerShellGallery/ISHServer.12/1.5/Install-ISHToolVisualCPP.ISH13.ps1 | Install-ISHToolVisualCPP.ISH13.ps1 | <#
# Copyright (c) 2014 All Rights Reserved by the SDL Group.
#
# 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.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
PowerShellCorpus/PowerShellGallery/ISHServer.12/1.5/Set-ISHFirewallMSDTC.ps1 | Set-ISHFirewallMSDTC.ps1 | <#
# Copyright (c) 2014 All Rights Reserved by the SDL Group.
#
# 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.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
PowerShellCorpus/PowerShellGallery/ISHServer.12/1.5/Private/Get-ISHS3Object.ps1 | Get-ISHS3Object.ps1 | <#
# Copyright (c) 2014 All Rights Reserved by the SDL Group.
#
# 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.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
PowerShellCorpus/PowerShellGallery/ISHServer.12/1.5/Private/Test-RunningAsElevated.ps1 | Test-RunningAsElevated.ps1 | <#
# Copyright (c) 2014 All Rights Reserved by the SDL Group.
#
# 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.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
PowerShellCorpus/PowerShellGallery/ISHServer.12/1.5/Private/Get-ISHFTPItem.ps1 | Get-ISHFTPItem.ps1 | <#
# Copyright (c) 2014 All Rights Reserved by the SDL Group.
#
# 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.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
PowerShellCorpus/PowerShellGallery/ISHServer.12/1.5/Private/Get-ISHAzureFileObject.ps1 | Get-ISHAzureFileObject.ps1 | <#
# Copyright (c) 2014 All Rights Reserved by the SDL Group.
#
# 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.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
PowerShellCorpus/PowerShellGallery/ISHServer.12/1.5/Private/Get-ISHAzureBlobObject.ps1 | Get-ISHAzureBlobObject.ps1 | <#
# Copyright (c) 2014 All Rights Reserved by the SDL Group.
#
# 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.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
PowerShellCorpus/PowerShellGallery/ServiceBusForWindowsServerDsc/0.10.0.0/Examples/Single Server/ServiceBusForWindowsServer.ps1 | ServiceBusForWindowsServer.ps1 | $ConfigurationData = @{
AllNodes = @(
@{
NodeName = '*'
PSDscAllowPlainTextPassword = $true #NOTE: Encrypt with certs when you do this for real!!!
PSDscAllowDomainUser = $true
}
@{
NodeName = 'localhost'
... |
PowerShellCorpus/PowerShellGallery/ServiceBusForWindowsServerDsc/0.10.0.0/Tests/Unit/SBBase.Tests.ps1 | SBBase.Tests.ps1 | using module ..\..\DSCResources\SBFarm
#region HEADER
# Unit Test Template Version: 1.2.0
$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 -Pa... |
PowerShellCorpus/PowerShellGallery/ServiceBusForWindowsServerDsc/0.10.0.0/Tests/Unit/SBRuntimeSetting.Tests.ps1 | SBRuntimeSetting.Tests.ps1 | #region HEADER
# Unit Test Template Version: 1.2.0
$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 -ChildPath 'DSCResou... |
PowerShellCorpus/PowerShellGallery/ServiceBusForWindowsServerDsc/0.10.0.0/Tests/Unit/SBAuthorizationRule.Tests.ps1 | SBAuthorizationRule.Tests.ps1 | #region HEADER
# Unit Test Template Version: 1.2.0
$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 -ChildPath 'DSCResou... |
PowerShellCorpus/PowerShellGallery/ServiceBusForWindowsServerDsc/0.10.0.0/Tests/Unit/SBHost.Tests.ps1 | SBHost.Tests.ps1 | #region HEADER
# Unit Test Template Version: 1.2.0
$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 -ChildPath 'DSCResou... |
PowerShellCorpus/PowerShellGallery/ServiceBusForWindowsServerDsc/0.10.0.0/Tests/Unit/SBNamespace.Tests.ps1 | SBNamespace.Tests.ps1 | #region HEADER
# Unit Test Template Version: 1.2.0
$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 -ChildPath 'DSCResou... |
PowerShellCorpus/PowerShellGallery/ServiceBusForWindowsServerDsc/0.10.0.0/Tests/Unit/SBFarm.Tests.ps1 | SBFarm.Tests.ps1 | #region HEADER
# Unit Test Template Version: 1.2.0
$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 -ChildPath 'DSCResou... |
PowerShellCorpus/PowerShellGallery/ServiceBusForWindowsServerDsc/0.10.0.0/Tests/Unit/SBMessageContainer.Tests.ps1 | SBMessageContainer.Tests.ps1 | #region HEADER
# Unit Test Template Version: 1.2.0
$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 -ChildPath 'DSCResou... |
PowerShellCorpus/PowerShellGallery/ServiceBusForWindowsServerDsc/0.10.0.0/Tests/Unit/SB.Util.Tests.ps1 | SB.Util.Tests.ps1 | #region HEADER
# Unit Test Template Version: 1.2.0
$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 -ChildPath 'DSCResou... |
PowerShellCorpus/PowerShellGallery/ServiceBusForWindowsServerDsc/0.10.0.0/Tests/Unit/SBHostCEIP.Tests.ps1 | SBHostCEIP.Tests.ps1 | #region HEADER
# Unit Test Template Version: 1.2.0
$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 -ChildPath 'DSCResou... |
PowerShellCorpus/PowerShellGallery/ServiceBusForWindowsServerDsc/0.10.0.0/Scripts/PushMetaConfig.ps1 | PushMetaConfig.ps1 | [DscLocalConfigurationManager()]
Configuration PushMetaConfig
{
Node 'localhost'
{
Settings
{
ActionAfterReboot = 'StopConfiguration'
ConfigurationModeFrequencyMins = 15
RebootNodeIfNeeded = $True
ConfigurationMode = 'ApplyAndMonitor'
... |
PowerShellCorpus/PowerShellGallery/ServiceBusForWindowsServerDsc/0.10.0.0/Scripts/ExampleDriver.ps1 | ExampleDriver.ps1 | $outputPath = 'C:\Program Files\WindowsPowerShell\Configuration\Schema'
. 'C:\Program Files\WindowsPowerShell\Modules\ServiceBusForWindowsServerDsc\ExampleHelpers\PushMetaConfig.ps1'
PushMetaConfig -OutputPath $outputPath
Set-DscLocalConfigurationManager -Path $outputPath -Force -Verbose
. 'C:\Program Files\Windo... |
PowerShellCorpus/PowerShellGallery/ServiceBusForWindowsServerDsc/0.10.0.0/Scripts/CertGen.ps1 | CertGen.ps1 | # Change directory to appropriate place for makecert.exe. Install Windows SDK for this.
# For Windows 10: C:\Program Files (x86)\Windows Kits\10\bin\x64\makecert.exe
# Use this only for cert generation for local testing, use actual PKI certs for a real environment.
.\makecert.exe -n "CN=Development Root" -pe -ss Roo... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Examples/DSCSqlBuild.ps1 | DSCSqlBuild.ps1 | #requires -Version 5
$StartTime = [System.Diagnostics.Stopwatch]::StartNew()
$computers = 'OHSQL9015'
$OutputPath = 'F:\DSCConfig'
$cim = New-CimSession -ComputerName $computers
Function check-even($num){[bool]!($num%2)}
[DSCLocalConfigurationManager()]
Configuration LCM_Push
{
Param(
[s... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Examples/DSCFCISqlBuild.ps1 | DSCFCISqlBuild.ps1 | #requires -Version 5
$computers = 'OHSQL9034N1','OHSQL9034N2','OHSQL9034N3'
$OutputPath = 'F:\DSCConfig'
Configuration FCISQL
{
Import-DscResource –Module PSDesiredStateConfiguration
Import-DscResource -Module xSQLServer
Import-DscResource -Module xFailoverCluster
Node $AllNodes.NodeName... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Examples/SQL-ClusterDB.ps1 | SQL-ClusterDB.ps1 | #requires -Version 5
[Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSAvoidUsingConvertToSecureStringWithPlainText", "")]
param ()
Configuration SQL
{
Import-DscResource -Module xSQLServer
Import-DscResource -Module xFailoverCluster
Node $AllNodes.NodeName
{
# Set LCM to rebo... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Examples/SQL-Standalone.ps1 | SQL-Standalone.ps1 | #requires -Version 5
[Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSAvoidUsingConvertToSecureStringWithPlainText", "")]
param ()
Configuration SQLSA
{
Import-DscResource -Module xSQLServer
# Set role and instance variables
$Roles = $AllNodes.Roles | Sort-Object -Unique
foreach($Role... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Examples/DSCSQLBuildEncrypted.ps1 | DSCSQLBuildEncrypted.ps1 | #requires -Version 5
$StartTime = [System.Diagnostics.Stopwatch]::StartNew()
$computers = 'OHSQL9012'
$OutputPath = 'F:\DSCConfig'
$KeyPath = 'F:\publicKeys'
$cim = New-CimSession -ComputerName $computers
Function check-even($num){[bool]!($num%2)}
Function Get-Cert
{
Param
(
[Sy... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Examples/SQLPush_SingleServer.ps1 | SQLPush_SingleServer.ps1 | #requires -Version 5
$computers = 'OHSQL1016'
$OutputPath = 'D:\DSCLocal'
$cim = New-CimSession -ComputerName $computers
#requires -Version 5
[DSCLocalConfigurationManager()]
Configuration LCM_Push
{
Param(
[string[]]$ComputerName
)
Node $ComputerName
{
Settings
... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Examples/DSCClusterSqlBuild.ps1 | DSCClusterSqlBuild.ps1 | #requires -Version 5
$StartTime = [System.Diagnostics.Stopwatch]::StartNew()
Function check-even($num){[bool]!($num%2)}
$computers = 'OHSQL9013','OHSQL9014'
$OutputPath = 'F:\DSCConfig'
$cim = New-CimSession -ComputerName $computers
[DSCLocalConfigurationManager()]
Configuration LCM_Push
{
Para... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Examples/Resources/xSQLServerDatabaseRecoveryModel/1-SetDatabaseRecoveryModel.ps1 | 1-SetDatabaseRecoveryModel.ps1 | <#
.EXAMPLE
This example shows how to set the Recovery Model
to "Full" for SQL database "AdventureWorks".
#>
Configuration Example
{
param
(
[Parameter(Mandatory = $true)]
[System.Management.Automation.PSCredential]
[System.Management.Automation.Credential()]
... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Examples/Resources/xSQLServerEndpoint/3-RemoveEndpoint.ps1 | 3-RemoveEndpoint.ps1 | <#
.EXAMPLE
This example will remove an Database Mirror endpoint from two instances.
#>
Configuration Example
{
param
(
[Parameter(Mandatory = $true)]
[System.Management.Automation.PSCredential]
[System.Management.Automation.Credential()]
$SysAdminAccount... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Examples/Resources/xSQLServerEndpoint/2-CreateEndpointWithSpecificPortAndIPAddress.ps1 | 2-CreateEndpointWithSpecificPortAndIPAddress.ps1 | <#
.EXAMPLE
This example will add a Database Mirror endpoint with a specific listener port and a specific listener IP address.
#>
Configuration Example
{
param
(
[Parameter(Mandatory = $true)]
[System.Management.Automation.PSCredential]
[System.Management.Automation... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Examples/Resources/xSQLServerEndpoint/1-CreateEndpointWithDefaultValues.ps1 | 1-CreateEndpointWithDefaultValues.ps1 | <#
.EXAMPLE
This example will add a Database Mirror endpoint, to two instances, using the default values.
#>
Configuration Example
{
param
(
[Parameter(Mandatory = $true)]
[System.Management.Automation.PSCredential]
[System.Management.Automation.Credential()]
... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Examples/Resources/xSQLServerDatabase/2-DeleteDatabase.ps1 | 2-DeleteDatabase.ps1 | <#
.EXAMPLE
This example shows how to remove a database with
the database name equal to 'AdventureWorks'.
#>
Configuration Example
{
param
(
[Parameter(Mandatory = $true)]
[System.Management.Automation.PSCredential]
[System.Management.Automation.Credential()]
... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Examples/Resources/xSQLServerDatabase/1-CreateDatabase.ps1 | 1-CreateDatabase.ps1 | <#
.EXAMPLE
This example shows how to create a database with
the database name equal to 'Contoso'.
#>
Configuration Example
{
param
(
[Parameter(Mandatory = $true)]
[System.Management.Automation.PSCredential]
[System.Management.Automation.Credential()]
$SysAd... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Examples/Resources/xSQLServerLogin/2-RemoveLogin.ps1 | 2-RemoveLogin.ps1 | <#
.EXAMPLE
This example shows how to remove the Windows user 'CONTOSO\WindowsUser'.
.EXAMPLE
This example shows how to remove Windows group 'CONTOSO\WindowsGroup'.
.EXAMPLE
This example shows how to remove the SQL Login 'SqlLogin'.
#>
Configuration Example
{
Import-DscResource -ModuleName xSql... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Examples/Resources/xSQLServerLogin/1-AddLogin.ps1 | 1-AddLogin.ps1 | <#
.EXAMPLE
This example shows how to ensure that the Windows user 'CONTOSO\WindowsUser' exists.
.EXAMPLE
This example shows how to ensure that the Windows group 'CONTOSO\WindowsGroup' exists.
.EXAMPLE
This example shows how to ensure that the SQL Login 'SqlLogin' exists.
#>
Configuration Example
{
... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Examples/Resources/xSQLServerReplication/2-ConfigureInstanceAsPublisher.ps1 | 2-ConfigureInstanceAsPublisher.ps1 | <#
.EXAMPLE
This example shows how to configure a SQL Server instance as the publisher.
#>
Configuration Example
{
param
(
[Parameter(Mandatory = $true)]
[System.Management.Automation.PSCredential]
[System.Management.Automation.Credential()]
$SysAdminAccount
)... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Examples/Resources/xSQLServerReplication/1-ConfigureInstanceAsDistributor.ps1 | 1-ConfigureInstanceAsDistributor.ps1 | <#
.EXAMPLE
This example shows how to configure a SQL Server instance as the distributor.
#>
Configuration Example
{
param
(
[Parameter(Mandatory = $true)]
[System.Management.Automation.PSCredential]
[System.Management.Automation.Credential()]
$SysAdminAccount
... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Examples/Resources/xSQLServerDatabaseRole/2-RemoveDatabaseRole.ps1 | 2-RemoveDatabaseRole.ps1 | <#
.EXAMPLE
This example shows how to ensure that the user account CONTOSO\SQLAdmin
is not member of the "DeleteRole" SQL database role.
#>
Configuration Example
{
param
(
[Parameter(Mandatory = $true)]
[System.Management.Automation.PSCredential]
[System.Management.Aut... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Examples/Resources/xSQLServerDatabaseRole/1-AddDatabaseRole.ps1 | 1-AddDatabaseRole.ps1 | <#
.EXAMPLE
This example shows how to ensure that the user account CONTOSO\SQLAdmin
has "MyRole" and "MySecondRole" SQL database roles.
#>
Configuration Example
{
param
(
[Parameter(Mandatory = $true)]
[System.Management.Automation.PSCredential]
[System.Management.Auto... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Examples/Resources/xSQLServerPermission/2-RemoveServerPermissionForLogin.ps1 | 2-RemoveServerPermissionForLogin.ps1 | <#
.EXAMPLE
This example will remove the server permissions AlterAnyAvailabilityGroup and ViewServerState
from the login 'NT AUTHORITY\SYSTEM'.
#>
Configuration Example
{
param
(
[Parameter(Mandatory = $true)]
[System.Management.Automation.PSCredential]
[Sy... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Examples/Resources/xSQLServerPermission/1-AddServerPermissionForLogin.ps1 | 1-AddServerPermissionForLogin.ps1 | <#
.EXAMPLE
This example will add the server permissions AlterAnyAvailabilityGroup and ViewServerState
to the login 'NT AUTHORITY\SYSTEM' and 'NT SERVICE\ClusSvc' to the default instance.
#>
Configuration Example
{
param
(
[Parameter(Mandatory = $true)]
[System.Mana... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Examples/Resources/xSQLServerFirewall/1-CreateInboundFirewallRules.ps1 | 1-CreateInboundFirewallRules.ps1 | <#
.EXAMPLE
This example shows how to create the default rules for the supported features.
#>
Configuration Example
{
param
(
[Parameter(Mandatory = $true)]
[System.Management.Automation.PSCredential]
[System.Management.Automation.Credential()]
$SysAdminAccount
... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Examples/Resources/xSQLServerFirewall/2-RemoveInboundFirewallRules.ps1 | 2-RemoveInboundFirewallRules.ps1 | <#
.EXAMPLE
This example shows how to remove the default rules for the supported features.
#>
Configuration Example
{
param
(
[Parameter(Mandatory = $true)]
[System.Management.Automation.PSCredential]
[System.Management.Automation.Credential()]
$SysAdminAccount
... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Examples/Resources/xSQLServerAlwaysOnAvailabilityGroupReplica/1-CreateAvailabilityGroupReplica.ps1 | 1-CreateAvailabilityGroupReplica.ps1 | <#
.EXAMPLE
This example shows how to ensure that the Availability Group Replica 'SQL2' exists in the Availability Group 'TestAG'.
#>
$ConfigurationData = @{
AllNodes = @(
@{
NodeName= '*'
SQLInstanceName = 'MSSQLSERVER'
AvailabilityGroupName = 'TestAG'
... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Examples/Resources/xSQLServerAlwaysOnAvailabilityGroupReplica/2-RemoveAvailabilityGroupReplica.ps1 | 2-RemoveAvailabilityGroupReplica.ps1 | <#
.EXAMPLE
This example shows how to ensure that the Availability Group Replica 'SQL2' does not exist in the Availability Group 'TestAG'.
#>
$ConfigurationData = @{
AllNodes = @(
@{
NodeName= '*'
SQLInstanceName = 'MSSQLSERVER'
AvailabilityGroupName = 'Tes... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Examples/Resources/xSQLServerMaxDop/2-SetMaxDopToAuto.ps1 | 2-SetMaxDopToAuto.ps1 | <#
.EXAMPLE
This example shows how to set max degree of parallelism server
configuration option with the automatic configuration.
#>
Configuration Example
{
param
(
[Parameter(Mandatory = $true)]
[System.Management.Automation.PSCredential]
[System.Management.Automatio... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Examples/Resources/xSQLServerMaxDop/1-SetMaxDopToOne.ps1 | 1-SetMaxDopToOne.ps1 | <#
.EXAMPLE
This example shows how to set max degree of parallelism server
configuration option with the value equal to 1.
#>
Configuration Example
{
param
(
[Parameter(Mandatory = $true)]
[System.Management.Automation.PSCredential]
[System.Management.Automation.Creden... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Examples/Resources/xSQLServerMaxDop/3-SetMaxDopToDefault.ps1 | 3-SetMaxDopToDefault.ps1 | <#
.EXAMPLE
This example shows how to set max degree of parallelism server
configuration option with the default configuration.
#>
Configuration Example
{
param
(
[Parameter(Mandatory = $true)]
[System.Management.Automation.PSCredential]
[System.Management.Automation.... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Examples/Resources/xSQLServerAlias/2-RemoveSQLServerAlias.ps1 | 2-RemoveSQLServerAlias.ps1 | <#
.EXAMPLE
This example shows how to ensure that the SQL Alias
SQLDSC* does not exist with Named Pipes or TCP.
#>
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$SysAdminAccount
)
Import-DscResource -ModuleName xSqlServer
... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Examples/Resources/xSQLServerAlias/1-AddSQLServerAlias.ps1 | 1-AddSQLServerAlias.ps1 | <#
.EXAMPLE
This example shows how to ensure that the SQL Alias
SQLDSC* exists with Named Pipes or TCP.
#>
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$SysAdminAccount
)
Import-DscResource -ModuleName xSqlServer
node loc... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Examples/Resources/xSQLServerDatabaseOwner/1-SetDatabaseOwner.ps1 | 1-SetDatabaseOwner.ps1 | <#
.EXAMPLE
This example shows how to ensure that the user account CONTOSO\SQLAdmin
is "Owner" of SQL database "AdventureWorks".
#>
Configuration Example
{
param
(
[Parameter(Mandatory = $true)]
[System.Management.Automation.PSCredential]
[System.Management.Automation.... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Examples/Resources/xSQLServerScript/2-RunScriptUsingWindowsAuthentication.ps1 | 2-RunScriptUsingWindowsAuthentication.ps1 | <#
.EXAMPLE
These two example shows how to run SQL script using Windows Authentication.
First example shows how the resource is run as account SYSTEM. And the second example shows how the resource is run with a user account.
#>
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Examples/Resources/xSQLServerScript/1-RunScriptUsingSQLAuthentication.ps1 | 1-RunScriptUsingSQLAuthentication.ps1 | <#
.EXAMPLE
This example shows how to run SQL script using SQL Authentication.
#>
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$SqlCredential
)
Import-DscResource -ModuleName xSQLServer
Node localhost
{
xSQLServe... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Examples/Resources/xSQLServerAvailabilityGroupListener/5-AddAvailabilityGroupListenerUsingDHCPWithDefaultServerSubnet.ps1 | 5-AddAvailabilityGroupListenerUsingDHCPWithDefaultServerSubnet.ps1 | <#
.EXAMPLE
This example will add an Availability Group listener using DHCP on the default server subnet.
#>
Configuration Example
{
param
(
[Parameter(Mandatory = $true)]
[System.Management.Automation.PSCredential]
[System.Management.Automation.Credential()]
$SysA... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Examples/Resources/xSQLServerAvailabilityGroupListener/2-AddAvailabilityGroupListenerWithDifferentNameAsVCO.ps1 | 2-AddAvailabilityGroupListenerWithDifferentNameAsVCO.ps1 | <#
.EXAMPLE
This example will add an Availability Group listener with a different than the cluster role VCO.
#>
Configuration Example
{
param
(
[Parameter(Mandatory = $true)]
[System.Management.Automation.PSCredential]
[System.Management.Automation.Credential()]
$S... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Examples/Resources/xSQLServerAvailabilityGroupListener/6-AddAvailabilityGroupListenerUsingDHCPWithSpecificSubnet.ps1 | 6-AddAvailabilityGroupListenerUsingDHCPWithSpecificSubnet.ps1 | <#
.EXAMPLE
This example will add an Availability Group listener using DHCP with a specific subnet.
#>
Configuration Example
{
param
(
[Parameter(Mandatory = $true)]
[System.Management.Automation.PSCredential]
[System.Management.Automation.Credential()]
$SysAdminAc... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Examples/Resources/xSQLServerAvailabilityGroupListener/4-RemoveAvailabilityGroupListenerWithDifferentNameAsVCO.ps1 | 4-RemoveAvailabilityGroupListenerWithDifferentNameAsVCO.ps1 | <#
.EXAMPLE
This example will remove an Availability Group listener with the same name as the cluster role VCO.
#>
Configuration Example
{
param
(
[Parameter(Mandatory = $true)]
[System.Management.Automation.PSCredential]
[System.Management.Automation.Credential()]
... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Examples/Resources/xSQLServerAvailabilityGroupListener/1-AddAvailabilityGroupListenerWithSameNameAsVCO.ps1 | 1-AddAvailabilityGroupListenerWithSameNameAsVCO.ps1 | <#
.EXAMPLE
This example will add an Availability Group listener with the same name as the cluster role VCO.
#>
Configuration Example
{
param
(
[Parameter(Mandatory = $true)]
[System.Management.Automation.PSCredential]
[System.Management.Automation.Credential()]
$S... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Examples/Resources/xSQLServerAvailabilityGroupListener/3-RemoveAvailabilityGroupListenerWithSameNameAsVCO.ps1 | 3-RemoveAvailabilityGroupListenerWithSameNameAsVCO.ps1 | <#
.EXAMPLE
This example will remove an Availability Group listener with a different name than cluster role VCO.
#>
Configuration Example
{
param
(
[Parameter(Mandatory = $true)]
[System.Management.Automation.PSCredential]
[System.Management.Automation.Credential()]
... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Examples/Resources/xSQLServerRole/2-RemoveServerRole.ps1 | 2-RemoveServerRole.ps1 | <#
.EXAMPLE
This example shows how to ensure that the server role named
serverRoleToDelete is not present on instance SQLServer\DSC.
#>
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$SysAdminAccount
)
Import-DscResource -ModuleN... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Examples/Resources/xSQLServerRole/1-AddServerRole.ps1 | 1-AddServerRole.ps1 | <#
.EXAMPLE
This example shows how to ensure that the server role named
AdminSqlforBI is present on instance SQLServer\DSC.
#>
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$SysAdminAccount
)
Import-DscResource -ModuleName xSqlS... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Examples/Resources/xSQLServerRole/5-MembersToExcludeInServerRole.ps1 | 5-MembersToExcludeInServerRole.ps1 | <#
.EXAMPLE
This example shows how to ensure that the server role named
AdminSqlforBI is present on instance SQLServer\DSC and logins
CONTOSO\Mark and CONTOSO\Lucy are not members of this role.
#>
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Examples/Resources/xSQLServerRole/3-AddMembersToServerRole.ps1 | 3-AddMembersToServerRole.ps1 | <#
.EXAMPLE
This example shows how to ensure that the server role named
AdminSqlforBI is present on instance SQLServer\DSC and only logins
CONTOSO\SQLAdmin and CONTOSO\SQLAdminBI are members of this role.
#>
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCr... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Examples/Resources/xSQLServerRole/4-MembersToIncludeInServerRole.ps1 | 4-MembersToIncludeInServerRole.ps1 | <#
.EXAMPLE
This example shows how to ensure that the server role named
AdminSqlforBI is present on instance SQLServer\DSC and logins
CONTOSO\John and CONTOSO\Kelly are added as members of this role.
#>
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredent... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Examples/Resources/xSQLServerDatabasePermission/2-RevokeDatabasePermissions.ps1 | 2-RevokeDatabasePermissions.ps1 | <#
.DESCRIPTION
This example shows how to ensure that the user account CONTOSO\SQLAdmin
hasn't "Select" and "Create Table" SQL Permissions for database "AdventureWorks".
#>
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$SysAdminAccount
... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Examples/Resources/xSQLServerDatabasePermission/1-GrantDatabasePermissions.ps1 | 1-GrantDatabasePermissions.ps1 | <#
.DESCRIPTION
This example shows how to ensure that the user account CONTOSO\SQLAdmin
has "Connect" and "Update" SQL Permissions for database "AdventureWorks".
#>
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$SysAdminAccount
)
... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Examples/Resources/xSQLServerDatabasePermission/3-DenyDatabasePermissions.ps1 | 3-DenyDatabasePermissions.ps1 | <#
.DESCRIPTION
This example shows how to ensure that the user account CONTOSO\SQLAdmin
has "Connect" and "Update" SQL Permissions for database "AdventureWorks".
#>
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$SysAdminAccount
)
... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Examples/Resources/xSQLServerEndpointState/1-MakeSureEndpointIsStarted.ps1 | 1-MakeSureEndpointIsStarted.ps1 | <#
.EXAMPLE
This example will make sure that the endpoint DefaultMirrorEndpoint is in started state in the default instance, if not it will start the endpoint.
.EXAMPLE
This example will make sure that the endpoint HADR is in started state in the default instance, if not it will start the ... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Examples/Resources/xSQLServerEndpointState/2-MakeSureEndpointIsStopped.ps1 | 2-MakeSureEndpointIsStopped.ps1 | <#
.EXAMPLE
This example will make sure that the endpoint DefaultMirrorEndpoint is in stopped state, if not it will stop the endpoint.
#>
Configuration Example
{
param
(
[Parameter(Mandatory = $true)]
[System.Management.Automation.PSCredential]
[System.Management.Au... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Examples/Resources/xWaitForAvailabilityGroup/1-WaitForASingleClusterGroup.ps1 | 1-WaitForASingleClusterGroup.ps1 | <#
.EXAMPLE
This example will wait for the cluster role/group 'AGTest1'.
#>
Configuration Example
{
param
(
[Parameter(Mandatory = $true)]
[System.Management.Automation.PSCredential]
[System.Management.Automation.Credential()]
$SysAdminAccount
)
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.