full_path stringlengths 31 232 | filename stringlengths 4 167 | content stringlengths 0 48.3M |
|---|---|---|
PowerShellCorpus/Github/svendewindt_azure/MasterAxTest/AzureDeploy/DSC/All Resources/xPSDesiredStateConfiguration/Examples/Sample_xPSSessionConfiguration.ps1 | Sample_xPSSessionConfiguration.ps1 | configuration Sample_xPSEndpoint_NewWithDefaults
{
param
(
[Parameter(Mandatory)]
[String]$Name
)
Import-DscResource -module xPSDesiredStateConfiguration
xPSEndpoint PSSessionConfiguration
{
Name = $Name
Ensure = 'Present'
}
}
configuration... |
PowerShellCorpus/Github/svendewindt_azure/MasterAxTest/AzureDeploy/DSC/All Resources/xPSDesiredStateConfiguration/Examples/Test_Sample_xArchive_CompressArchive.ps1 | Test_Sample_xArchive_CompressArchive.ps1 |
$zipFilePath = "$pwd\Target.zip"
del "$pwd\Sample-1.txt" -Force -Recurse -ErrorAction SilentlyContinue
del "$pwd\Sample-2.txt" -Force -Recurse -ErrorAction SilentlyContinue
del "$pwd\Sample-3.txt" -Force -Recurse -ErrorAction SilentlyContinue
del "$pwd\SourceDir-1" -Force -Recurse -ErrorAction SilentlyContinue
... |
PowerShellCorpus/Github/svendewindt_azure/MasterAxTest/AzureDeploy/DSC/All Resources/xPSDesiredStateConfiguration/Examples/Sample_xFileUpload.ps1 | Sample_xFileUpload.ps1 | Configuration FileUploadConfiguration
{
param (
[parameter(Mandatory = $true)]
[String] $destinationPath,
[parameter(Mandatory = $true)]
[String] $sourcePath,
[PSCredential] $credential,
[String] $certificateThumbprint
)
Import-DscResource -modulename xPSDesiredStateConfiguration
node localhost
{
... |
PowerShellCorpus/Github/svendewindt_azure/MasterAxTest/AzureDeploy/DSC/All Resources/xPSDesiredStateConfiguration/ResourceDesignerScripts/New-PSSessionConfigurationResource.ps1 | New-PSSessionConfigurationResource.ps1 | ipmo xDSCResourceDesigner
$resProperties = @{
Name = New-xDscResourceProperty -Description 'Name of the PS Remoting Endpoint' `
-Name Name -Type String -Attribute Key
RunAsCred = New-xDscResourceProperty -Description 'Credential for Running under d... |
PowerShellCorpus/Github/svendewindt_azure/MasterAxTest/AzureDeploy/DSC/All Resources/xPSDesiredStateConfiguration/ResourceDesignerScripts/GenerateXRemoteFileSchema.ps1 | GenerateXRemoteFileSchema.ps1 | $DestinationPath = New-xDscResourceProperty -Name DestinationPath -Type String -Attribute Key -Description 'Path under which downloaded or copied file should be accessible after operation.'
$Uri = New-xDscResourceProperty -Name Uri -Type String -Attribute Required -Description 'Uri of a file which should be copied or ... |
PowerShellCorpus/Github/svendewindt_azure/MasterAxTest/AzureDeploy/DSC/All Resources/xWinEventLog/Examples/Demo1.ps1 | Demo1.ps1 | 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"
... |
PowerShellCorpus/Github/svendewindt_azure/MasterAxTest/AzureDeploy/DSC/All Resources/xPowerShellExecutionPolicy/Examples/SetPowerShellExecutionPolicy.ps1 | SetPowerShellExecutionPolicy.ps1 | #---------------------------------------------------------------------------------
#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... |
PowerShellCorpus/Github/svendewindt_azure/MasterAxTest/AzureDeploy/DSC/All Resources/xBitlocker/Test/Test-xBitlocker.ps1 | Test-xBitlocker.ps1 | $showVerbose = $true
$showValidSettings -eq $true
if ($pin -eq $null)
{
$pin = Get-Credential -Message "Enter the Bitlocker Pin in the password field"
}
#Define the parameters that can be passed into individual tests
$blParams1 = @{
MountPoint = "C:"
PrimaryProtector = "RecoveryPasswordProtecto... |
PowerShellCorpus/Github/svendewindt_azure/MasterAxTest/AzureDeploy/DSC/All Resources/xBitlocker/Examples/ConfigureBitlockerOnOSDrive/ConfigureBitlockerOnOSDrive.ps1 | ConfigureBitlockerOnOSDrive.ps1 | Configuration ConfigureBitlockerOnOSDrive
{
Import-DscResource -Module xBitlocker
Node "E15-1"
{
#First install the required Bitlocker features
WindowsFeature BitlockerFeature
{
Name = 'Bitlocker'
Ensure = 'Present'
... |
PowerShellCorpus/Github/svendewindt_azure/MasterAxTest/AzureDeploy/DSC/All Resources/xBitlocker/Examples/ConfigureBitlockerAndAutoBitlocker/ConfigureBitlockerAndAutoBitlocker.ps1 | ConfigureBitlockerAndAutoBitlocker.ps1 | Configuration ConfigureBitlockerAndAutoBitlocker
{
Import-DscResource -Module xBitlocker
Node 'E15-1'
{
#First install the required Bitlocker features
WindowsFeature BitlockerFeature
{
Name = 'Bitlocker'
Ensure = 'Prese... |
PowerShellCorpus/Github/svendewindt_azure/MasterAxTest/AzureDeploy/DSC/All Resources/xMySql/DscResources/MSFT_xMySqlDatabase/xMySqlDatabaseDesigner.ps1 | xMySqlDatabaseDesigner.ps1 | # a Powershell script to create MySqlDatabase resource using xDSCResourceDesigner tool
$friendlyName = "xMySqlDatabase"
$resourceName = "MSFT_$friendlyName"
$classVersion = "1.0.0"
$scriptRoot = Split-Path $MyInvocation.MyCommand.Path
$originalModuleRoot = join-Path $scriptroot "..\.."
$originalModuleRootPath =... |
PowerShellCorpus/Github/svendewindt_azure/MasterAxTest/AzureDeploy/DSC/All Resources/xMySql/DscResources/MSFT_xMySqlUser/xMySqlUserDesigner.ps1 | xMySqlUserDesigner.ps1 | # a Powershell script to create MySqlDatabase resource using xDSCResourceDesigner tool
$friendlyName = "xMySqlGrant"
$resourceName = "MSFT_$friendlyName"
$classVersion = "1.0.0"
$scriptRoot = Split-Path $MyInvocation.MyCommand.Path
$originalModuleRoot = join-Path $scriptroot "..\.."
$originalModuleRootPath = Re... |
PowerShellCorpus/Github/svendewindt_azure/MasterAxTest/AzureDeploy/DSC/All Resources/xMySql/DscResources/MSFT_xMySqlGrant/xMySqlGrantDesigner.ps1 | xMySqlGrantDesigner.ps1 | # a Powershell script to create MySqlDatabase resource using xDSCResourceDesigner tool
$friendlyName = "xMySqlGrant"
$resourceName = "MSFT_$friendlyName"
$classVersion = "1.0.0"
$scriptRoot = Split-Path $MyInvocation.MyCommand.Path
$originalModuleRoot = join-Path $scriptroot "..\.."
$originalModuleRootPath = Re... |
PowerShellCorpus/Github/svendewindt_azure/MasterAxTest/AzureDeploy/DSC/All Resources/xMySql/Examples/Sample_InstallMySQL_Default.ps1 | Sample_InstallMySQL_Default.ps1 |
configuration SQLInstanceInstallationConfiguration
{
param
(
[parameter(Mandatory = $true)]
[ValidateNotNullOrEmpty()]
[String] $MySQLInstancePackagePath,
[parameter(Mandatory = $true)]
[ValidateNotNullOrEmpty()]
[String] $MySQLInstancePackageName
... |
PowerShellCorpus/Github/svendewindt_azure/MasterAxTest/AzureDeploy/DSC/All Resources/xMySql/Examples/Sample_InstallMySQLInstanceAndDatabase.ps1 | Sample_InstallMySQLInstanceAndDatabase.ps1 | configuration SQLInstanceAndDatabaseInstallationConfiguration
{
param
(
[parameter(Mandatory = $true)]
[ValidateNotNullOrEmpty()]
[String] $MySQLInstancePackagePath,
[parameter(Mandatory = $true)]
[ValidateNotNullOrEmpty()]
[String] $MySQLInstancePackag... |
PowerShellCorpus/Github/svendewindt_azure/MasterAxTest/AzureDeploy/DSC/All Resources/xMySql/Examples/InstallRequiredModules.ps1 | InstallRequiredModules.ps1 | # This Script installs the required modules for the MySql Sample
# It uses the PowerShell Resource Gallery, see https://msconfiggallery.cloudapp.net/
# This requires WMF 5. If you don't have WMF 5, Please install the modules manually.
Write-Host "Installing required modules..."
Install-Module xMySql -MinimumVers... |
PowerShellCorpus/Github/svendewindt_azure/MasterAxTest/AzureDeploy/DSC/All Resources/xMySql/Examples/GrantMySqlDatabaseAccess.ps1 | GrantMySqlDatabaseAccess.ps1 | ###################
# Configuration script to grant full access to given my sql database for given my sql user.
# It assumes that mySql is installed on local machine with root user $RootUser and root password $global:pwd
###################
configuration MySQLGrantConfiguration
{
param
(
[par... |
PowerShellCorpus/Github/svendewindt_azure/MasterAxTest/AzureDeploy/DSC/All Resources/xMySql/Examples/Sample_RemoveMySQL_Default.ps1 | Sample_RemoveMySQL_Default.ps1 |
configuration SQLInstanceRemovalConfiguration
{
Import-DscResource -Module xMySql
node $AllNodes.NodeName
{
xMySqlServer MySQLInstance
{
Ensure = "Absent"
RootPassword = $global:cred
ServiceName = "MySQLInstanceServiceName"... |
PowerShellCorpus/Github/svendewindt_azure/MasterAxTest/AzureDeploy/DSC/All Resources/xMySql/Examples/CreateMySQLUser.ps1 | CreateMySQLUser.ps1 | ###################
# Configuration script to create my sql user. It assumes that mySql is installed on local machine with root user $RootUser and root password $global:pwd
###################
configuration CreateMySQLUserConfiguration
{
param
(
[parameter(Mandatory = $true)]
[Validate... |
PowerShellCorpus/Github/svendewindt_azure/MasterAxTest/AzureDeploy/DSC/All Resources/xMySql/Examples/Sample_RemoveMySQLAndDatabase.ps1 | Sample_RemoveMySQLAndDatabase.ps1 | configuration SQLRemoveInstanceAndDatabaseInstallationConfiguration
{
param
(
[parameter(Mandatory = $true)]
[ValidateNotNullOrEmpty()]
[String] $MySQLInstancePackagePath,
[parameter(Mandatory = $true)]
[ValidateNotNullOrEmpty()]
[String] $MySQLInstance... |
PowerShellCorpus/Github/svendewindt_azure/MasterAxTest/AzureDeploy/DSC/All Resources/xAdcsDeployment/xCertificateServices/Examples/Config-SetupActiveDirectory.ps1 | Config-SetupActiveDirectory.ps1 | #region Param
param
(
[String]$DomainName,
[String]$DomainNetbiosName,
[PSCredential]$Credential,
[PSCredential]$DomainCredential,
[PSCredential]$SafeModeAdministratorPassword,
[String]$EncryptionCertificateThumbprint
)
#endregion
#region Decrypt
function De... |
PowerShellCorpus/Github/svendewindt_azure/MasterAxTest/AzureDeploy/DSC/All Resources/xAzure/Examples/Status.ps1 | Status.ps1 | ############################################################
# DSC Azure Test Example - Status
#
# This script will show the detailed status of the Virtual
# Machine in Azure.
#
# Before running this script, do the following:
# * Open PowerShell and run Get-AzurePublishSettingsFile
# * Download the .publishsetting... |
PowerShellCorpus/Github/svendewindt_azure/MasterAxTest/AzureDeploy/DSC/All Resources/xAzure/Examples/CreateWithDSCExtension.ps1 | CreateWithDSCExtension.ps1 | ############################################################
# DSC Azure Test Example - CREATEwithDSCExtension
#
# This script will create a test Virtual Machine in Azure,
# including the prerequisites - Affinity Group, Storage,
# and Cloud Service.
#
# This example also loads PowerShell Just Enough Administration
# in... |
PowerShellCorpus/Github/svendewindt_azure/MasterAxTest/AzureDeploy/DSC/All Resources/xAzure/Examples/LCM.ps1 | LCM.ps1 | ############################################################
# DSC Azure Test Example - LCM Apply Only
#
# This script configures your local machine to apply DSC
# configurations 'only' which means not to include
# DSC automatically monitoring for drift or
# re-applying the configuration automationally.
#
# Set the... |
PowerShellCorpus/Github/svendewindt_azure/MasterAxTest/AzureDeploy/DSC/All Resources/xAzure/Examples/Create_SqlDatabase.ps1 | Create_SqlDatabase.ps1 | <#
Configuration creates Azure SQL Database
#>
configuration CreateSqlDatabase
{
param
(
$workingDirectory,
$name,
$serverCredential,
$serverName,
$ruleName,
$startIPAddress,
$endIPAddress,
$azureSubscriptionName,
$azure... |
PowerShellCorpus/Github/svendewindt_azure/MasterAxTest/AzureDeploy/DSC/All Resources/xAzure/Examples/SetupSubscription.ps1 | SetupSubscription.ps1 | ############################################################
# DSC Azure Test Example - SETUP SUBSCRIPTION
#
# Before running this script, do the following:
# * Open PowerShell and run Get-AzurePublishSettingsFile
# * Download the .publishsettings file in to $workingdir
#
# Set the folder where your files will liv... |
PowerShellCorpus/Github/svendewindt_azure/MasterAxTest/AzureDeploy/DSC/All Resources/xAzure/Examples/Destroy.ps1 | Destroy.ps1 | ############################################################
# DSC Azure Test Example - DESTROY
#
# NOTES - this script removes everything in the test environment
# from Azure and then makes sure the subscription is no longer
# set as Current for the LocalSystem.
#
# This script is DESTRUCTIVE without a method of resto... |
PowerShellCorpus/Github/svendewindt_azure/MasterAxTest/AzureDeploy/DSC/All Resources/xAzure/Examples/RemoveVMs.ps1 | RemoveVMs.ps1 | ############################################################
# DSC Azure Test Example - REMOVE VMS
#
# This script removes specific VMs from Azure
#
# This script is DESTRUCTIVE without a method of restoration
#
# The subscription must be in place in order to access Azure
# and do work, so if this is being run in a new... |
PowerShellCorpus/Github/svendewindt_azure/MasterAxTest/AzureDeploy/DSC/All Resources/xAzure/Examples/PublishConfigurationArchiveToStorage.ps1 | PublishConfigurationArchiveToStorage.ps1 | # Sample configuration to Publish Configuration Archive to Storage
Configuration PublishToStorage
{
Import-DscResource -Module xAzure
xAzureVMDscConfiguration Publish
{
StorageAccountName = 'dscazext'
Ensure = 'Present'
ContainerName ... |
PowerShellCorpus/Github/svendewindt_azure/MasterAxTest/AzureDeploy/DSC/All Resources/xAzure/Examples/Create.ps1 | Create.ps1 | ############################################################
# DSC Azure Test Example - CREATE
#
# This script will create a test Virtual Machine in Azure,
# including the prerequisites - Affinity Group, Storage,
# and Cloud Service.
#
# This example also loads PowerShell Just Enough Administration
# inside the VM via ... |
PowerShellCorpus/Github/svendewindt_azure/MasterAxTest/AzureDeploy/DSC/All Resources/xAzure/Examples/Create_FirewallRule.ps1 | Create_FirewallRule.ps1 | <#
Configuration creates Azure SQL Database Server Firewall Rule
#>
configuration CreateSqlDatabaseServerFirewallRule
{
param
(
$workingDirectory,
$ruleName,
$serverName,
$startIPAddress,
$endIPAddress,
$azureSubscriptionName,
$azurePubli... |
PowerShellCorpus/Github/svendewindt_azure/MasterAxTest/AzureDeploy/DSC/All Resources/xAzure/Examples/scriptextensionfiles/InstallJEA.ps1 | InstallJEA.ps1 | Invoke-WebRequest -Uri 'http://nuget.org/nuget.exe' -OutFile "$env:TEMP\NuGet.exe"
&"$env:TEMP\NuGet.exe" install xJea -NoCache -Source http://msconfiggallery.cloudapp.net/api/v2/ -ExcludeVersion -PackageSaveMode "nuspec" -OutputDirectory "$env:ProgramFiles\WindowsPowerShell\Modules"
&'winrm' quickconfig -quiet
... |
PowerShellCorpus/Github/svendewindt_azure/MasterAxTest/AzureDeploy/DSC/All Resources/xAzure/Examples/ServerCoreTest/ServerCoreTest.ps1 | ServerCoreTest.ps1 | configuration ServerCoreTest
{
WindowsFeature NoGUI
{
Ensure = 'Absent'
Name = 'Server-Gui-Mgmt-Infra'
}
LocalConfigurationManager
{
ConfigurationMode = 'ApplyOnly'
RebootNodeIfNeeded = 'True'
}
} |
PowerShellCorpus/Github/svendewindt_azure/MasterAxTest/AzureDeploy/DSC/All Resources/xAzure/ResourceDesignerScripts/GenerateXAzureSqlDatabase.ps1 | GenerateXAzureSqlDatabase.ps1 | $Name = New-xDscResourceProperty -Name Name -Type String -Attribute Key -Description 'Name of the database'
$ServerName = New-xDscResourceProperty -Name ServerName -Type String -Attribute Key -Description 'Name of the database server in which database should be created'
$MaximumSizeInGB = New-xDscResourceProperty -N... |
PowerShellCorpus/Github/svendewindt_azure/MasterAxTest/AzureDeploy/DSC/All Resources/xAzure/ResourceDesignerScripts/GenerateXAzureSqlDatabaseServerFirewallRule.ps1 | GenerateXAzureSqlDatabaseServerFirewallRule.ps1 | $Name = New-xDscResourceProperty -Name RuleName -Type String -Attribute Key -Description 'Name of the firewall rule'
$ServerName = New-xDscResourceProperty -Name ServerName -Type String -Attribute Key -Description 'Name of the database server for which firewall rule should be created'
$StartIPAddress = New-xDscResour... |
PowerShellCorpus/Github/svendewindt_azure/MasterAxTest/AzureDeploy/DSC/All Resources/xSCOM/Examples/SCOM-SeperateSQL-TP.ps1 | SCOM-SeperateSQL-TP.ps1 | #requires -Version 5
Configuration OM
{
Import-DscResource -Module xCredSSP
Import-DscResource -Module xSQLServer
Import-DscResource -Module xSCOM
# Set role and instance variables
$Roles = $AllNodes.Roles | Sort-Object -Unique
foreach($Role in $Roles)
{
$Servers = @($A... |
PowerShellCorpus/Github/svendewindt_azure/MasterAxTest/AzureDeploy/DSC/All Resources/xSCOM/Examples/SCOM-SeperateSQL.ps1 | SCOM-SeperateSQL.ps1 | #requires -Version 5
Configuration OM
{
Import-DscResource -Module xCredSSP
Import-DscResource -Module xSQLServer
Import-DscResource -Module xSCOM
# Set role and instance variables
$Roles = $AllNodes.Roles | Sort-Object -Unique
foreach($Role in $Roles)
{
$Servers = @($A... |
PowerShellCorpus/Github/svendewindt_azure/MasterAxTest/AzureDeploy/DSC/All Resources/xSCOM/Examples/SCOM-SeperateSQLInstances-TP.ps1 | SCOM-SeperateSQLInstances-TP.ps1 | #requires -Version 5
Configuration OM
{
Import-DscResource -Module xCredSSP
Import-DscResource -Module xSQLServer
Import-DscResource -Module xSCOM
# Set role and instance variables
$Roles = $AllNodes.Roles | Sort-Object -Unique
foreach($Role in $Roles)
{
$Servers = @($A... |
PowerShellCorpus/Github/svendewindt_azure/MasterAxTest/AzureDeploy/DSC/All Resources/xSCOM/Examples/SCOM-MultiInstance-TP.ps1 | SCOM-MultiInstance-TP.ps1 | #requires -Version 5
Configuration OM
{
Import-DscResource -Module xCredSSP
Import-DscResource -Module xSQLServer
Import-DscResource -Module xSCOM
# Set role and instance variables
$Roles = $AllNodes.Roles | Sort-Object -Unique
foreach($Role in $Roles)
{
$Servers = @($A... |
PowerShellCorpus/Github/svendewindt_azure/MasterAxTest/AzureDeploy/DSC/All Resources/xSCOM/Examples/SCOM-SingleServer-TP.ps1 | SCOM-SingleServer-TP.ps1 | #requires -Version 5
Configuration OM
{
Import-DscResource -Module xCredSSP
Import-DscResource -Module xSQLServer
Import-DscResource -Module xSCOM
# Set role and instance variables
$Roles = $AllNodes.Roles | Sort-Object -Unique
foreach($Role in $Roles)
{
$Servers = @($A... |
PowerShellCorpus/Github/svendewindt_azure/MasterAxTest/AzureDeploy/DSC/All Resources/xSCOM/Examples/SCOM-MultiInstance.ps1 | SCOM-MultiInstance.ps1 | #requires -Version 5
Configuration OM
{
Import-DscResource -Module xCredSSP
Import-DscResource -Module xSQLServer
Import-DscResource -Module xSCOM
# Set role and instance variables
$Roles = $AllNodes.Roles | Sort-Object -Unique
foreach($Role in $Roles)
{
$Servers = @($A... |
PowerShellCorpus/Github/svendewindt_azure/MasterAxTest/AzureDeploy/DSC/All Resources/xSCOM/Examples/SCOM-SeperateSQLInstances.ps1 | SCOM-SeperateSQLInstances.ps1 | #requires -Version 5
Configuration OM
{
Import-DscResource -Module xCredSSP
Import-DscResource -Module xSQLServer
Import-DscResource -Module xSCOM
# Set role and instance variables
$Roles = $AllNodes.Roles | Sort-Object -Unique
foreach($Role in $Roles)
{
$Servers = @($A... |
PowerShellCorpus/Github/svendewindt_azure/MasterAxTest/AzureDeploy/DSC/All Resources/xSCOM/Examples/SCOM-SingleServer.ps1 | SCOM-SingleServer.ps1 | #requires -Version 5
Configuration OM
{
Import-DscResource -Module xCredSSP
Import-DscResource -Module xSQLServer
Import-DscResource -Module xSCOM
# Set role and instance variables
$Roles = $AllNodes.Roles | Sort-Object -Unique
foreach($Role in $Roles)
{
$Servers = @($A... |
PowerShellCorpus/Github/svendewindt_azure/MasterAxTest/AzureDeploy/DSC/All Resources/xRemoteDesktopAdmin/Examples/ExampleConfiguration-RemoteDesktopAdmin.ps1 | ExampleConfiguration-RemoteDesktopAdmin.ps1 | Configuration AllowRemoteDesktopAdminConnections
{
Import-DscResource -Module xRemoteDesktopAdmin, xNetworking
Node ('localhost')
{
xRemoteDesktopAdmin RemoteDesktopSettings
{
Ensure = 'Present'
UserAuthentication = 'Secure'
}
xFire... |
PowerShellCorpus/Github/svendewindt_azure/MasterAxTest/AzureDeploy/DSC/All Resources/xRemoteDesktopAdmin/Examples/ExampleConfiguration-RemoteDesktopAdminWithEncryptedPassword.ps1 | ExampleConfiguration-RemoteDesktopAdminWithEncryptedPassword.ps1 | # The configuration data section specifies which certificate and thumbprint to use for encrypting the password
$ConfigData = @{
AllNodes = @(
@{
NodeName="DSCnode1";
CertificateFile = "C:\Certificates\DSCnode1.cer"
Thumbprint = "E36D15C59BDBABB8525E48568844DD7079C1... |
PowerShellCorpus/Github/svendewindt_azure/MasterAxTest/AzureDeploy/DSC/All Resources/xRemoteDesktopAdmin/Examples/ExampleConfiguration-RemoteDesktopAdminWithUnEncryptedPassword.ps1 | ExampleConfiguration-RemoteDesktopAdminWithUnEncryptedPassword.ps1 | # The configuration data section specifies to allow using a plain text stored password
$ConfigData = @{
AllNodes = @(
@{
NodeName="DSCnode1";
PSDscAllowPlainTextPassword = $true
}
)}
Configuration AllowRemoteDesktopAdminConnections
{
$password... |
PowerShellCorpus/Github/svendewindt_azure/MasterAxTest/AzureDeploy/DSC/All Resources/xOU/Examples/xOUSample.ps1 | xOUSample.ps1 | # Requires a certificate to have been set up that can be used to encrypt and decrypt credentials.
Param(
[Parameter(Position=0, Mandatory=$True, HelpMessage='Specify the NodeName for the install e.g. TESTSVR01')]
[String] $NodeName
)
# Get the certificate that will be used to encrypt and decrypt credentials.
#... |
PowerShellCorpus/Github/svendewindt_azure/MasterAxTest/AzureDeploy/DSC/All Resources/xOU/IntegrationTests/MSFT_xADOrganizationalUnit_IntegrationTests.ps1 | MSFT_xADOrganizationalUnit_IntegrationTests.ps1 | $script:domainDn = (Get-ADDomain).DistinguishedName
$script:testOuName = "testou"
$script:testOuDescription = "description"
$script:testOuSecondDescription = "second description"
$script:credential = New-Object System.Management.Automation.PSCredential("$domainName\Administrator", (ConvertTo-SecureString "Passw0rd1... |
PowerShellCorpus/Github/svendewindt_azure/MasterAxTest/AzureDeploy/DSC/All Resources/cFileShare/Examples/Sample - CreateMultipleShares.ps1 | Sample - CreateMultipleShares.ps1 | Configuration CreateMultipleShares
{
Import-DscResource -ModuleName cFileShare
node [target server name]
{
cCreateFileShare CreateShare
{
ShareName = '[share name]'
Path = '[folder path]'
Ensure = 'Present'
}
cCreateF... |
PowerShellCorpus/Github/svendewindt_azure/MasterAxTest/AzureDeploy/DSC/All Resources/cFileShare/Examples/Sample - CreateDropShare.ps1 | Sample - CreateDropShare.ps1 | Configuration CreateDropShare
{
Import-DscResource -ModuleName cFileShare
node [target server name]
{
cCreateFileShare CreateShare
{
ShareName = '[share name]'
Path = '[folder path]'
Ensure = 'Present'
}
cSetSharePerm... |
PowerShellCorpus/Github/svendewindt_azure/MasterAxTest/AzureDeploy/DSC/All Resources/cFileShare/Examples/Sample - AlterPermissions.ps1 | Sample - AlterPermissions.ps1 | Configuration AlterPermissions
{
Import-DscResource -ModuleName cFileShare
node [target server name]
{
cSetSharePermissions SetPermissions
{
ShareName = '[Share name]'
Ensure = 'Absent'
FullAccessUsers = @('[user 1]')
... |
PowerShellCorpus/Github/svendewindt_azure/MasterAxTest/AzureDeploy/DSC/All Resources/cFileShare/ResourceDesignerScripts/Generate_VSAR_cFileShare_Schema.ps1 | Generate_VSAR_cFileShare_Schema.ps1 | #This creates the definition for the resource
#The share to create
$ShareName = New-xDscResourceProperty -Name ShareName -Type String -Attribute Key
#The path where the folder that maps to the share should be created
$Path = New-xDscResourceProperty -Name Path -Type String -Attribute Required
#Identify ... |
PowerShellCorpus/Github/svendewindt_azure/MasterAxTest/AzureDeploy/DSC/All Resources/cFileShare/Unit Tests/VSAR_cSetSharePermissions_UnitTests.ps1 | VSAR_cSetSharePermissions_UnitTests.ps1 | #Unit tests for VSAR_cSetSharePermissions
Import-Module "C:\Program Files\WindowsPowerShell\Modules\cFileShare\DSCResources\VSAR_cSetSharePermissions"
#Variable Declarations
$ShareName = "TestShare"
$Users = @("[domain]\[user1]", "[domain]\[user2]")
$Path = "C:\Test"
$User1 = "[domain]\[user1]"
$User2 = "[doma... |
PowerShellCorpus/Github/svendewindt_azure/MasterAxTest/AzureDeploy/DSC/All Resources/cFileShare/Unit Tests/VSAR_cCreateFileShare_UnitTests.ps1 | VSAR_cCreateFileShare_UnitTests.ps1 | #Unit tests for VSAR_cCreateFileShare
Import-Module "C:\Program Files\WindowsPowerShell\Modules\cFileShare\DSCResources\VSAR_cCreateFileShare"
#Variable Declarations
$ShareName = "TestShare"
$Path = "C:\Test"
$PassCounter = 0
$FailCounter = 0
##############################
#
# Tests for Get-TargetResourc... |
PowerShellCorpus/Github/svendewindt_azure/MasterAxTest/AzureDeploy/DSC/All Resources/xSCDPM/Examples/SCDPM-MultiInstance.ps1 | SCDPM-MultiInstance.ps1 | #requires -Version 5
Configuration DPM
{
Import-DscResource -Module xDismFeature
Import-DscResource -Module xSqlServer
Import-DscResource -Module xSCDPM
# Set role and instance variables
$Roles = $AllNodes.Roles | Sort-Object -Unique
foreach($Role in $Roles)
{
$Servers ... |
PowerShellCorpus/Github/svendewindt_azure/MasterAxTest/AzureDeploy/DSC/All Resources/xSCDPM/Examples/SCDPM-SingleServer-TP.ps1 | SCDPM-SingleServer-TP.ps1 | #requires -Version 5
Configuration DPM
{
Import-DscResource -Module xDismFeature
Import-DscResource -Module xSqlServer
Import-DscResource -Module xSCDPM
# Set role and instance variables
$Roles = $AllNodes.Roles | Sort-Object -Unique
foreach($Role in $Roles)
{
$Servers ... |
PowerShellCorpus/Github/svendewindt_azure/MasterAxTest/AzureDeploy/DSC/All Resources/xSCDPM/Examples/SCDPM-SingleServer.ps1 | SCDPM-SingleServer.ps1 | #requires -Version 5
Configuration DPM
{
Import-DscResource -Module xDismFeature
Import-DscResource -Module xSqlServer
Import-DscResource -Module xSCDPM
# Set role and instance variables
$Roles = $AllNodes.Roles | Sort-Object -Unique
foreach($Role in $Roles)
{
$Servers ... |
PowerShellCorpus/Github/svendewindt_azure/MasterAxTest/AzureDeploy/DSC/All Resources/xSCDPM/Examples/SCDPM-SeperateSQL-TP.ps1 | SCDPM-SeperateSQL-TP.ps1 | #requires -Version 5
Configuration DPM
{
Import-DscResource -Module xDismFeature
Import-DscResource -Module xSqlServer
Import-DscResource -Module xSCDPM
# Set role and instance variables
$Roles = $AllNodes.Roles | Sort-Object -Unique
foreach($Role in $Roles)
{
$Servers ... |
PowerShellCorpus/Github/svendewindt_azure/MasterAxTest/AzureDeploy/DSC/All Resources/xSCDPM/Examples/SCDPM-MultiInstance-TP.ps1 | SCDPM-MultiInstance-TP.ps1 | #requires -Version 5
Configuration DPM
{
Import-DscResource -Module xDismFeature
Import-DscResource -Module xSqlServer
Import-DscResource -Module xSCDPM
# Set role and instance variables
$Roles = $AllNodes.Roles | Sort-Object -Unique
foreach($Role in $Roles)
{
$Servers ... |
PowerShellCorpus/Github/svendewindt_azure/MasterAxTest/AzureDeploy/DSC/All Resources/xSCDPM/Examples/SCDPM-SeperateSQL.ps1 | SCDPM-SeperateSQL.ps1 | #requires -Version 5
Configuration DPM
{
Import-DscResource -Module xDismFeature
Import-DscResource -Module xSqlServer
Import-DscResource -Module xSCDPM
# Set role and instance variables
$Roles = $AllNodes.Roles | Sort-Object -Unique
foreach($Role in $Roles)
{
$Servers ... |
PowerShellCorpus/Github/svendewindt_azure/MasterAxTest/AzureDeploy/DSC/All Resources/xInternetExplorerHomePage/Examples/SetIEhomePage.ps1 | SetIEhomePage.ps1 | #---------------------------------------------------------------------------------
#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... |
PowerShellCorpus/Github/svendewindt_azure/MasterAxTest/AzureDeploy/DSC/All Resources/xWordPress/DscResources/MSFT_xWordPressSite/xWordPressSite.ps1 | xWordPressSite.ps1 | # Sample script to create the template or update the Wordpress Resource
# Resource Details
# Friendly name of the resource:
$friendlyName = "xWordPressSite"
# Name of the resource:
$resourceName = "MSFT_$friendlyName"
# Class Version of the resource:
$classVersion = "1.0.0"
# Various Paths
$diff = join-... |
PowerShellCorpus/Github/svendewindt_azure/MasterAxTest/AzureDeploy/DSC/All Resources/xWordPress/samples/WordPressConfigurationTemplate.ps1 | WordPressConfigurationTemplate.ps1 | # Generate a WordPress configuration base on the supplied parameters
# and returns it as a string.
param
(
[Parameter(Mandatory = $true)]
[string] $WordPressDatabase,
[Parameter(Mandatory = $true)]
[string] $WordPressUserName,
[Parameter(Mandatory = $true)]
[... |
PowerShellCorpus/Github/svendewindt_azure/MasterAxTest/AzureDeploy/DSC/All Resources/xWordPress/samples/InstallRequiredModules.ps1 | InstallRequiredModules.ps1 | # This Script installs the required modules for the WordPress Sample
# It uses the PowerShell Resource Gallery, see https://msconfiggallery.cloudapp.net/
# This requires WMF 5. If you don't have WMF 5, Please install the modules manually.
Write-Host "Installing required modules..."
Install-Module xWebAdministrat... |
PowerShellCorpus/Github/svendewindt_azure/MasterAxTest/AzureDeploy/DSC/All Resources/xWordPress/samples/SingleNodeEndToEndWordPress.ps1 | SingleNodeEndToEndWordPress.ps1 | # This configuration configures a Basic WordPress Site
# It requires xPhp, xMySql, xWordPress, and xWebAdministration
# Please review the note about the FQDN variable and
# about the URLs, they may need to be updated.
# ********* NOTE ***********
# If you are not targetting the local machine,
# or this does no... |
PowerShellCorpus/Github/svendewindt_azure/MasterAxTest/AzureDeploy/DSC/All Resources/xWindowsRestore/Examples/ConfigureSystemRestore.ps1 | ConfigureSystemRestore.ps1 | #---------------------------------------------------------------------------------
#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... |
PowerShellCorpus/Github/svendewindt_azure/MasterAxTest/AzureDeploy/DSC/All Resources/xWindowsRestore/Examples/CreateSystemRestorePoint.ps1 | CreateSystemRestorePoint.ps1 | #---------------------------------------------------------------------------------
#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... |
PowerShellCorpus/Github/svendewindt_azure/MasterAxTest/AzureDeploy/DSC/All Resources/xTimeZone/Example/SetTimeZone.ps1 | SetTimeZone.ps1 | #---------------------------------------------------------------------------------
#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... |
PowerShellCorpus/Github/svendewindt_azure/MasterAxTest/AzureDeploy/DSC/All Resources/xWebAdministration/DSCResources/MSFT_xIisModule/xIisModuleDesigner.ps1 | xIisModuleDesigner.ps1 | $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 $origin... |
PowerShellCorpus/Github/svendewindt_azure/MasterAxTest/AzureDeploy/DSC/All Resources/xWebAdministration/Examples/Sample_xWebsite_NewWebsiteFromConfigurationData.ps1 | Sample_xWebsite_NewWebsiteFromConfigurationData.ps1 | Configuration Sample_xWebsite_FromConfigurationData
{
# Import the module that defines custom resources
Import-DscResource -Module xWebAdministration
# Dynamically find the applicable nodes from configuration data
Node $AllNodes.where{$_.Role -eq "Web"}.NodeName
{
# Install the IIS ... |
PowerShellCorpus/Github/svendewindt_azure/MasterAxTest/AzureDeploy/DSC/All Resources/xWebAdministration/Examples/Sample_xWebsite_NewWebsite.ps1 | Sample_xWebsite_NewWebsite.ps1 | configuration Sample_xWebsite_NewWebsite
{
param
(
# Target nodes to apply the configuration
[string[]]$NodeName = 'localhost',
# Name of the website to create
[Parameter(Mandatory)]
[ValidateNotNullOrEmpty()]
[String]$WebSiteName,
# Source P... |
PowerShellCorpus/Github/svendewindt_azure/MasterAxTest/AzureDeploy/DSC/All Resources/xWebAdministration/Examples/Sample_xWebsite_RemoveDefault.ps1 | Sample_xWebsite_RemoveDefault.ps1 | configuration Sample_xWebsite_StopDefault
{
param
(
# Target nodes to apply the configuration
[string[]]$NodeName = 'localhost'
)
# Import the module that defines custom resources
Import-DscResource -Module xWebAdministration
Node $NodeName
{
# Install ... |
PowerShellCorpus/Github/svendewindt_azure/MasterAxTest/AzureDeploy/DSC/All Resources/xSqlPs/Samples/sql101.ps1 | sql101.ps1 | # Configuration to install Sql server database engine and management tools.
#
# A. Prepare a local self signed certificate with the following steps:
# 1. Get MakeCert.exe if you don't have. ( MakeCert.exe is shipped with windows SDK: http://msdn.microsoft.com/en-us/windows/desktop/bg162891.aspx)
# 2. Open console ... |
PowerShellCorpus/Github/svendewindt_azure/MasterAxTest/AzureDeploy/DSC/All Resources/xReleaseManagement/DSCResources/MSFT_xTokenize/MSFT_xTokenize.Tests.ps1 | MSFT_xTokenize.Tests.ps1 | $module = (Split-Path -Leaf $PSCommandPath).Replace(".Tests.ps1", ".psm1")
$code = Get-Content $module | Out-String
# You have to comment out the Export-ModuleMember line or you will get an
# error.
$code = $code -replace "Export-ModuleMember", "# Export-ModuleMember"
# Load the contents of the module into memo... |
PowerShellCorpus/Github/svendewindt_azure/MasterAxTest/AzureDeploy/DSC/All Resources/xReleaseManagement/Examples/xTokenize_NoTokenFile.ps1 | xTokenize_NoTokenFile.ps1 | ############################################################
# DSC Tokenization Example - No Token File
#
# This script supports using the technique described in this
# blog post http://tinyurl.com/tokenization which uses the
# XML transform functionality of Web Deploy to create a
# tokenized version of the web... |
PowerShellCorpus/Github/svendewindt_azure/MasterAxTest/AzureDeploy/DSC/All Resources/xReleaseManagement/Examples/xTokenize_TokenFile.ps1 | xTokenize_TokenFile.ps1 | ############################################################
# DSC Tokenization Example - With Token File
#
# This script supports using the technique where you simply
# create a copy of your web.config and add .token to the file
# extension. This will result in two files in your target
# folder (web.config and... |
PowerShellCorpus/Github/svendewindt_azure/MasterAxTest/AzureDeploy/DSC/All Resources/xReleaseManagement/Tests/ResourceDesignerTests.ps1 | ResourceDesignerTests.ps1 | # Hi Donovan – I just spoke with the lead Dev, and what’s broken is
# Test-xDscResource.
# Apparently, Hashtable is supported as an embedded instance.
#
# A bug has been filed on this, please continue to use it and we’ll ignore
# that specific error in the test tool.
"Testing DSC Resource"
"Test-xDscResource... |
PowerShellCorpus/Github/svendewindt_azure/MasterAxTest/AzureDeploy/DSC/All Resources/xWindowsUpdate/Examples/Sample_xWindowsUpdateFromPath.ps1 | Sample_xWindowsUpdateFromPath.ps1 | <#
# 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 DownloadHotfixFromPath
{
xHotfix m1
{
Path = "c:\WindowsBlue-KB2937982-x64.msu"
Id = "KB2937982"
... |
PowerShellCorpus/Github/svendewindt_azure/MasterAxTest/AzureDeploy/DSC/All Resources/xWindowsUpdate/Examples/Sample_xWindowsUpdateFromURI.ps1 | Sample_xWindowsUpdateFromURI.ps1 | <#
# 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 DownloadHotfixFromURI
{
xHotfix m1
{
Uri = "http://hotfixv4.microsoft.com/Microsoft%20Office%20SharePoint%20Serv... |
PowerShellCorpus/Github/svendewindt_azure/MasterAxTest/AzureDeploy/DSC/All Resources/xNetworking/Examples/Sample_xIPAddress_FixedValue.ps1 | Sample_xIPAddress_FixedValue.ps1 | configuration Sample_xIPAddress_FixedValue
{
param
(
[string[]]$NodeName = 'localhost'
)
Import-DscResource -Module xNetworking
Node $NodeName
{
xIPAddress NewIPAddress
{
IPAddress = "2001:4898:200:7:6c71:a102:ebd8:f482"
Interf... |
PowerShellCorpus/Github/svendewindt_azure/MasterAxTest/AzureDeploy/DSC/All Resources/xNetworking/Examples/Sample_xDnsServerAddress.ps1 | Sample_xDnsServerAddress.ps1 | configuration Sample_xDnsServerAddress
{
param
(
[string[]]$NodeName = 'localhost',
[Parameter(Mandatory)]
[string]$DnsServerAddress,
[Parameter(Mandatory)]
[string]$InterfaceAlias,
[ValidateSet("IPv4","IPv6")]
[string]$AddressFamily = 'IPv... |
PowerShellCorpus/Github/svendewindt_azure/MasterAxTest/AzureDeploy/DSC/All Resources/xNetworking/Examples/Sample_xFirewall_DisableAccessToApplication.ps1 | Sample_xFirewall_DisableAccessToApplication.ps1 | # DSC configuration for Firewall
#
configuration Sample_xFirewall_AddFirewallRuleToNewGroup
{
param
(
[string[]]$NodeName = 'localhost'
)
Import-DSCResource -ModuleName xNetworking
Node $NodeName
{
xFirewall Firewall
{
Name ... |
PowerShellCorpus/Github/svendewindt_azure/MasterAxTest/AzureDeploy/DSC/All Resources/xNetworking/Examples/Sample_xFirewall_AddFirewallRule.ps1 | Sample_xFirewall_AddFirewallRule.ps1 | # DSC configuration for Firewall
configuration Sample_xFirewall_AddFirewallRule
{
param
(
[string[]]$NodeName = 'localhost'
)
Import-DSCResource -ModuleName xNetworking
Node $NodeName
{
xFirewall Firewall
{
Name = "NotePadFi... |
PowerShellCorpus/Github/svendewindt_azure/MasterAxTest/AzureDeploy/DSC/All Resources/xNetworking/Examples/Sample_xIPAddress_Parameterized.ps1 | Sample_xIPAddress_Parameterized.ps1 | configuration Sample_xIPAddress_Parameterized
{
param
(
[string[]]$NodeName = 'localhost',
[Parameter(Mandatory)]
[string]$IPAddress,
[Parameter(Mandatory)]
[string]$InterfaceAlias,
[Parameter(Mandatory)]
[string]$DefaultGateway,
... |
PowerShellCorpus/Github/svendewindt_azure/MasterAxTest/AzureDeploy/DSC/All Resources/xNetworking/Examples/Sample_xFirewall_AddFirewallRuleToExistingGroup.ps1 | Sample_xFirewall_AddFirewallRuleToExistingGroup.ps1 | # DSC configuration for Firewall
#
configuration Sample_xFirewall_AddFirewallRuleToExistingGroup
{
param
(
[string[]]$NodeName = 'localhost'
)
Import-DSCResource -ModuleName xNetworking
Node $NodeName
{
xFirewall Firewall
{
Name ... |
PowerShellCorpus/Github/svendewindt_azure/MasterAxTest/AzureDeploy/DSC/All Resources/xNetworking/Examples/Sample_xFirewall_AddFirewallRuleToNewGroup.ps1 | Sample_xFirewall_AddFirewallRuleToNewGroup.ps1 | # DSC configuration for Firewall
configuration Sample_xFirewall_AddFirewallRuleToNewGroup
{
param
(
[string[]]$NodeName = 'localhost'
)
Import-DSCResource -ModuleName xNetworking
Node $NodeName
{
xFirewall Firewall
{
Name = ... |
PowerShellCorpus/Github/versionone_VersionOne.Integration.TFS.Scripts/sandbox/New-TeamProject.ps1 | New-TeamProject.ps1 | param (
$CollectionUri = "http://localhost:8080/tfs/DefaultCollection",
$ProjectName = "AnotherTeamProject",
$ProcessTemplateName = "MSF for Agile Software Development 2013"
)
if (-not $Env:TFSPowerToolDir) {
Invoke-Reboot
}
$TfptExe = Join-Path -Path $Env:TFSPowerToolDir -ChildPath tfpt.... |
PowerShellCorpus/Github/versionone_VersionOne.Integration.TFS.Scripts/sandbox/Install-VersionOne.ps1 | Install-VersionOne.ps1 | param (
$instanceName,
$authMode,
$dbName
)
$params = "-Quiet:2 -DbName:$dbName -DbServer:(local) -AuthMode:$authMode -LogFile:$instanceName.log $instanceName"
Write-Host "With: $params"
cinst VersionOne -source https://www.myget.org/F/versionone/ -installArgs $params -override -force
Write-Host "... |
PowerShellCorpus/Github/versionone_VersionOne.Integration.TFS.Scripts/sandbox/Install-TfsListener.ps1 | Install-TfsListener.ps1 | param (
$tfs_listener_remote = "https://portalvhdsw36vjbsgqb26p.blob.core.windows.net/installers/VersionOne.TFSListener.Installer.msi"
)
$tfs_computer_name = "$env:computername"
$local_path = "Temp - $tfs_computer_name"
$tfs_local_path = "C:\$local_path"
$tfs_listener = "$tfs_local_path\VersionOne.TFSListen... |
PowerShellCorpus/Github/versionone_VersionOne.Integration.TFS.Scripts/sandbox/New-SampleData.ps1 | New-SampleData.ps1 | param (
$tfs_team_project_collection = "http://localhost:8080/tfs",
$tfs_team_project = "AnotherTeamProject",
$tfs_build_name = "Another Build",
$tfs_build_description = "Build description.",
$tfs_workspace = "AnotherWorkspace",
$tfs_git_repository = "https://github.com/lremedi/Automation.... |
PowerShellCorpus/Github/versionone_VersionOne.Integration.TFS.Scripts/sandbox/Install-Tfs.ps1 | Install-Tfs.ps1 | cinst tfsexpress.standard -Source https://www.myget.org/F/versionone/
cinst tfsexpress.build -Source https://www.myget.org/F/versionone/ |
PowerShellCorpus/Github/versionone_VersionOne.Integration.TFS.Scripts/sandbox/Configure-TfsListener.ps1 | Configure-TfsListener.ps1 | #servicetfs20132.cloudapp.net
Param(
$azure_service_name="servicetfs20132",
$Url="https://www14.v1host.com/v1sdktesting/",
$UserName="",
$Password="",
$TfsUrl="http://$azure_service_name.cloudapp.net:8080/tfs/DefaultCollection/",
$TfsUser="",
$TfsPassword="",
$IsWindowsIntegrate... |
PowerShellCorpus/Github/versionone_VersionOne.Integration.TFS.Scripts/sandbox/build.ps1 | build.ps1 | Param(
[string]$vm_username="v1deploy",
[string]$vm_password="Versi0n1.c26nu",
[string]$vm_name="tfs2013vm",
[string]$new="true",
[string]$install_tfs="true",
[string]$install_versionone_v1auth="false",
[string]$install_versionone_wauth="false",
[string]$install_tfs_sampledata="t... |
PowerShellCorpus/Github/fintalex_OOP/CodeFirstNewDatabaseSample/packages/EntityFramework.6.1.3/tools/init.ps1 | init.ps1 | param($installPath, $toolsPath, $package, $project)
if (Get-Module | ?{ $_.Name -eq 'EntityFramework' })
{
Remove-Module EntityFramework
}
Import-Module (Join-Path $toolsPath EntityFramework.psd1)
# SIG # Begin signature block
# MIIa4AYJKoZIhvcNAQcCoIIa0TCCGs0CAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB
# gjcCAQ... |
PowerShellCorpus/Github/fintalex_OOP/CodeFirstNewDatabaseSample/packages/EntityFramework.6.1.3/tools/install.ps1 | install.ps1 | param($installPath, $toolsPath, $package, $project)
Initialize-EFConfiguration $project
Add-EFProvider $project 'System.Data.SqlClient' 'System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer'
Write-Host
Write-Host "Type 'get-help EntityFramework' to see all available Entity Framework comma... |
PowerShellCorpus/Github/fintalex_OOP/DBDemo/packages/EntityFramework.6.1.3/tools/init.ps1 | init.ps1 | param($installPath, $toolsPath, $package, $project)
if (Get-Module | ?{ $_.Name -eq 'EntityFramework' })
{
Remove-Module EntityFramework
}
Import-Module (Join-Path $toolsPath EntityFramework.psd1)
# SIG # Begin signature block
# MIIa4AYJKoZIhvcNAQcCoIIa0TCCGs0CAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB
# gjcCAQ... |
PowerShellCorpus/Github/fintalex_OOP/DBDemo/packages/EntityFramework.6.1.3/tools/install.ps1 | install.ps1 | param($installPath, $toolsPath, $package, $project)
Initialize-EFConfiguration $project
Add-EFProvider $project 'System.Data.SqlClient' 'System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer'
Write-Host
Write-Host "Type 'get-help EntityFramework' to see all available Entity Framework comma... |
PowerShellCorpus/Github/fintalex_OOP/SandersonFirstApp/packages/Microsoft.AspNet.Providers.LocalDB.1.1/tools/Install.ps1 | Install.ps1 | param($installPath, $toolsPath, $package, $project)
try {
# Set up variables
$timestamp = (Get-Date).ToString('yyyyMMddHHmmss')
$projectName = [IO.Path]::GetFileName($project.ProjectName.Trim([IO.PATH]::DirectorySeparatorChar, [IO.PATH]::AltDirectorySeparatorChar))
$catalogName = "aspnet-$project... |
PowerShellCorpus/Github/fintalex_OOP/SandersonFirstApp/packages/Modernizr.2.6.2/Tools/uninstall.ps1 | uninstall.ps1 | param($installPath, $toolsPath, $package, $project)
. (Join-Path $toolsPath common.ps1)
# Update the _references.js file
Remove-Reference $scriptsFolderProjectItem $modernizrFileNameRegEx |
PowerShellCorpus/Github/fintalex_OOP/SandersonFirstApp/packages/Modernizr.2.6.2/Tools/install.ps1 | install.ps1 | param($installPath, $toolsPath, $package, $project)
. (Join-Path $toolsPath common.ps1)
if ($scriptsFolderProjectItem -eq $null) {
# No Scripts folder
Write-Host "No Scripts folder found"
exit
}
# Update the _references.js file
AddOrUpdate-Reference $scriptsFolderProjectItem $modernizrFileName... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.