Skip to content

Instantly share code, notes, and snippets.

Avatar

David Wallis davidwallis3101

View GitHub Profile
@davidwallis3101
davidwallis3101 / MergeAndSort.ps1
Created Dec 22, 2017
Merge And Sort Function with issues in certain pester versions?
View MergeAndSort.ps1
Function MergeAndSort {
<#
.SYNOPSIS
MergeAndSort
.DESCRIPTION
Merges arrays and sorts, extracted for refactoring and adding unit tests
.PARAMETER VMNumbers
VMware Number array
View LocationTesting.cs
using Stateless;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Xml;
using System.Xml.Serialization;
namespace StatelessTest
{
@davidwallis3101
davidwallis3101 / RefactorPSM1.ps1
Created Apr 2, 2019
Refactor PSM1 powershell module into seperate ps1 files
View RefactorPSM1.ps1
<#
.SYNOPSIS
RefactorPSM1.ps1
.DESCRIPTION
RefactorPSM1.ps1
.NOTES
For additonal information please contact david@wallis2000.co.uk
@davidwallis3101
davidwallis3101 / Test-Unattend.ps1
Last active Jul 26, 2020
Validate Unattend.xml or AutoUnattend.xml meet the schema
View Test-Unattend.ps1
<#
.SYNOPSIS
Test-Unattend.ps1
.DESCRIPTION
Test-Unattend.ps1
.NOTES
For additonal information please contact david.wallis@transunion.co.uk
View Signing.ps1
Function Add-AuthenticodeSigningToScript {
<#
.SYNOPSIS
Signs scripts during the build process
.DESCRIPTION
Uses an in-memory cert to sign files, rather than from one of the stores
.PARAMETER Path
View New-PowershellModuleWithPipeline.ps1
<#
.SYNOPSIS
New-PowershellModuleWithPipeline.ps1
.DESCRIPTION
Creates a powershell module, git repo, build and branch policies
.PARAMETER Server
The tfs/vsts/azure devops server host name
View New-WorkItemFromBuildFailure.ps1
<#
https://stackoverflow.com/questions/57294829/create-a-specific-work-item-bug-for-each-failed-test-case-in-azure-devops-pipe
https://www.c-sharpcorner.com/blogs/create-work-items-in-visual-studio-team-services-using-powershell
https://medium.com/@sandeepsinh/create-work-item-with-rest-api-in-azure-devops-28f979a12f37
https://stackoverflow.com/questions/44707891/tfs-rest-api-for-workitem-missing-relations-section-in-json-returned
#>
<#
.SYNOPSIS
You can’t perform that action at this time.