Skip to content

Instantly share code, notes, and snippets.

View RamaTam's full-sized avatar
🏠
Working from home

RamaTam

🏠
Working from home
View GitHub Profile
@RamaTam
RamaTam / toybox_v1.0.0.tests.ps1
Created June 22, 2021 15:14 — forked from exospheredata/toybox_v1.0.0.tests.ps1
Example Pester test for a PowerShell v5 Class
# Begin Testing
try
{
InModuleScope -ModuleName ToyBox -ScriptBlock {
Function Set-ObjectMockProperties ($object,[switch]$Exists)
{
# This function will load the object and set the global script variables with the values supplied.
# By doing this, we can later easily change how we interact with the object and make edits along
# the way in other Mocks or Tests.
@RamaTam
RamaTam / autounattend.xml
Created January 10, 2021 01:40 — forked from chrisoldwood/autounattend.xml
Example Packer configuration files for creating a Windows 10 VM on QEMU/KVM/libvirt.
<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<settings pass="windowsPE">
<component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SetupUILanguage>
<UILanguage>en-US</UILanguage>
</SetupUILanguage>
<SystemLocale>en-US</SystemLocale>