text stringlengths 9 39.2M | dir stringlengths 25 226 | lang stringclasses 163
values | created_date timestamp[s] | updated_date timestamp[s] | repo_name stringclasses 751
values | repo_full_name stringclasses 752
values | star int64 1.01k 183k | len_tokens int64 1 18.5M |
|---|---|---|---|---|---|---|---|---|
```powershell
$labname = 'FailOverLab1'
New-LabDefinition -Name $labname -DefaultVirtualizationEngine HyperV
Add-LabDomainDefinition -Name contoso.com -AdminUser Install -AdminPassword Somepass1
Set-LabInstallationCredential -Username Install -Password Somepass1
Add-LabVirtualNetworkDefinition -Name $labname -Addres... | /content/code_sandbox/LabSources/SampleScripts/Scenarios/Failover Clustering 1.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 494 |
```powershell
<#
.SYNOPSIS
Deploy Hyper-V lab and connect VMs to Azure
.DESCRIPTION
Deploys a Hyper-V lab with Domain Services, Certificate Services, SQL Server and web servers
and connects VMs using Azure Arc.
Prerequisites:
- Ensure that the HybridCompute provider is registered: Get-AzResourcePr... | /content/code_sandbox/LabSources/SampleScripts/Scenarios/AzureArcConnectedHyperV.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 1,455 |
```powershell
New-LabDefinition -Name ScomDev -DefaultVirtualizationEngine HyperV
$PSDefaultParameterValues = @{
'Add-LabMachineDefinition:OperatingSystem' = 'Windows Server 2019 Datacenter (Desktop Experience)'
'Add-LabMachineDefinition:DomainName' = 'contoso.com'
'Add-LabMachineDefinition:Memory' ... | /content/code_sandbox/LabSources/SampleScripts/Scenarios/SCOMDistributed.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 501 |
```powershell
<#
In this scenario AutomatedLab builds a lab inside a lab. Thanks to nested virtualization in Hyper-V and Azure,
this can be done on a Windows Server 2016 or Windows 10 host machine.
This lab contains:
- ADDC1 with the role root domain controller
- AL1, the virtualized host machine on Windows Ser... | /content/code_sandbox/LabSources/SampleScripts/Scenarios/Lab in a Box 2 - Azure.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 1,159 |
```powershell
<#
This lab script serves the purpose of showing you how to create and connect an on-premises to an Azure lab.
You will need an Azure subscription.
#>
# Define your labs. Make sure that the virtual network address spaces do not overlap.
$labs = @(
@{
LabName = 'SourceNameHere'
Addres... | /content/code_sandbox/LabSources/SampleScripts/Scenarios/Hybrid Environment HyperV and Azure 1.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 1,046 |
```powershell
#Lab for working with the Advanced Group Policy Management Console (AGMP)
#The following files are required:
# - agpm_403_server_amd64.exe
# - agpm_403_client_amd64.exe
# - agpm4.0-Server-KB3127165-x64.exe
New-LabDefinition -Name AgpmLab10 -DefaultVirtualizationEngine HyperV #Azure
#Add-LabAzureSubscrip... | /content/code_sandbox/LabSources/SampleScripts/Scenarios/AGPM Lab 1.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 1,544 |
```powershell
<#
This demo creates a failover cluster with 2 nodes, and 2 shared disks
that can be added to cluster roles.
#>
$labname = 'FailOverLab2'
New-LabDefinition -Name $labname -DefaultVirtualizationEngine HyperV
Add-LabDomainDefinition -Name contoso.com -AdminUser Install -AdminPassword Somepass1
Set-LabIns... | /content/code_sandbox/LabSources/SampleScripts/Scenarios/Failover Clustering 2 (Shared Storage).ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 433 |
```powershell
<#
.SYNOPSIS
An AutomatedLab script for Configuration Manager 2002 with support for installing updates.
.DESCRIPTION
An AutomatedLab script for Configuration Manager 2002 with support for installing updates.
.PARAMETER LabName
The name of the AutomatedLab lab created by this script.
.PARAMETER... | /content/code_sandbox/LabSources/SampleScripts/Scenarios/CM-2002.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 5,622 |
```powershell
<#
.SYNOPSIS
Deploy one Hyper-V and one Azure lab, connect labs, onboard VMs to Arc
.DESCRIPTION
Deploys one Hyper-V and one Azure lab with
- Domain Services
- Web server
- File Server
and connects VMs using Azure Arc.
Prerequisites:
- Ensure that the HybridCompute provi... | /content/code_sandbox/LabSources/SampleScripts/Scenarios/HybridHyperVAzureArc.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 1,989 |
```powershell
#Requires -Module AutomatedLab
param
(
[AutomatedLab.VirtualizationHost]
$Engine = 'HyperV',
[string]
$LabName = 'SCVMM'
)
New-LabDefinition -Name $LabName -DefaultVirtualizationEngine $Engine
$PSDefaultParameterValues = @{
'Add-LabMachineDefinition:Network' = $LabName
'Add-LabMa... | /content/code_sandbox/LabSources/SampleScripts/Scenarios/SCVMM2022.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 807 |
```powershell
<#
.DESCRIPTION
This script deploys a Hyper-V VM using nested virtualization and deploys a build agent on it, connected to an Azure DevOps organisation's agent pool.
This lab includes a reference to Azure DevOps in addition to the build agent
#>
param
(
# Your user name on Azure DevOps, or an orga... | /content/code_sandbox/LabSources/SampleScripts/Scenarios/AzureDevOpsCloudConnection.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 394 |
```powershell
$labName = 'DscReleasePipeline'
#your_sha256_hash----------------------------------------------------
#----------------------- CHANGING ANYTHING BEYOND THIS LINE SHOULD NOT BE REQUIRED ----------------------------------
#----------------------- + EXCEPT FOR THE LINES STARTING WITH: REMOVE THE COMMENT TO ... | /content/code_sandbox/LabSources/SampleScripts/Scenarios/DSC With Release Pipeline.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 1,411 |
```powershell
New-LabDefinition -Name TFS2017 -DefaultVirtualizationEngine HyperV
$PSDefaultParameterValues = @{
'Add-LabMachineDefinition:OperatingSystem' = 'Windows Server 2016 Datacenter (Desktop Experience)'
'Add-LabMachineDefinition:DomainName' = 'contoso.com'
'Add-LabMachineDefinition:Memory' ... | /content/code_sandbox/LabSources/SampleScripts/Scenarios/TFS 2017 Deployment.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 468 |
```powershell
[CmdletBinding()]
param
(
# Select platform, defaults to HyperV
[AutomatedLab.VirtualizationHost]
$Hypervisor = 'HyperV'
)
New-LabDefinition -Name RDS -DefaultVirtualizationEngine $Hypervisor
Add-LabDomainDefinition -Name contoso.com -AdminUser Install -AdminPassword Somepass1
Set-LabInstall... | /content/code_sandbox/LabSources/SampleScripts/Scenarios/RemoteDesktopServices.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 404 |
```powershell
$labName = 'ADMultiForest'
#create an empty lab template and define where the lab XML files and the VMs will be stored
New-LabDefinition -Name $labName -DefaultVirtualizationEngine HyperV
#and the domain definition with the domain admin account
Add-LabDomainDefinition -Name forest1.net -AdminUser Instal... | /content/code_sandbox/LabSources/SampleScripts/Scenarios/Multi-AD Forest with Trusts.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 747 |
```powershell
[CmdletBinding()]
param
(
[string]
$DomainName = 'contoso.com',
[Parameter(Mandatory)]
[pscredential]
$DomainJoinCredential,
# The name of the adapter that can be used for the external VSwitch
[string]
$ExternalAdapterName = 'Ethernet'
)
New-LabDefinition -Name ExDomLab ... | /content/code_sandbox/LabSources/SampleScripts/Scenarios/ExistingDomainLab.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 518 |
```powershell
<#
In this scenario AutomatedLab builds a lab inside a lab. Thanks to nested virtualization in Hyper-V and Azure,
this can be done on a Windows Server 2016 or Windows 10 host machine.
This lab contains:
- ADDC1 with the role root domain controller. This machine also has the... | /content/code_sandbox/LabSources/SampleScripts/Scenarios/Lab in a Box 1 - HyperV.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 955 |
```powershell
<#
.SYNOPSIS
An AutomatedLab script for Configuration Manager 2103 with support for installing updates.
.DESCRIPTION
An AutomatedLab script for Configuration Manager 2103 with support for installing updates.
.PARAMETER LabName
The name of the AutomatedLab lab created by this script.
.PARAMETER... | /content/code_sandbox/LabSources/SampleScripts/Scenarios/CM-2103.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 5,616 |
```powershell
<#
This sample creates a lab with multiple networks which are connected
using Routing role VMs and their shared network "RoutingPlane".
Clients on each network can communicate with each other.
This also enables advanced scenarios that call Install-Lab -Routing
before deploying the Domains in order to te... | /content/code_sandbox/LabSources/SampleScripts/Scenarios/InternalRouting.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 596 |
```powershell
#This intro script is extending '03 Single domain-joined server.ps1'. An additional ISO is added to the lab which is required to install SQL Server 2014. The script makes
#use of the $PSDefaultParameterValues feature introduced in PowerShell version 4. Settings that are the same for all machines can be su... | /content/code_sandbox/LabSources/SampleScripts/Introduction/06 SQL Server and client, domain joined.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 267 |
```powershell
#It couldn't be easier. These 3 lines install a lab with just a single Windows 10 machine.
#AL takes care of configuring network settings like creating a virtual switch and finding a suitable IP range.
New-LabDefinition -Name Win10 -DefaultVirtualizationEngine HyperV
Add-LabMachineDefinition -Name Client... | /content/code_sandbox/LabSources/SampleScripts/Introduction/01 Single Win10 Client.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 87 |
```powershell
# The is similar to the '05 SQL Server and client, domain joined.ps1' but installs an Exchange 2019 server instead
# of a SQL Server.
# IMPORTANT NOTE: You must have Exchange 2019 ISO or CU already available. Microsoft has limited Exchange 2019 access to VL & MSDN
# so it is not publicly available for do... | /content/code_sandbox/LabSources/SampleScripts/Introduction/07.3 Exchange 2019 Server and client, domain joined.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 321 |
```powershell
#This intro script is extending '03 Single domain-joined server.ps1'. Two additional ISOs are added to the lab which are required to install
#Visual Studio 2015 and SQL Server 2014. After the lab is installed, AutomatedLab installs Redgate Relector on the DevClient1.
New-LabDefinition -Name LabDev1 -Defa... | /content/code_sandbox/LabSources/SampleScripts/Introduction/10 Development Client, domain joined (internet facing).ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 471 |
```powershell
#The is almost the same like '05 SQL Server and client, domain joined.ps1' but installs a Certificate Authority instead
#of a SQL Server. The CA is installed with standard settings. Customizing the CA installation will be shown later.
New-LabDefinition -Name Lab1CA1 -DefaultVirtualizationEngine HyperV
#... | /content/code_sandbox/LabSources/SampleScripts/Introduction/08 Standalone Root CA, Sub Ca domain joined.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 224 |
```powershell
#This intro script is pretty almost the same like the previous one. But this lab is connected to the internet over the external virtual switch.
#The IP addresses are assigned automatically like in the previous samples but AL also assignes the gateway and the DNS servers to all machines
#that are part of t... | /content/code_sandbox/LabSources/SampleScripts/Introduction/05 Single domain-joined server (internet facing).ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 319 |
```powershell
#The is almost the same like '07 Standalone Root CA, Sub Ca domain joined.ps1' but this adds a web server and requests
#a web sever certificate for SSL. This certificate is then used for the SSL binding.
New-LabDefinition -Name LabSsl1 -DefaultVirtualizationEngine HyperV
#defining default parameter valu... | /content/code_sandbox/LabSources/SampleScripts/Introduction/09 Web Servers with SSL certs, Root CA, domain joined.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 370 |
```powershell
#The is almost the same like '05 SQL Server and client, domain joined.ps1' but installs an Exchange 2016 server instead
#of a SQL Server.
#
# IMPORTANT NOTE: Make sure you have installed at least the CU KB3206632 before installing Exchange 2016, this is a requirement.
# Refer to the introduction script '1... | /content/code_sandbox/LabSources/SampleScripts/Introduction/07.2 Exchange 2016 Server and client, domain joined.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 472 |
```powershell
$labName = 'ADRES<SOME UNIQUE DATA>' #THIS NAME MUST BE GLOBALLY UNIQUE
$azureDefaultLocation = 'West Europe' #COMMENT OUT -DefaultLocationName BELOW TO USE THE FASTEST LOCATION
#setting addMemberServer to $true installes an additional server in the lab
$addMemberServer = $false
#your_sha256_hash------... | /content/code_sandbox/LabSources/SampleScripts/Workshops/ADRecoveryLab - Azure.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 1,440 |
```powershell
$labName = 'Kerberos101'
#your_sha256_hash----------------------------------------------------
#----------------------- CHANGING ANYTHING BEYOND THIS LINE SHOULD NOT BE REQUIRED ----------------------------------
#----------------------- + EXCEPT FOR THE LINES STARTING WITH: REMOVE THE COMMENT TO -------... | /content/code_sandbox/LabSources/SampleScripts/Workshops/Kerberos 101 Lab with Linux - HyperV.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 2,630 |
```powershell
$labName = 'POSH'
#your_sha256_hash----------------------------------------------------
#----------------------- CHANGING ANYTHING BEYOND THIS LINE SHOULD NOT BE REQUIRED ----------------------------------
#----------------------- + EXCEPT FOR THE LINES STARTING WITH: REMOVE THE COMMENT TO --------------... | /content/code_sandbox/LabSources/SampleScripts/Workshops/PowerShell Lab - HyperV.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 1,233 |
```powershell
$labName = 'POSH'
#your_sha256_hash----------------------------------------------------
#----------------------- CHANGING ANYTHING BEYOND THIS LINE SHOULD NOT BE REQUIRED ----------------------------------
#----------------------- + EXCEPT FOR THE LINES STARTING WITH: REMOVE THE COMMENT TO --------------... | /content/code_sandbox/LabSources/SampleScripts/Workshops/PowerShell Lab - HyperV with Internet.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 1,344 |
```powershell
$labName = 'POSH<SOME UNIQUE DATA>' #THIS NAME MUST BE GLOBALLY UNIQUE
$azureDefaultLocation = 'West Europe' #COMMENT OUT -DefaultLocationName BELOW TO USE THE FASTEST LOCATION
#your_sha256_hash----------------------------------------------------
#----------------------- CHANGING ANYTHING BEYOND THIS LI... | /content/code_sandbox/LabSources/SampleScripts/Workshops/PowerShell Lab - Azure.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 1,368 |
```batchfile
REPADMIN /viewlist * > DCs.txt
:: FOR /F "tokens=3" %%a IN (DCs.txt) DO ECHO dadasdads %%a
FOR /F "tokens=3" %%a IN (DCs.txt) DO CALL REPADMIN /SyncAll /AeP %%a
DEL DCs.txt
REPADMIN /ReplSum
``` | /content/code_sandbox/LabSources/Tools/RepAll.bat | batchfile | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 80 |
```html
<!DOCTYPE html>
<html lang="en" xmlns="path_to_url">
<head>
<meta charset="utf-8" />
<title>Azure Web Site created by AutomatedLab</title>
</head>
<body>
<h3>This Azure Web Site was created by AutomatedLab. Checkout the fastest way to get you lab deployed on Azure or Hyper-V</h3>
<img src="path... | /content/code_sandbox/LabSources/PostInstallationActivities/WebSiteDefaultContent/Default.html | html | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 101 |
```powershell
$labName = 'ADRecovery'
#setting addMemberServer to $true installes an additional server in the lab
$addMemberServer = $false
#setting createCheckpoint to $true creates a checkpoint of the whole lab after the deployment is finished
$createCheckpoint = $false
#your_sha256_hash---------------------------... | /content/code_sandbox/LabSources/SampleScripts/Workshops/ADRecoveryLab - HyperV.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 1,490 |
```powershell
function Get-ConfigSet
{
$class = Get-WmiObject -List -Namespace root\microsoft -Class MSReportServer_ConfigurationSetting -Recurse
Get-CimInstance -Namespace $class.__NAMESPACE -Class $class.Name
if ($class.__NAMESPACE -match '\\v(?<version>\d\d)\\*.')
{
$version = $Matches.versi... | /content/code_sandbox/LabSources/PostInstallationActivities/SqlServer/SetupSqlServerReportingServices.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 934 |
```powershell
function Install-NetFramework35
{
<#
.SYNOPSIS
Install-OSCNetFx3 is an advanced function which can be used to install .NET Framework 3.5 in Windows 8.
.DESCRIPTION
Install-OSCNetFx3 is an advanced function which can be used to install .NET Framework 3.5 in Windo... | /content/code_sandbox/LabSources/PostInstallationActivities/DotNet35Client/DotNet35Client.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 809 |
```powershell
#The file that contains the user information was created using [Spawner Data Generator path_to_url
#The column definition used is saved in the file 'SpawnerTableDefinition.txt'.
#To add a new column to the output file containing the user name again (Name -> SamAccountName) the following PowerShell comman... | /content/code_sandbox/LabSources/PostInstallationActivities/PrepareFirstChildDomain/New-ADLabAccounts 2.0.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 1,232 |
```batchfile
REPADMIN /viewlist * > DCs.txt
:: FOR /F "tokens=3" %%a IN (DCs.txt) DO ECHO dadasdads %%a
FOR /F "tokens=3" %%a IN (DCs.txt) DO CALL REPADMIN /SyncAll /AeP %%a
DEL DCs.txt
REPADMIN /ReplSum
PAUSE
``` | /content/code_sandbox/LabSources/PostInstallationActivities/PrepareRootDomain/RepAll.bat | batchfile | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 83 |
```powershell
Import-Module -Name ActiveDirectory
if (-not (Get-Command -Name Get-ADReplicationSite -ErrorAction SilentlyContinue))
{
Write-ScreenInfo 'The script "PrepareRootDomain.ps1" script runs only if the ADReplication cmdlets are available' -Type Warning
return
}
$password = "Password1"
$securePassword... | /content/code_sandbox/LabSources/PostInstallationActivities/PrepareRootDomain/PrepareRootDomain.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 677 |
```powershell
param
(
[string]$ComputerName,
[string]$CertificateThumbPrint,
[Parameter(Mandatory)]
[string]$RegistrationKey
)
Import-Module -Name xPSDesiredStateConfiguration, PSDesiredStateConfiguration
Configuration SetupDscPullServer
{
param
(
[string[]]$NodeName = 'localhost',
... | /content/code_sandbox/LabSources/PostInstallationActivities/SetupDscPullServer/SetupDscPullServerEdb.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 481 |
```powershell
#region Internals
#region Get-Type (helper function for creating generic types)
function Get-Type
{
param(
[Parameter(Position=0,Mandatory=$true)]
[string] $GenericType,
[Parameter(Position=1,Mandatory=$true)]
[string[]] $T
)
$T = $T -as [type[]]
try
{
$generic = [type]($GenericTyp... | /content/code_sandbox/LabSources/PostInstallationActivities/DnsAndTrustSetup/DnsAndTrustSetup.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 1,364 |
```powershell
param
(
[string]$ComputerName,
[string]$CertificateThumbPrint,
[Parameter(Mandatory)]
[string]$RegistrationKey,
[Parameter(Mandatory)]
[string]$SqlServer,
[Parameter(Mandatory)]
[string]$DatabaseName
)
Import-Module -Name xPSDesiredStateConfiguration, PSDesiredStateCon... | /content/code_sandbox/LabSources/PostInstallationActivities/SetupDscPullServer/SetupDscPullServerSql.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 687 |
```powershell
param
(
[string]$ComputerName,
[string]$CertificateThumbPrint,
[Parameter(Mandatory)]
[string]$RegistrationKey
)
Import-Module -Name xPSDesiredStateConfiguration, PSDesiredStateConfiguration
Configuration SetupDscPullServer
{
param
(
[string[]]$NodeName = 'localhost',
... | /content/code_sandbox/LabSources/PostInstallationActivities/SetupDscPullServer/SetupDscPullServerMdb.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 743 |
```powershell
Configuration "TestConfig$($env:COMPUTERNAME)"
{
Import-DscResource -ModuleName 'PSDesiredStateConfiguration'
Node localhost
{
File "TestFile$($env:COMPUTERNAME)"
{
Ensure = 'Present'
Type = 'File'
DestinationPath = "C:\DscTestFile_$($env:CO... | /content/code_sandbox/LabSources/PostInstallationActivities/SetupDscPullServer/DscTestConfig.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 154 |
```powershell
param(
[Parameter(Mandatory)]
[string[]] $PullServer,
[Parameter(Mandatory)]
[string[]] $RegistrationKey,
[bool]
$UseSsl = $true
)
[DSCLocalConfigurationManager()]
Configuration PullClient
{
param(
[Parameter(Mandatory)]
[string[]] $PullServer,
[Para... | /content/code_sandbox/LabSources/PostInstallationActivities/SetupDscClients/SetupDscClients.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 819 |
```powershell
param(
[Parameter(Mandatory)]
[string]$ComputerName,
[string]$OrganizationName
)
function Download-ExchangeSources
{
Write-ScreenInfo -Message 'Download Exchange 2019 requirements' -TaskStart
$downloadTargetFolder = "$labSources\ISOs"
Write-ScreenInfo -Message "Downloading Exch... | /content/code_sandbox/LabSources/CustomRoles/Exchange2019/HostStart.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 4,002 |
```powershell
param
(
[Parameter(Mandatory)]
[string]
$ComputerName,
[Parameter(Mandatory)]
[string]$IsoPath
)
$config2019Xml = @"
<Configuration>
<Add OfficeClientEdition="32">
<Product ID="O365ProPlusRetail">
<Language ID="en-us" />
</Product>
</Add>
<Updates Enabled="TRUE" ... | /content/code_sandbox/LabSources/CustomRoles/Office2019/HostStart.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 746 |
```powershell
Param (
[Parameter(Mandatory)]
[string]$CMBinariesDirectory,
[Parameter(Mandatory)]
[string]$CMPreReqsDirectory
)
Write-ScreenInfo -Message "Starting CM binaries and prerequisites download process" -TaskStart
#region CM binaries
Write-ScreenInfo -Message "Downloading CM binaries archive... | /content/code_sandbox/LabSources/CustomRoles/CM-1902/Invoke-DownloadCM.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 843 |
```powershell
param (
[Parameter(Mandatory)]
[string]
$DomainAndComputerName,
[bool]
$UseNwFeature = $false
)
[string]$createDbQuery = @'
USE [master]
GO
/****** Object: Database [DSC] Script Date: 07.04.2021 16:59:54 ******/
DECLARE @DefaultDataPath varchar(max)
SET @DefaultDataPath = (SELECT CONVERT(varch... | /content/code_sandbox/LabSources/PostInstallationActivities/SetupDscPullServer/CreateDscSqlDatabase.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 8,865 |
```powershell
Param (
[Parameter()]
[String]$DoNotDownloadWMIEv2
)
$DoNotDownloadWMIEv2 = [Convert]::ToBoolean($DoNotDownloadWMIEv2)
Write-ScreenInfo -Message "Starting miscellaneous items download process" -TaskStart
#region Download Microsoft SQL Server 2012 Native Client QFE
# path_to_url
Write-ScreenInfo... | /content/code_sandbox/LabSources/CustomRoles/CM-1902/Invoke-DownloadMisc.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 776 |
```powershell
Param (
[Parameter(Mandatory)]
[String]$ComputerName,
[Parameter(Mandatory)]
[String]$CMSiteCode,
[Parameter(Mandatory)]
[String]$CMSiteName,
[Parameter(Mandatory)]
[ValidatePattern('^EVAL$|^\w{5}-\w{5}-\w{5}-\w{5}-\w{5}$', Options = 'IgnoreCase')]
[String]$... | /content/code_sandbox/LabSources/CustomRoles/CM-1902/HostStart.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 2,784 |
```powershell
Param (
[Parameter(Mandatory)]
[String]$ADKDownloadPath,
[Parameter(Mandatory)]
[String]$WinPEDownloadPath
)
Write-ScreenInfo -Message "Starting ADK / WinPE download process" -TaskStart
#region ADK installer
Write-ScreenInfo -Message "Downloading ADK installer" -TaskStart
$ADKExePath =... | /content/code_sandbox/LabSources/CustomRoles/CM-1902/Invoke-DownloadADK.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 1,206 |
```powershell
Param (
[Parameter(Mandatory)]
[String]$ComputerName,
[Parameter(Mandatory)]
[String]$LogViewer
)
#region Define functions
function New-Shortcut {
Param (
[Parameter(Mandatory=$true)]
[String]$Target,
[Parameter(Mandatory=$false)]
[String]$TargetArgu... | /content/code_sandbox/LabSources/CustomRoles/CM-1902/Invoke-CustomiseCM.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 2,882 |
```ini
;SQL Server 2017 Configuration File
[OPTIONS]
; By specifying this parameter and accepting Microsoft R Open and Microsoft R Server terms, you acknowledge that you have read and understood the terms of use.
IACCEPTPYTHONLICENSETERMS="False"
; Specifies a Setup work flow, like INSTALL, UNINSTALL, or UPGRADE. T... | /content/code_sandbox/LabSources/CustomRoles/CM-1902/ConfigurationFile-SQL.ini | ini | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 1,841 |
```powershell
Param (
[Parameter(Mandatory)]
[String]$ComputerName,
[Parameter(Mandatory)]
[String]$CMSiteCode,
[Parameter(Mandatory)]
[String]$Version
)
#region Define functions
function Update-CMSite {
[CmdletBinding()]
Param (
[Parameter(Mandatory)]
[String]$CMSit... | /content/code_sandbox/LabSources/CustomRoles/CM-1902/Invoke-UpdateCM.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 4,119 |
```powershell
param(
[Parameter(Mandatory)]
[string]$FeatureName,
[string[]]$RemoteFolders
)
Install-WindowsFeature -Name XPS-Viewer
foreach ($folder in $RemoteFolders)
{
New-Item -ItemType Directory -Path $folder
}
``` | /content/code_sandbox/LabSources/CustomRoles/DemoCustomRole/DemoCustomRole.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 58 |
```powershell
param(
[Parameter(Mandatory)]
[string]$LocalSoftwareFolder,
[Parameter(Mandatory)]
[string]$NotepadDownloadUrl,
[Parameter(Mandatory)]
[string]$ComputerName
)
Import-Lab -Name $data.Name
New-Item -ItemType Directory -Path $LocalSoftwareFolder -Force | Out-Null
$notepadInstalle... | /content/code_sandbox/LabSources/CustomRoles/DemoCustomRole/HostStart.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 124 |
```powershell
param(
[Parameter(Mandatory)]
[string[]]$LocalSoftwareFolder
)
Remove-Item -Path $LocalSoftwareFolder -Recurse -Force
``` | /content/code_sandbox/LabSources/CustomRoles/DemoCustomRole/HostEnd.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 34 |
```powershell
# Use this metadata table to discover your custom role a little better.
# This is of course entirely optional.
@{
Description = 'This role does things'
Tag = 'Dsc','Domainjoined','Awesome'
}
``` | /content/code_sandbox/LabSources/CustomRoles/DemoCustomRole/DemoCustomRole.psd1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 47 |
```powershell
Param (
[Parameter(Mandatory)]
[String]$ComputerName,
[Parameter(Mandatory)]
[String]$CMBinariesDirectory,
[Parameter(Mandatory)]
[String]$CMPreReqsDirectory,
[Parameter(Mandatory)]
[String]$CMSiteCode,
[Parameter(Mandatory)]
[String]$CMSiteName,
[Paramete... | /content/code_sandbox/LabSources/CustomRoles/CM-1902/Invoke-InstallCM.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 8,918 |
```powershell
param
(
[Parameter(Mandatory)]
[string]
$ComputerName,
[Parameter(ParameterSetName = 'PackageList')]
[string[]]
$Package,
[Parameter(ParameterSetName = 'PackagePath')]
[string]
$PackagePath,
[Parameter(ParameterSetName = 'PackageList')]
[string]
... | /content/code_sandbox/LabSources/CustomRoles/NuGetServer/HostStart.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 1,219 |
```unknown
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.29519.87
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AutomatedLab.Feed", "AutomatedLab.Feed\AutomatedLab.Feed.csproj", "{C4B5E6E9-B14F-4F49-B52... | /content/code_sandbox/LabSources/CustomRoles/NuGetServer/AutomatedLab.Feed/AutomatedLab.Feed.sln | unknown | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 416 |
```powershell
param(
[Parameter(Mandatory)]
[string]$ComputerName,
[string]$OrganizationName,
[ValidateSet('True', 'False')]
[string]$AddAdRightsInRootDomain,
[ValidateSet('True', 'False')]
[string]$PrepareSchema,
[ValidateSet('True', 'False')]
[string]$PrepareAD,
[ValidateS... | /content/code_sandbox/LabSources/CustomRoles/Exchange2013/HostStart.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 5,139 |
```unknown
<?xml version="1.0" encoding="utf-8"?>
<!--
For more information on how to configure your ASP.NET application, please visit
path_to_url
-->
<configuration>
<!--
For a description of web.config changes see path_to_url
The following attributes can be set on the <httpRuntime> tag.
<syste... | /content/code_sandbox/LabSources/CustomRoles/NuGetServer/AutomatedLab.Feed/AutomatedLab.Feed/Web.config | unknown | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 2,246 |
```unknown
<?xml version="1.0" encoding="utf-8"?>
<!-- For more information on using web.config transformation visit path_to_url -->
<configuration xmlns:xdt="path_to_url">
<!--
In the example below, the "SetAttributes" transform will change the value of
"connectionString" to use "ReleaseSQLServer" only wh... | /content/code_sandbox/LabSources/CustomRoles/NuGetServer/AutomatedLab.Feed/AutomatedLab.Feed/Web.Debug.config | unknown | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 284 |
```xml
<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="path_to_url">
<Import Project="..\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.1\build\net46\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.props" Condition="Exists('..\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.... | /content/code_sandbox/LabSources/CustomRoles/NuGetServer/AutomatedLab.Feed/AutomatedLab.Feed/AutomatedLab.Feed.csproj | xml | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 3,025 |
```asp
<%@ Page Language="C#" %>
<%@ Import Namespace="NuGet.Server" %>
<%@ Import Namespace="NuGet.Server.App_Start" %>
<%@ Import Namespace="NuGet.Server.Infrastructure" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "path_to_url">
<html xmlns="path_to_url">
<head id="Head1" runat="server">
<t... | /content/code_sandbox/LabSources/CustomRoles/NuGetServer/AutomatedLab.Feed/AutomatedLab.Feed/Default.aspx | asp | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 563 |
```unknown
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Microsoft.AspNet.WebApi" version="5.2.7" targetFramework="net46" />
<package id="Microsoft.AspNet.WebApi.Client" version="5.2.7" targetFramework="net46" />
<package id="Microsoft.AspNet.WebApi.Core" version="5.2.7" targetFramework="net46" /... | /content/code_sandbox/LabSources/CustomRoles/NuGetServer/AutomatedLab.Feed/AutomatedLab.Feed/packages.config | unknown | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 484 |
```smalltalk
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: Assem... | /content/code_sandbox/LabSources/CustomRoles/NuGetServer/AutomatedLab.Feed/AutomatedLab.Feed/Properties/AssemblyInfo.cs | smalltalk | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 272 |
```unknown
<?xml version="1.0" encoding="utf-8"?>
<!-- For more information on using web.config transformation visit path_to_url -->
<configuration xmlns:xdt="path_to_url">
<!--
In the example below, the "SetAttributes" transform will change the value of
"connectionString" to use "ReleaseSQLServer" only wh... | /content/code_sandbox/LabSources/CustomRoles/NuGetServer/AutomatedLab.Feed/AutomatedLab.Feed/Web.Release.config | unknown | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 298 |
```unknown
<?xml version="1.0" encoding="utf-8"?>
<!--
This file is used by the publish/package process of your Web project. You can customize the behavior of this process
by editing this MSBuild file. In order to learn more about this please visit path_to_url
-->
<Project ToolsVersion="4.0" xmlns="path_to_url">
<Pr... | /content/code_sandbox/LabSources/CustomRoles/NuGetServer/AutomatedLab.Feed/AutomatedLab.Feed/Properties/PublishProfiles/FolderProfile.pubxml | unknown | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 195 |
```smalltalk
using System.Net.Http;
using System.Web.Http;
using System.Web.Http.ExceptionHandling;
using System.Web.Http.Routing;
using NuGet.Server;
using NuGet.Server.Infrastructure;
using NuGet.Server.V2;
[assembly: WebActivatorEx.PreApplicationStartMethod(typeof(AutomatedLab.Feed.App_Start.NuGetODataConfig), "Sta... | /content/code_sandbox/LabSources/CustomRoles/NuGetServer/AutomatedLab.Feed/AutomatedLab.Feed/App_Start/NuGetODataConfig.cs | smalltalk | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 279 |
```powershell
param(
[Parameter(Mandatory)]
[string]$ProGetDownloadLink,
[Parameter(Mandatory)]
[string]$SqlServer,
[Parameter(Mandatory)]
[string]$ComputerName
)
Import-Lab -Name $data.Name -NoValidation -NoDisplay
$proGetServer = Get-LabVM -ComputerName $ComputerName
$flatDomainName = $proG... | /content/code_sandbox/LabSources/CustomRoles/ProGet5/HostStart.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 1,853 |
```powershell
param(
[Parameter(Mandatory)]
[string]
$ComputerName,
[string]
$Repository = 'PSGallery',
[string]
$LabSourcesDrive = 'C',
[ValidateSet('yes', 'no')]
$TelemetryOptIn = 'no'
)
if (-not (Get-Lab -ErrorAction SilentlyContinue))
{
Import-Lab -Name $data.Name -NoDisp... | /content/code_sandbox/LabSources/CustomRoles/LabBuilder/HostStart.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 2,241 |
```powershell
Param (
[Parameter(Mandatory)]
[String]$CMBinariesDirectory,
[Parameter(Mandatory)]
[String]$CMPreReqsDirectory,
[Parameter(Mandatory)]
[String]$CMDownloadURL,
[Parameter(Mandatory)]
[String]$Branch
)
Write-ScreenInfo -Message "Starting Configuration Manager and prerequ... | /content/code_sandbox/LabSources/CustomRoles/CM-2103/Invoke-DownloadCM.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 1,174 |
```powershell
Param (
[Parameter()]
[String]$DoNotDownloadWMIEv2
)
$DoNotDownloadWMIEv2 = [Convert]::ToBoolean($DoNotDownloadWMIEv2)
Write-ScreenInfo -Message "Starting miscellaneous items download process" -TaskStart
#region Download Microsoft SQL Server 2012 Native Client QFE
# path_to_url
Write-ScreenInfo... | /content/code_sandbox/LabSources/CustomRoles/CM-2103/Invoke-DownloadMisc.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 807 |
```powershell
Import-Module -Name Pode
Start-PodeServer {
Add-PodeEndpoint -Address 127.0.0.1 -Protocol Http
New-PodeLoggingMethod -File -Path C:\LabBuilder -Name AlCapode_success | Enable-PodeRequestLogging
New-PodeLoggingMethod -File -Path C:\LabBuilder -Name AlCapode_error | Enable-PodeErrorLogging
... | /content/code_sandbox/LabSources/CustomRoles/LabBuilder/server.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 2,547 |
```powershell
Param (
[Parameter(Mandatory)]
[String]$ComputerName,
[Parameter(Mandatory)]
[String]$LogViewer
)
#region Define functions
function New-Shortcut {
Param (
[Parameter(Mandatory=$true)]
[String]$Target,
[Parameter(Mandatory=$false)]
[String]$TargetArgu... | /content/code_sandbox/LabSources/CustomRoles/CM-2103/Invoke-CustomiseCM.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 2,877 |
```powershell
Param (
[Parameter(Mandatory)]
[String]$ComputerName,
[Parameter(Mandatory)]
[String]$CMSiteCode,
[Parameter(Mandatory)]
[String]$CMSiteName,
[Parameter(Mandatory)]
[ValidatePattern('^EVAL$|^\w{5}-\w{5}-\w{5}-\w{5}-\w{5}$', Options = 'IgnoreCase')]
[String]$... | /content/code_sandbox/LabSources/CustomRoles/CM-2103/HostStart.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 2,925 |
```powershell
Param (
[Parameter(Mandatory)]
[String]$AdkDownloadURL,
[Parameter(Mandatory)]
[String]$AdkDownloadPath,
[Parameter(Mandatory)]
[String]$WinPEDownloadURL,
[Parameter(Mandatory)]
[String]$WinPEDownloadPath
)
Write-ScreenInfo -Message "Starting ADK and WinPE download proc... | /content/code_sandbox/LabSources/CustomRoles/CM-2103/Invoke-DownloadADK.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 1,265 |
```ini
;SQL Server 2017 Configuration File
[OPTIONS]
; By specifying this parameter and accepting Microsoft R Open and Microsoft R Server terms, you acknowledge that you have read and understood the terms of use.
IACCEPTPYTHONLICENSETERMS="False"
; Specifies a Setup work flow, like INSTALL, UNINSTALL, or UPGRADE. T... | /content/code_sandbox/LabSources/CustomRoles/CM-2103/ConfigurationFile-SQL.ini | ini | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 1,841 |
```powershell
Param (
[Parameter(Mandatory)]
[String]$ComputerName,
[Parameter(Mandatory)]
[String]$CMSiteCode,
[Parameter(Mandatory)]
[String]$Version
)
#region Define functions
function Update-CMSite {
[CmdletBinding()]
Param (
[Parameter(Mandatory)]
[String]$CMSit... | /content/code_sandbox/LabSources/CustomRoles/CM-2103/Invoke-UpdateCM.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 4,131 |
```powershell
param(
[Parameter(Mandatory)]
[string]$DeploymentFolder,
[Parameter(Mandatory)]
[string]$DeploymentShare,
[Parameter(Mandatory)]
[string]$InstallUserID,
[Parameter(Mandatory)]
[string]$InstallPassword,
[Parameter(Mandatory)]
[string]$ComputerName,
[Para... | /content/code_sandbox/LabSources/CustomRoles/MDT/HostStart.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 374 |
```powershell
param (
[Parameter(Mandatory)]
[String]$ComputerName,
[Parameter(Mandatory)]
[String]$CMBinariesDirectory,
[Parameter(Mandatory)]
[String]$CMPreReqsDirectory,
[Parameter(Mandatory)]
[String]$CMSiteCode,
[Parameter(Mandatory)]
[String]$CMSiteName,
[Paramete... | /content/code_sandbox/LabSources/CustomRoles/CM-2103/Invoke-InstallCM.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 10,301 |
```xml
<Applications>
<Application Name="Microsoft Visual C++ 2005 Redistributable (x86)">
<DownloadPath>path_to_url
<AppPath>Frameworks</AppPath>
<ImportApp>True</ImportApp>
<Enabled>True</Enabled>
<ShortName>Microsoft Visual C++ 2005 Redistributable (x86)</ShortName>
... | /content/code_sandbox/LabSources/CustomRoles/MDT/MDTApplications.xml | xml | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 2,892 |
```powershell
param(
[Parameter(Mandatory)]
[string]$AdkDownloadUrl,
[Parameter(Mandatory)]
[string]$AdkDownloadPath,
[Parameter(Mandatory)]
[string]$AdkWinPeDownloadUrl
)
$adkSetup = Get-LabInternetFile -Uri $AdkDownloadUrl -Path $labSources\SoftwarePackages -PassThru
if (-not (Test-Path -P... | /content/code_sandbox/LabSources/CustomRoles/MDT/DownloadAdk.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 419 |
```powershell
param
(
[Parameter(Mandatory)]
[string]
$ComputerName
)
$lab = Get-Lab
$vm = Get-LabVm -ComputerName $ComputerName
$cert = 'none'
if (Get-LabVm -Role CaRoot)
{
$sans = @(
$ComputerName
)
if ($lab.DefaultVirtualizationEngine -eq 'Azure')
{
$sans += $vm.AzureCon... | /content/code_sandbox/LabSources/CustomRoles/PowerShellWebAccess/HostStart.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 578 |
```powershell
<#
Author: Glenn Corbett @glennjc
Contributors: @randree
Updated: 23/12/2018
#>
param(
[Parameter(Mandatory)]
[string]$DeploymentFolder,
[Parameter(Mandatory)]
[string]$DeploymentShare,
[Parameter(Mandatory)]
[string]$InstallUserID,
[Parameter(Ma... | /content/code_sandbox/LabSources/CustomRoles/MDT/InstallMDT.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 6,766 |
```powershell
param(
[Parameter(Mandatory)]
[string]$ComputerName,
[Parameter(Mandatory)]
[string]$SccmSiteCode,
[Parameter(Mandatory)]
[string]$SccmBinariesDirectory,
[Parameter(Mandatory)]
[string]$SccmPreReqsDirectory,
[Parameter(Mandatory)]
[string]$AdkDownloadPath,
... | /content/code_sandbox/LabSources/CustomRoles/SCCM/HostStart.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 445 |
```powershell
param(
[Parameter(Mandatory)]
[string]$ComputerName,
[string]$OrganizationName
)
function Download-ExchangeSources
{
Write-ScreenInfo -Message 'Download Exchange 2016 requirements' -TaskStart
$downloadTargetFolder = "$labSources\ISOs"
Write-ScreenInfo -Message "Downloading Excha... | /content/code_sandbox/LabSources/CustomRoles/Exchange2016/HostStart.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 3,538 |
```powershell
param(
[Parameter(Mandatory)]
[string]$SccmBinariesDirectory,
[Parameter(Mandatory)]
[string]$SccmPreReqsDirectory
)
$sccm1702Url = 'path_to_url
$sccmSetup = Get-LabInternetFile -Uri $sccm1702Url -Path $labSources\SoftwarePackages -PassThru
if (-not (Test-Path -Path $SccmBinariesDirecto... | /content/code_sandbox/LabSources/CustomRoles/SCCM/DownloadSccm.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 435 |
```powershell
<#
.SYNOPSIS
Install a functional SCCM Primary Site using the Automated-Lab tookit with SCCM being installed using the "CustomRoles" approach
.DESCRIPTION
Long description
.EXAMPLE
PS C:\> <example usage>
Explanation of what the example does
... | /content/code_sandbox/LabSources/CustomRoles/SCCM/InstallSCCM.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 3,196 |
```powershell
param(
[Parameter(Mandatory)]
[string]$AdkDownloadPath
)
$windowsAdkUrl = 'path_to_url
$adkSetup = Get-LabInternetFile -Uri $windowsAdkUrl -Path $labSources\SoftwarePackages -PassThru
if (-not (Test-Path -Path $AdkDownloadPath))
{
$p = Start-Process -FilePath $adkSetup.FullName -ArgumentList... | /content/code_sandbox/LabSources/CustomRoles/SCCM/DownloadAdk.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 205 |
```powershell
Param (
[Parameter()]
[String]$DoNotDownloadWMIEv2
)
$DoNotDownloadWMIEv2 = [Convert]::ToBoolean($DoNotDownloadWMIEv2)
Write-ScreenInfo -Message "Starting miscellaneous items download process" -TaskStart
#region Download Microsoft SQL Server 2012 Native Client QFE
# path_to_url
Write-ScreenInfo... | /content/code_sandbox/LabSources/CustomRoles/CM-2002/Invoke-DownloadMisc.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 807 |
```powershell
Param (
[Parameter(Mandatory)]
[String]$CMBinariesDirectory,
[Parameter(Mandatory)]
[String]$CMPreReqsDirectory,
[Parameter(Mandatory)]
[String]$CMDownloadURL,
[Parameter(Mandatory)]
[String]$Branch
)
Write-ScreenInfo -Message "Starting Configuration Manager and prerequ... | /content/code_sandbox/LabSources/CustomRoles/CM-2002/Invoke-DownloadCM.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 1,174 |
```powershell
Param (
[Parameter(Mandatory)]
[String]$ComputerName,
[Parameter(Mandatory)]
[String]$CMSiteCode,
[Parameter(Mandatory)]
[String]$CMSiteName,
[Parameter(Mandatory)]
[ValidatePattern('^EVAL$|^\w{5}-\w{5}-\w{5}-\w{5}-\w{5}$', Options = 'IgnoreCase')]
[String]$... | /content/code_sandbox/LabSources/CustomRoles/CM-2002/HostStart.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 2,910 |
```powershell
Param (
[Parameter(Mandatory)]
[String]$ComputerName,
[Parameter(Mandatory)]
[String]$LogViewer
)
#region Define functions
function New-Shortcut {
Param (
[Parameter(Mandatory=$true)]
[String]$Target,
[Parameter(Mandatory=$false)]
[String]$TargetArgu... | /content/code_sandbox/LabSources/CustomRoles/CM-2002/Invoke-CustomiseCM.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 2,862 |
```powershell
Param (
[Parameter(Mandatory)]
[String]$AdkDownloadURL,
[Parameter(Mandatory)]
[String]$AdkDownloadPath,
[Parameter(Mandatory)]
[String]$WinPEDownloadURL,
[Parameter(Mandatory)]
[String]$WinPEDownloadPath
)
Write-ScreenInfo -Message "Starting ADK and WinPE download proc... | /content/code_sandbox/LabSources/CustomRoles/CM-2002/Invoke-DownloadADK.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 1,265 |
```ini
;SQL Server 2017 Configuration File
[OPTIONS]
; By specifying this parameter and accepting Microsoft R Open and Microsoft R Server terms, you acknowledge that you have read and understood the terms of use.
IACCEPTPYTHONLICENSETERMS="False"
; Specifies a Setup work flow, like INSTALL, UNINSTALL, or UPGRADE. T... | /content/code_sandbox/LabSources/CustomRoles/CM-2002/ConfigurationFile-SQL.ini | ini | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 1,841 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.