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
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-2002/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]
$ComputerName,
[Parameter()]
[string]
$WacDownloadLink = 'path_to_url
[Parameter()]
[uint16]
$Port = 443,
[bool]
$EnableDevMode
)
$lab = Import-Lab -Name $data.Name -NoValidation -NoDisplay -PassThru
if (-not $lab)
{
... | /content/code_sandbox/LabSources/CustomRoles/WindowsAdminCenter/HostStart.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 1,299 |
```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-2002/Invoke-InstallCM.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 10,285 |
```xml
<?xml version="1.0" encoding="utf-8"?><Include Id="VersionNumberInclude"><?define AutomatedLabCommonVersion="1.1.113" ?><?define AutomatedLabProductVersion="6.0.0.0" ?></Include>
``` | /content/code_sandbox/Installer/Includes.wxi | xml | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 53 |
```unknown
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="path_to_url">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">x64</Platform>
<ProductVersion>3.7</ProductVersi... | /content/code_sandbox/Installer/Installer.wixproj | unknown | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 1,048 |
```unknown
{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\froman\fprq2 Times New Roman;}}
}
``` | /content/code_sandbox/Installer/Resources/License.rtf | unknown | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 42 |
```powershell
@{
RootModule = 'AutomatedLabDefinition.psm1'
ModuleVersion = '1.0.0'
CompatiblePSEditions = 'Core', 'Desktop'
GUID = 'e85df8ec-4ce6-4ecc-9720-1d08e14f27ad'
Author = 'Raimund Andree, Per Pedersen, Jan-Hendrik Peters'
Com... | /content/code_sandbox/AutomatedLabDefinition/AutomatedLabDefinition.psd1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 564 |
```powershell
foreach ($file in Get-ChildItem -Path "$PSScriptRoot/internal/functions" -Filter *.ps1 -Recurse) {
. $file.FullName
}
foreach ($file in Get-ChildItem -Path "$PSScriptRoot/functions" -Filter *.ps1 -Recurse) {
. $file.FullName
}
foreach ($file in Get-ChildItem -Path "$PSScriptRoot/internal/scripts... | /content/code_sandbox/AutomatedLabDefinition/AutomatedLabDefinition.psm1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 108 |
```powershell
function Get-LabVirtualNetwork
{
[cmdletBinding(DefaultParameterSetName = 'ByName')]
param (
[Parameter(ParameterSetName = 'ByName')]
[string]$Name,
[Parameter(ParameterSetName = 'All')]
[switch]$All
)
$virtualnetworks = @()
$lab = Get-Lab -ErrorAction... | /content/code_sandbox/AutomatedLabDefinition/functions/Core/Get-LabVirtualNetwork.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 351 |
```powershell
function Add-LabDiskDefinition
{
[CmdletBinding()]
[OutputType([AutomatedLab.Disk])]
param (
[Parameter(Mandatory, ValueFromPipelineByPropertyName)]
[ValidateScript( {
$doesAlreadyExist = Test-Path -Path $_
if ($doesAlreadyExist)
... | /content/code_sandbox/AutomatedLabDefinition/functions/Core/Add-LabDiskDefinition.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 552 |
```powershell
function Get-LabDomainDefinition
{
Write-LogFunctionEntry
return $script:lab.Domains
Write-LogFunctionExit
}
``` | /content/code_sandbox/AutomatedLabDefinition/functions/Core/Get-LabDomainDefinition.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 33 |
```powershell
function Add-LabMachineDefinition
{
[CmdletBinding(DefaultParameterSetName = 'Network')]
[OutputType([AutomatedLab.Machine])]
param
(
[Parameter(Mandatory = $true, ValueFromPipelineByPropertyName = $true)]
[ValidatePattern("^([\'\""a-zA-Z0-9-]){1,15}$")]
[string]$Na... | /content/code_sandbox/AutomatedLabDefinition/functions/Core/Add-LabMachineDefinition.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 10,691 |
```powershell
function Get-LabMachineRoleDefinition
{
[CmdletBinding()]
param (
[Parameter(Mandatory)]
[AutomatedLab.Roles]
$Role,
[hashtable]
$Properties,
[switch]
$Syntax
)
$roleObjects = @()
$availableRoles = [Enum]::GetNames([AutomatedLa... | /content/code_sandbox/AutomatedLabDefinition/functions/Core/Get-LabMachineRoleDefinition.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 312 |
```xml
<?xml version='1.0' encoding='utf-8'?>
<Wix xmlns='path_to_url
<?include Includes.wxi ?>
<Product
Name='AutomatedLab'
Id='*'
UpgradeCode='6a52c22c-74f0-4cc3-b723-b73a21db9149'
Language='1033'
Codepage='1252'
Version="$(var.AutomatedLabProductVersion)"
Manufacturer='AutomatedLab Te... | /content/code_sandbox/Installer/Product.wxs | xml | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 36,452 |
```powershell
function Remove-LabDomainDefinition
{
[CmdletBinding()]
param (
[Parameter(Mandatory)]
[string]$Name
)
Write-LogFunctionEntry
$domain = $script:lab.Domains | Where-Object { $_.Name -eq $Name }
if (-not $domain)
{
Write-ScreenInfo "There is no domain d... | /content/code_sandbox/AutomatedLabDefinition/functions/Core/Remove-LabDomainDefinition.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 150 |
```powershell
function Get-LabAvailableAddresseSpace
{
$defaultAddressSpace = Get-LabConfigurationItem -Name DefaultAddressSpace
if (-not $defaultAddressSpace)
{
Write-Error 'Could not get the PrivateData value DefaultAddressSpace. Cannot find an available address space.'
return
}
... | /content/code_sandbox/AutomatedLabDefinition/functions/Core/Get-LabAvailableAddresseSpace.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 518 |
```powershell
function Get-LabInstallationActivity
{
[CmdletBinding()]
param (
[Parameter(Mandatory, ParameterSetName = 'FileContentDependencyRemoteScript')]
[Parameter(Mandatory, ParameterSetName = 'FileContentDependencyLocalScript')]
[string]$DependencyFolder,
[Parameter(Manda... | /content/code_sandbox/AutomatedLabDefinition/functions/Core/Get-LabInstallationActivity.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 1,387 |
```powershell
function Add-LabIsoImageDefinition
{
[CmdletBinding()]
param (
[string]$Name,
[string]$Path,
[Switch]$IsOperatingSystem,
[switch]$NoDisplay
)
Write-LogFunctionEntry
if ($IsOperatingSystem)
{
Write-ScreenInfo -Message 'The -IsOperatingSy... | /content/code_sandbox/AutomatedLabDefinition/functions/Core/Add-LabIsoImageDefinition.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 1,867 |
```powershell
function Add-LabDomainDefinition
{
[CmdletBinding()]
param (
[Parameter(Mandatory = $true, ValueFromPipelineByPropertyName = $true)]
[string]$Name,
[Parameter(Mandatory = $true, ValueFromPipelineByPropertyName = $true)]
[string]$AdminUser,
[Parameter(Manda... | /content/code_sandbox/AutomatedLabDefinition/functions/Core/Add-LabDomainDefinition.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 296 |
```powershell
function Export-LabDefinition
{
[CmdletBinding()]
param (
[switch]
$Force,
[switch]
$ExportDefaultUnattendedXml = $true,
[switch]
$Silent
)
Write-LogFunctionEntry
if (Get-LabMachineDefinition | Where-Object HostType -eq 'HyperV')
... | /content/code_sandbox/AutomatedLabDefinition/functions/Core/Export-LabDefinition.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 3,101 |
```powershell
function Set-LabDefinition
{
param
(
[AutomatedLab.Lab]
$Lab,
[AutomatedLab.Machine[]]
$Machines,
[AutomatedLab.Disk[]]
$Disks
)
if ($Lab)
{
$script:lab = $Lab
}
if ($Machines)
{
if (-not $script:machines)
... | /content/code_sandbox/AutomatedLabDefinition/functions/Core/Set-LabDefinition.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 181 |
```powershell
function Import-LabDefinition
{
[CmdletBinding(DefaultParameterSetName = 'ByName')]
param (
[Parameter(Mandatory, ParameterSetName = 'ByPath', Position = 1)]
[string]$Path,
[Parameter(Mandatory, ParameterSetName = 'ByName', Position = 1)]
[string]$Name,
[s... | /content/code_sandbox/AutomatedLabDefinition/functions/Core/Import-LabDefinition.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 1,746 |
```powershell
function Get-LabIsoImageDefinition
{
Write-LogFunctionEntry
$script:lab.Sources.ISOs
Write-LogFunctionExit
}
``` | /content/code_sandbox/AutomatedLabDefinition/functions/Core/Get-LabIsoImageDefinition.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 35 |
```powershell
function Get-LabVolumesOnPhysicalDisks
{
[CmdletBinding()]
$physicalDisks = Get-PhysicalDisk
$disks = Get-CimInstance -Class Win32_DiskDrive
$labVolumes = foreach ($disk in $disks)
{
$query = 'ASSOCIATORS OF {{Win32_DiskDrive.DeviceID="{0}"}} WHERE AssocClass=Win32_DiskDriveT... | /content/code_sandbox/AutomatedLabDefinition/functions/Core/Get-LabVolumesOnPhysicalDisks.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 332 |
```powershell
function Get-LabMachineDefinition
{
[CmdletBinding(DefaultParameterSetName = 'ByName')]
[OutputType([AutomatedLab.Machine])]
param (
[Parameter(Position = 0, ParameterSetName = 'ByName', ValueFromPipeline, ValueFromPipelineByPropertyName)]
[ValidateNotNullOrEmpty()]
[s... | /content/code_sandbox/AutomatedLabDefinition/functions/Core/Get-LabMachineDefinition.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 395 |
```powershell
function Remove-LabMachineDefinition
{
[CmdletBinding()]
param (
[Parameter(Mandatory = $true, ValueFromPipelineByPropertyName = $true)]
[string]$Name
)
Write-LogFunctionEntry
$machine = $script:machines | Where-Object Name -eq $Name
if (-not $machine)
{
... | /content/code_sandbox/AutomatedLabDefinition/functions/Core/Remove-LabMachineDefinition.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 153 |
```powershell
function Repair-LabDuplicateIpAddresses
{
[CmdletBinding()]
param ( )
foreach ($machine in (Get-LabMachineDefinition))
{
foreach ($adapter in $machine.NetworkAdapters)
{
foreach ($ipAddress in $adapter.Ipv4Address | Where-Object { $_.IPAddress.IsAutoGenerated }... | /content/code_sandbox/AutomatedLabDefinition/functions/Core/Repair-LabDuplicateIpAddresses.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 188 |
```powershell
function Remove-LabIsoImageDefinition
{
[CmdletBinding()]
param (
[Parameter(Mandatory = $true, ValueFromPipelineByPropertyName = $true)]
[string]$Name
)
Write-LogFunctionEntry
$iso = $script:lab.Sources.ISOs | Where-Object -FilterScript {
$_.Name -eq $Name
... | /content/code_sandbox/AutomatedLabDefinition/functions/Core/Remove-LabIsoImageDefinition.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 178 |
```powershell
function Get-LabDefinition
{
[CmdletBinding()]
[OutputType([AutomatedLab.Lab])]
param ()
Write-LogFunctionEntry
return $script:lab
Write-LogFunctionExit
}
``` | /content/code_sandbox/AutomatedLabDefinition/functions/Core/Get-LabDefinition.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 50 |
```powershell
function Set-LabLocalVirtualMachineDiskAuto
{
[CmdletBinding()]
param
(
[int64]
$SpaceNeeded
)
$type = Get-Type -GenericType AutomatedLab.ListXmlStore -T AutomatedLab.LocalDisk
$drives = New-Object $type
#read the cache
try
{
if ($IsLinux -or $... | /content/code_sandbox/AutomatedLabDefinition/functions/Core/Set-LabLocalVirtualMachineDiskAuto.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 1,586 |
```powershell
function Get-DiskSpeed
{
[CmdletBinding()]
param (
[ValidatePattern('[a-zA-Z]')]
[Parameter(Mandatory)]
[string]$DriveLetter,
[ValidateRange(1, 50)]
[int]$Interations = 1
)
Write-LogFunctionEntry
if (-not $labSources)
{
$labSources... | /content/code_sandbox/AutomatedLabDefinition/functions/Core/Get-DiskSpeed.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 419 |
```powershell
function Test-LabDefinition
{
[CmdletBinding()]
param (
[string]$Path,
[switch]$Quiet
)
Write-LogFunctionEntry
$lab = Get-LabDefinition
if (-not $lab)
{
$lab = Get-Lab -ErrorAction SilentlyContinue
}
if (-not $lab -and -not $Path)
{
... | /content/code_sandbox/AutomatedLabDefinition/functions/Core/Test-LabDefinition.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 1,158 |
```powershell
function Get-LabAzureWebAppDefinition
{
[CmdletBinding(DefaultParameterSetName = 'All')]
[OutputType([AutomatedLab.Azure.AzureRmService])]
param (
[Parameter(Position = 0, ParameterSetName = 'ByName', ValueFromPipeline, ValueFromPipelineByPropertyName)]
[string[]]$Name
... | /content/code_sandbox/AutomatedLabDefinition/functions/AzureServices/Get-LabAzureWebAppDefinition.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 214 |
```powershell
function Get-LabAzureAppServicePlanDefinition
{
[CmdletBinding(DefaultParameterSetName = 'All')]
[OutputType([AutomatedLab.Azure.AzureRmServerFarmWithRichSku])]
param (
[Parameter(Position = 0, ParameterSetName = 'ByName', ValueFromPipeline, ValueFromPipelineByPropertyName)]
... | /content/code_sandbox/AutomatedLabDefinition/functions/AzureServices/Get-LabAzureAppServicePlanDefinition.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 223 |
```powershell
function Add-LabAzureAppServicePlanDefinition
{
[CmdletBinding()]
[OutputType([AutomatedLab.Azure.AzureRmService])]
param (
[Parameter(Mandatory)]
[string]$Name,
[string]$ResourceGroup,
[string]$Location,
[ValidateSet('Basic', 'Free', 'Premium', 'Sh... | /content/code_sandbox/AutomatedLabDefinition/functions/AzureServices/Add-LabAzureAppServicePlanDefinition.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 363 |
```powershell
function Add-LabAzureWebAppDefinition
{
[CmdletBinding()]
[OutputType([AutomatedLab.Azure.AzureRmService])]
param (
[Parameter(Mandatory)]
[string]$Name,
[string]$ResourceGroup,
[string]$Location,
[string]$AppServicePlan,
[switch]$PassThru
... | /content/code_sandbox/AutomatedLabDefinition/functions/AzureServices/Add-LabAzureWebAppDefinition.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 382 |
```powershell
function New-LabDefinition
{
[CmdletBinding()]
param (
[string]$Name,
[string]$VmPath = (Get-LabConfigurationItem -Name VmPath),
[int]$ReferenceDiskSizeInGB = 50,
[long]$MaxMemory = 0,
[hashtable]$Notes,
[switch]$UseAllMemory = $false,
... | /content/code_sandbox/AutomatedLabDefinition/functions/Core/New-LabDefinition.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 2,232 |
```powershell
function Remove-LabVirtualNetworkDefinition
{
[CmdletBinding()]
param (
[Parameter(Mandatory = $true, ValueFromPipelineByPropertyName = $true)]
[string[]]$Name
)
Write-LogFunctionEntry
foreach ($n in $Name)
{
$network = $script:lab.VirtualNetworks | Wher... | /content/code_sandbox/AutomatedLabDefinition/functions/Network/Remove-LabVirtualNetworkDefinition.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 176 |
```powershell
function Get-LabVirtualNetworkDefinition
{
[CmdletBinding()]
[OutputType([AutomatedLab.VirtualNetwork])]
param(
[Parameter(ParameterSetName = 'ByName')]
[string]$Name,
[Parameter(Mandatory, ParameterSetName = 'ByAddressSpace')]
[string]$AddressSpace
)
... | /content/code_sandbox/AutomatedLabDefinition/functions/Network/Get-LabVirtualNetworkDefinition.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 193 |
```powershell
function New-LabNetworkAdapterDefinition
{
[CmdletBinding(DefaultParameterSetName = 'manual')]
param (
[Parameter(Mandatory)]
[string]$VirtualSwitch,
[string]$InterfaceName,
[Parameter(ParameterSetName = 'dhcp')]
[switch]$UseDhcp,
[Parameter(Param... | /content/code_sandbox/AutomatedLabDefinition/functions/Network/New-LabNetworkAdapterDefinition.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 1,407 |
```powershell
function Get-LabFreeDiskSpace
{
param(
[Parameter(Mandatory)]
[string]$Path
)
[uint64]$freeBytesAvailable = 0
[uint64]$totalNumberOfBytes = 0
[uint64]$totalNumberOfFreeBytes = 0
$success = [AutomatedLab.DiskSpaceWin32]::GetDiskFreeSpaceEx($Path, [ref]$freeBytesAva... | /content/code_sandbox/AutomatedLabDefinition/internal/functions/Get-LabFreeDiskSpace.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 184 |
```powershell
function Get-OnlineAdapterHardwareAddress
{
[Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSUseCompatibleCmdlets", "", Justification="Special handling for Linux")]
[OutputType([string[]])]
[CmdletBinding()]
param ( )
if ($IsLinux)
{
ip link show up | ForEach-Object {... | /content/code_sandbox/AutomatedLabDefinition/internal/functions/Get-OnlineAdapterHardwareAddress.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 165 |
```powershell
function Add-LabVirtualNetworkDefinition
{
[CmdletBinding()]
param (
[string]$Name = (Get-LabDefinition).Name,
[AllowNull()]
[AutomatedLab.IPNetwork]$AddressSpace,
[AutomatedLab.VirtualizationHost]$VirtualizationEngine,
[hashtable[]]$HyperVProperties,
... | /content/code_sandbox/AutomatedLabDefinition/functions/Network/Add-LabVirtualNetworkDefinition.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 1,560 |
```powershell
foreach ($file in Get-ChildItem -Path "$PSScriptRoot/internal/functions" -Filter *.ps1 -Recurse) {
. $file.FullName
}
foreach ($file in Get-ChildItem -Path "$PSScriptRoot/functions" -Filter *.ps1 -Recurse) {
. $file.FullName
}
foreach ($file in Get-ChildItem -Path "$PSScriptRoot/internal/scripts... | /content/code_sandbox/AutomatedLabTest/AutomatedLabTest.psm1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 108 |
```powershell
@{
RootModule = 'AutomatedLabTest.psm1'
ModuleVersion = '1.0.0'
CompatiblePSEditions = 'Core', 'Desktop'
GUID = '16580260-aab3-4f4c-a7ca-75cd310e4f0b'
Author = 'Raimund Andree, Per Pedersen', 'Jan-Hendrik Peters'
Company... | /content/code_sandbox/AutomatedLabTest/AutomatedLabTest.psd1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 289 |
```powershell
Describe "[$($Lab.Name)] SCVMM2016" -Tag SCVMM2016 {
Context "Role deployment successful" {
It "[SCVMM2016] Should return the correct amount of machines" {
(Get-LabVm -Role SCVMM2016).Count | Should -Be $(Get-Lab).Machines.Where({$_.Roles.Name -contains 'SCVMM2016'}).Count
}
... | /content/code_sandbox/AutomatedLabTest/tests/SCVMM2016.tests.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 274 |
```powershell
Describe "[$($Lab.Name)] Tfs2015" -Tag Tfs2015 {
Context "Role deployment successful" {
It "[Tfs2015] Should return the correct amount of machines" {
(Get-LabVm -Role Tfs2015).Count | Should -Be $(Get-Lab).Machines.Where({$_.Roles.Name -contains 'Tfs2015'}).Count
}
for... | /content/code_sandbox/AutomatedLabTest/tests/Tfs2015.tests.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 223 |
```powershell
Describe "[$($Lab.Name)] DSCPullServer" -Tag DSCPullServer {
Context "Role deployment successful" {
It "[DSCPullServer] Should return the correct amount of machines" {
(Get-LabVM -Role DSCPullServer).Count | Should -Be $(Get-Lab).Machines.Where( { $_.Roles.Name -contains 'DSCPullSe... | /content/code_sandbox/AutomatedLabTest/tests/DSCPullServer.tests.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 497 |
```powershell
Describe "[$((Get-Lab).Name)] ScomGateway" -Tag ScomGateway {
Context "Role deployment successful" {
It "[ScomGateway] Should return the correct amount of machines" {
(Get-LabVm -Role ScomGateway).Count | Should -Be $(Get-Lab).Machines.Where({$_.Roles.Name -contains 'ScomGateway'})... | /content/code_sandbox/AutomatedLabTest/tests/ScomGateway.tests.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 89 |
```powershell
BeforeDiscovery {
[hashtable[]] $frontendCases = foreach ($vm in (Get-LabVm -Role DynamicsFrontend))
{
@{vm = $vm }
}
}
Describe "[$((Get-Lab).Name)] DynamicsFrontend" -Tag DynamicsFrontend {
Context "Role deployment successful" {
It "[DynamicsFrontend] Should return the c... | /content/code_sandbox/AutomatedLabTest/tests/DynamicsFrontend.tests.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 213 |
```powershell
Describe "[$($Lab.Name)] SQLServer2016" -Tag SQLServer2016 {
Context "Role deployment successful" {
It "[SQLServer2016] Should return the correct amount of machines" {
(Get-LabVm -Role SQLServer2016).Count | Should -Be $(Get-Lab).Machines.Where({$_.Roles.Name -contains 'SQLServer2016'}... | /content/code_sandbox/AutomatedLabTest/tests/SQLServer2016.tests.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 288 |
```powershell
Describe "[$((Get-Lab).Name)] NuGetServer" -Tag NuGetServer {
Context "Role deployment successful" {
It "[NuGetServer] Should return the correct amount of machines" {
(Get-LabVM).Where({$_.PreInstallationActivity.Where({$_.IsCustomRole}).RoleName -contains 'NuGetServer' -or $_.Post... | /content/code_sandbox/AutomatedLabTest/tests/NuGetServer.tests.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 105 |
```powershell
Describe "[$($Lab.Name)] CaSubordinate" -Tag CaSubordinate {
Context "Role deployment successful" {
It "[CaSubordinate] Should return the correct amount of machines" {
(Get-LabVm -Role CaSubordinate).Count | Should -Be $(Get-Lab).Machines.Where({$_.Roles.Name -contains 'CaSubordinate'}... | /content/code_sandbox/AutomatedLabTest/tests/CaSubordinate.tests.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 268 |
```powershell
Describe "[$($Lab.Name)] SharePoint2019" -Tag SharePoint2019 {
Context "Role deployment successful" {
It "[SharePoint2019] Should return the correct amount of machines" {
(Get-LabVm -Role SharePoint2019).Count | Should -Be $(Get-Lab).Machines.Where({$_.Roles.Name -contains 'SharePoint2... | /content/code_sandbox/AutomatedLabTest/tests/SharePoint2019.tests.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 247 |
```powershell
Describe "[$($Lab.Name)] FirstChildDC" -Tag FirstChildDC {
Context "Role deployment successful" {
It "[FirstChildDC] Should return the correct amount of machines" {
(Get-LabVm -Role FirstChildDC).Count | Should -Be $(Get-Lab).Machines.Where({$_.Roles.Name -contains 'FirstChildDC'}).Cou... | /content/code_sandbox/AutomatedLabTest/tests/FirstChildDC.tests.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 83 |
```powershell
Describe "[$($Lab.Name)] SQLServer2014" -Tag SQLServer2014 {
Context "Role deployment successful" {
It "[SQLServer2014] Should return the correct amount of machines" {
(Get-LabVm -Role SQLServer2014).Count | Should -Be $(Get-Lab).Machines.Where({$_.Roles.Name -contains 'SQLServer2014'}... | /content/code_sandbox/AutomatedLabTest/tests/SQLServer2014.tests.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 288 |
```powershell
Describe "[$((Get-Lab).Name)] RemoteDesktopGateway" -Tag RemoteDesktopGateway {
Context "Role deployment successful" {
It "[RemoteDesktopGateway] Should return the correct amount of machines" {
(Get-LabVm -Role RemoteDesktopGateway).Count | Should -Be $(Get-Lab).Machines.Where({$_.... | /content/code_sandbox/AutomatedLabTest/tests/RemoteDesktopGateway.tests.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 199 |
```powershell
Describe "[$($Lab.Name)] DHCP" -Tag DHCP {
Context "Role deployment successful" {
It "[DHCP] Should return the correct amount of machines" {
(Get-LabVm -Role DHCP).Count | Should -Be $(Get-Lab).Machines.Where({$_.Roles.Name -contains 'DHCP'}).Count
}
}
}
``` | /content/code_sandbox/AutomatedLabTest/tests/DHCP.tests.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 77 |
```powershell
Describe "[$((Get-Lab).Name)] RemoteDesktopWebAccess" -Tag RemoteDesktopWebAccess {
Context "Role deployment successful" {
It "[RemoteDesktopWebAccess] Should return the correct amount of machines" {
(Get-LabVm -Role RemoteDesktopWebAccess).Count | Should -Be $(Get-Lab).Machines.Wh... | /content/code_sandbox/AutomatedLabTest/tests/RemoteDesktopWebAccess.tests.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 220 |
```powershell
Describe "[$($Lab.Name)] SQLServer2022" -Tag SQLServer2022 {
Context "Role deployment successful" {
It "[SQLServer2022] Should return the correct amount of machines" {
(Get-LabVm -Role SQLServer2022).Count | Should -Be $(Get-Lab).Machines.Where({$_.Roles.Name -contains 'SQLServer2022'}... | /content/code_sandbox/AutomatedLabTest/tests/SQLServer2022.tests.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 368 |
```powershell
Describe "[$($Lab.Name)] SQLServer2017" -Tag SQLServer2017 {
Context "Role deployment successful" {
It "[SQLServer2017] Should return the correct amount of machines" {
(Get-LabVm -Role SQLServer2017).Count | Should -Be $(Get-Lab).Machines.Where({$_.Roles.Name -contains 'SQLServer2017'}... | /content/code_sandbox/AutomatedLabTest/tests/SQLServer2017.tests.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 288 |
```powershell
$unattendedXmlDefaultContent2012 = @'
<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<settings pass="generalize">
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionSc... | /content/code_sandbox/AutomatedLabDefinition/internal/scripts/Initialization.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 8,937 |
```powershell
Describe "[$($Lab.Name)] HyperV" -Tag HyperV {
Context "Role deployment successful" {
It "[HyperV] Should return the correct amount of machines" {
(Get-LabVM -Role HyperV).Count | Should -Be $(Get-Lab).Machines.Where( { $_.Roles.Name -contains 'HyperV' }).Count
}
... | /content/code_sandbox/AutomatedLabTest/tests/HyperV.tests.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 331 |
```powershell
Describe "[$($Lab.Name)] ScomReporting" -Tag ScomReporting {
Context "Role deployment successful" {
It "[ScomReporting] Should return the correct amount of machines" {
(Get-LabVm -Role ScomReporting).Count | Should -Be $(Get-Lab).Machines.Where({$_.Roles.Name -contains 'Sco... | /content/code_sandbox/AutomatedLabTest/tests/ScomReporting.tests.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 201 |
```powershell
Describe "[$((Get-Lab).Name)] RemoteDesktopVirtualizationHost" -Tag RemoteDesktopVirtualizationHost {
Context "Role deployment successful" {
It "[RemoteDesktopVirtualizationHost] Should return the correct amount of machines" {
(Get-LabVm -Role RemoteDesktopVirtualizationHost).Count... | /content/code_sandbox/AutomatedLabTest/tests/RemoteDesktopVirtualizationHost.tests.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 99 |
```powershell
Describe "[$($Lab.Name)] FailoverStorage" -Tag FailoverStorage {
Context "Role deployment successful" {
It "[FailoverStorage] Should return the correct amount of machines" {
(Get-LabVM -Role FailoverStorage).Count | Should -Be $(Get-Lab).Machines.Where( { $_.Roles.Name -contains 'F... | /content/code_sandbox/AutomatedLabTest/tests/FailoverStorage.tests.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 180 |
```powershell
Describe "[$($Lab.Name)] DC Generic" -Tag RootDC, DC, FirstChildDC {
Context "Role deployment successful" {
It "[RootDC] Should return the correct amount of machines" {
(Get-LabVM -Role ADDS).Count | Should -Be $(Get-Lab).Machines.Where( { $_.Roles.Name -contains 'RootDC' -or $_.R... | /content/code_sandbox/AutomatedLabTest/tests/RootDC.tests.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 406 |
```powershell
Describe "[$($Lab.Name)] Tfs2018" -Tag Tfs2018 {
Context "Role deployment successful" {
It "[Tfs2018] Should return the correct amount of machines" {
(Get-LabVm -Role Tfs2018).Count | Should -Be $(Get-Lab).Machines.Where({$_.Roles.Name -contains 'Tfs2018'}).Count
}
for... | /content/code_sandbox/AutomatedLabTest/tests/Tfs2018.tests.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 223 |
```powershell
Describe "[$($Lab.Name)] FailoverNode" -Tag FailoverNode {
Context "Role deployment successful" {
It "[FailoverNode] Should return the correct amount of machines" {
(Get-LabVM -Role FailoverNode).Count | Should -Be $(Get-Lab).Machines.Where( { $_.Roles.Name -contains 'FailoverNode'... | /content/code_sandbox/AutomatedLabTest/tests/FailoverNode.tests.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 172 |
```powershell
Describe "[$($Lab.Name)] VisualStudio2015" -Tag VisualStudio2015 {
Context "Role deployment successful" {
It "[VisualStudio2015] Should return the correct amount of machines" {
(Get-LabVm -Role VisualStudio2015).Count | Should -Be $(Get-Lab).Machines.Where({$_.Roles.Name -contains 'Vis... | /content/code_sandbox/AutomatedLabTest/tests/VisualStudio2015.tests.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 90 |
```powershell
Describe "[$($Lab.Name)] Tfs2017" -Tag Tfs2017 {
Context "Role deployment successful" {
It "[Tfs2017] Should return the correct amount of machines" {
(Get-LabVm -Role Tfs2017).Count | Should -Be $(Get-Lab).Machines.Where({$_.Roles.Name -contains 'Tfs2017'}).Count
}
for... | /content/code_sandbox/AutomatedLabTest/tests/Tfs2017.tests.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 223 |
```powershell
Describe "[$($Lab.Name)] Office2016" -Tag Office2016 {
Context "Role deployment successful" {
It "[Office2016] Should return the correct amount of machines" {
(Get-LabVm -Role Office2016).Count | Should -Be $(Get-Lab).Machines.Where({$_.Roles.Name -contains 'Office2016'}).Count
... | /content/code_sandbox/AutomatedLabTest/tests/Office2016.tests.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 85 |
```powershell
BeforeDiscovery {
[hashtable[]] $fullCases = foreach ($vm in (Get-LabVm -Role DynamicsFull))
{
@{vm = $vm }
}
}
Describe "[$((Get-Lab).Name)] DynamicsFull" -Tag DynamicsFull {
Context "Role deployment successful" {
It "[DynamicsFull] Should return the correct amount of mac... | /content/code_sandbox/AutomatedLabTest/tests/DynamicsFull.tests.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 209 |
```powershell
Describe "[$($Lab.Name)] General" -Tag General {
Context "Lab deployment successful" {
It "[<LabName>] Should return the correct amount of machines" -TestCases @(@{Lab = $Lab; LabName = $Lab.Name}) {
$machines = if ($Lab.DefaultVirtualizationEngine -eq 'Azure')
... | /content/code_sandbox/AutomatedLabTest/tests/00General.tests.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 191 |
```powershell
Describe "[$((Get-Lab).Name)] LabBuilder" -Tag LabBuilder {
Context "Role deployment successful" {
It "[LabBuilder] Should return the correct amount of machines" {
(Get-LabVM).Where({$_.PreInstallationActivity.Where({$_.IsCustomRole}).RoleName -contains 'LabBuilder' -or $_.PostInst... | /content/code_sandbox/AutomatedLabTest/tests/LabBuilder.tests.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 171 |
```powershell
BeforeDiscovery {
[hashtable[]] $adminCases = foreach ($vm in (Get-LabVm -Role DynamicsAdmin))
{
@{vm = $vm }
}
}
Describe "[$((Get-Lab).Name)] DynamicsAdmin" -Tag DynamicsAdmin {
Context "Role deployment successful" {
It "[DynamicsAdmin] Should return the correct amount o... | /content/code_sandbox/AutomatedLabTest/tests/DynamicsAdmin.tests.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 207 |
```powershell
Describe "[$($Lab.Name)] SCVMM2022" -Tag SCVMM2022 {
Context "Role deployment successful" {
It "[SCVMM2022] Should return the correct amount of machines" {
(Get-LabVm -Role SCVMM2022).Count | Should -Be $(Get-Lab).Machines.Where({$_.Roles.Name -contains 'SCVMM2022'}).Count
}
... | /content/code_sandbox/AutomatedLabTest/tests/SCVMM2022.tests.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 274 |
```powershell
Describe "[$($Lab.Name)] DC" -Tag DC {
Context "Role deployment successful" {
It "[DC] Should return the correct amount of machines" {
(Get-LabVm -Role DC).Count | Should -Be $(Get-Lab).Machines.Where({$_.Roles.Name -contains 'DC'}).Count
}
}
}
``` | /content/code_sandbox/AutomatedLabTest/tests/DC.tests.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 75 |
```powershell
Describe "[$($Lab.Name)] ScomConsole" -Tag ScomConsole {
Context "Role deployment successful" {
It "[ScomConsole] Should return the correct amount of machines" {
(Get-LabVm -Role ScomConsole).Count | Should -Be $(Get-Lab).Machines.Where({$_.Roles.Name -contains 'ScomConsole... | /content/code_sandbox/AutomatedLabTest/tests/ScomConsole.tests.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 199 |
```powershell
Describe "[$($Lab.Name)] SharePoint2016" -Tag SharePoint2016 {
Context "Role deployment successful" {
It "[SharePoint2016] Should return the correct amount of machines" {
(Get-LabVm -Role SharePoint2016).Count | Should -Be $(Get-Lab).Machines.Where({$_.Roles.Name -contains 'SharePoint2... | /content/code_sandbox/AutomatedLabTest/tests/SharePoint2016.tests.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 238 |
```powershell
Describe "[$($Lab.Name)] SQLServer2008R2" -Tag SQLServer2008R2 {
Context "Role deployment successful" {
It "[SQLServer2008R2] Should return the correct amount of machines" {
(Get-LabVm -Role SQLServer2008R2).Count | Should -Be $(Get-Lab).Machines.Where({$_.Roles.Name -contains 'SQLServ... | /content/code_sandbox/AutomatedLabTest/tests/SQLServer2008R2.tests.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 302 |
```powershell
Describe "[$($Lab.Name)] ADFSWAP" -Tag ADFSWAP {
Context "Role deployment successful" {
It "[ADFSWAP] Should return the correct amount of machines" {
(Get-LabVm -Role ADFSWAP).Count | Should -Be $(Get-Lab).Machines.Where({$_.Roles.Name -contains 'ADFSWAP'}).Count
}
}
}
``... | /content/code_sandbox/AutomatedLabTest/tests/ADFSWAP.tests.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 90 |
```powershell
Describe "[$($Lab.Name)] SCVMM2019" -Tag SCVMM2019 {
Context "Role deployment successful" {
It "[SCVMM2019] Should return the correct amount of machines" {
(Get-LabVm -Role SCVMM2019).Count | Should -Be $(Get-Lab).Machines.Where({$_.Roles.Name -contains 'SCVMM2019'}).Count
}
... | /content/code_sandbox/AutomatedLabTest/tests/SCVMM2019.tests.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 274 |
```powershell
Describe "[$($Lab.Name)] ADFS" -Tag ADFS {
Context "Role deployment successful" {
It "[ADFS] Should return the correct amount of machines" {
(Get-LabVm -Role ADFS).Count | Should -Be $(Get-Lab).Machines.Where({$_.Roles.Name -contains 'ADFS'}).Count
}
}
}
``` | /content/code_sandbox/AutomatedLabTest/tests/ADFS.tests.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 80 |
```powershell
Describe "[$($Lab.Name)] Orchestrator2012" -Tag Orchestrator2012 {
Context "Role deployment successful" {
It "[Orchestrator2012] Should return the correct amount of machines" {
(Get-LabVm -Role Orchestrator2012).Count | Should -Be $(Get-Lab).Machines.Where({$_.Roles.Name -contains 'Orc... | /content/code_sandbox/AutomatedLabTest/tests/Orchestrator2012.tests.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 97 |
```powershell
Describe "[$($Lab.Name)] WebServer" -Tag WebServer {
Context "Role deployment successful" {
It "[WebServer] Should return the correct amount of machines" {
(Get-LabVM -Role WebServer).Count | Should -Be $(Get-Lab).Machines.Where( { $_.Roles.Name -contains 'WebServer' }).Count
... | /content/code_sandbox/AutomatedLabTest/tests/WebServer.tests.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 291 |
```powershell
Describe "[$((Get-Lab).Name)] RemoteDesktopConnectionBroker" -Tag RemoteDesktopConnectionBroker {
Context "Role deployment successful" {
It "[RemoteDesktopConnectionBroker] Should return the correct amount of machines" {
(Get-LabVm -Role RemoteDesktopConnectionBroker).Count | Shoul... | /content/code_sandbox/AutomatedLabTest/tests/RemoteDesktopConnectionBroker.tests.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 191 |
```powershell
Describe "[$($Lab.Name)] ADFSProxy" -Tag ADFSProxy {
Context "Role deployment successful" {
It "[ADFSProxy] Should return the correct amount of machines" {
(Get-LabVm -Role ADFSProxy).Count | Should -Be $(Get-Lab).Machines.Where({$_.Roles.Name -contains 'ADFSProxy'}).Count
}
... | /content/code_sandbox/AutomatedLabTest/tests/ADFSProxy.tests.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 85 |
```powershell
Describe "[$($Lab.Name)] VisualStudio2013" -Tag VisualStudio2013 {
Context "Role deployment successful" {
It "[VisualStudio2013] Should return the correct amount of machines" {
(Get-LabVm -Role VisualStudio2013).Count | Should -Be $(Get-Lab).Machines.Where({$_.Roles.Name -contains 'Vis... | /content/code_sandbox/AutomatedLabTest/tests/VisualStudio2013.tests.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 90 |
```powershell
BeforeDiscovery {
[hashtable[]] $backendCases = foreach ($vm in (Get-LabVm -Role DynamicsBackend))
{
@{vm = $vm }
}
}
Describe "[$((Get-Lab).Name)] DynamicsBackend" -Tag DynamicsBackend {
Context "Role deployment successful" {
It "[DynamicsBackend] Should return the correc... | /content/code_sandbox/AutomatedLabTest/tests/DynamicsBackend.tests.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 207 |
```powershell
Describe "[$($Lab.Name)] ConfigurationManager" -Tag ConfigurationManager {
Context "Role deployment successful" {
It "[ConfigurationManager] Should return the correct amount of machines" {
(Get-LabVM -Role ConfigurationManager).Count | Should -Be $(Get-Lab).Machines.Where( { $_.Rol... | /content/code_sandbox/AutomatedLabTest/tests/ConfigurationManager.tests.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 264 |
```powershell
Describe "[$($Lab.Name)] WindowsAdminCenter" -Tag WindowsAdminCenter {
Context "Role deployment successful" {
foreach ($vm in $((Get-LabVM).Where({$_.PostInstallationActivity.Where({$_.IsCustomRole}).RoleName -contains 'WindowsAdminCenter'})))
{
It "[$vm] URL access... | /content/code_sandbox/AutomatedLabTest/tests/WindowsAdminCenter.tests.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 294 |
```powershell
Describe "[$((Get-Lab).Name)] RemoteDesktopLicensing" -Tag RemoteDesktopLicensing {
Context "Role deployment successful" {
It "[RemoteDesktopLicensing] Should return the correct amount of machines" {
(Get-LabVm -Role RemoteDesktopLicensing).Count | Should -Be $(Get-Lab).Machines.Wh... | /content/code_sandbox/AutomatedLabTest/tests/RemoteDesktopLicensing.tests.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 158 |
```powershell
Describe "[$($Lab.Name)] SharePoint2013" -Tag SharePoint2013 {
Context "Role deployment successful" {
It "[SharePoint2013] Should return the correct amount of machines" {
(Get-LabVm -Role SharePoint2013).Count | Should -Be $(Get-Lab).Machines.Where({$_.Roles.Name -contains 'SharePoint2... | /content/code_sandbox/AutomatedLabTest/tests/SharePoint2013.tests.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 238 |
```powershell
Describe "[$($Lab.Name)] Routing" -Tag Routing {
Context "Role deployment successful" {
It "[Routing] Should return the correct amount of machines" {
(Get-LabVm -Role Routing).Count | Should -Be $(Get-Lab).Machines.Where({$_.Roles.Name -contains 'Routing'}).Count
}
for... | /content/code_sandbox/AutomatedLabTest/tests/Routing.tests.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 192 |
```powershell
Describe "[$($Lab.Name)] ScomManagement" -Tag ScomManagement {
Context "Role deployment successful" {
It "[ScomManagement] Should return the correct amount of machines" {
(Get-LabVm -Role ScomManagement).Count | Should -Be $(Get-Lab).Machines.Where({$_.Roles.Name -contains 'ScomManagem... | /content/code_sandbox/AutomatedLabTest/tests/ScomManagement.tests.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 195 |
```powershell
Describe "[$($Lab.Name)] FileServer" -Tag FileServer {
Context "Role deployment successful" {
It "[FileServer] Should return the correct amount of machines" {
(Get-LabVM -Role FileServer).Count | Should -Be $(Get-Lab).Machines.Where( { $_.Roles.Name -contains 'FileServer' }).Count
... | /content/code_sandbox/AutomatedLabTest/tests/FileServer.tests.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 222 |
```powershell
Describe "[$($Lab.Name)] SQLServer2008" -Tag SQLServer2008 {
Context "Role deployment successful" {
It "[SQLServer2008] Should return the correct amount of machines" {
(Get-LabVm -Role SQLServer2008).Count | Should -Be $(Get-Lab).Machines.Where({$_.Roles.Name -contains 'SQLServer2008'}... | /content/code_sandbox/AutomatedLabTest/tests/SQLServer2008.tests.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 288 |
```powershell
Describe "[$($Lab.Name)] Office2013" -Tag Office2013 {
Context "Role deployment successful" {
It "[Office2013] Should return the correct amount of machines" {
(Get-LabVm -Role Office2013).Count | Should -Be $(Get-Lab).Machines.Where({$_.Roles.Name -contains 'Office2013'}).Count
... | /content/code_sandbox/AutomatedLabTest/tests/Office2013.tests.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 85 |
```powershell
Describe "[$((Get-Lab).Name)] RemoteDesktopSessionHost" -Tag RemoteDesktopSessionHost {
Context "Role deployment successful" {
It "[RemoteDesktopSessionHost] Should return the correct amount of machines" {
(Get-LabVm -Role RemoteDesktopSessionHost).Count | Should -Be $(Get-Lab).Mac... | /content/code_sandbox/AutomatedLabTest/tests/RemoteDesktopSessionHost.tests.ps1 | powershell | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 222 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.