Packer Version: 0.10.1 (Windows) OS Version: 6.1.7601 (Windows 7)
<?xml version="1.0" encoding="utf-8"?> | |
<unattend xmlns="urn:schemas-microsoft-com:unattend"> | |
<settings pass="windowsPE"> | |
<!-- look for drivers on floppy --> | |
<component name="Microsoft-Windows-PnpCustomizationsWinPE" 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"> | |
<DriverPaths> | |
<PathAndCredentials wcm:keyValue="1" wcm:action="add"> | |
<Path>A:\</Path> | |
</PathAndCredentials> | |
</DriverPaths> |
$MultiFileResults = @() | |
$SingleFileResults = @() | |
$MultiFileModulePath = '.\SomeModule.psd1' | |
$SingleFileModulePath = '.\Build\SomeModule\SomeModule.psd1' | |
for ($i=0;$i -lt 100; $i++){ | |
rmo SomeModule | |
$MultiFileResults += Measure-Command -Expression {ipmo $MultiFileModulePath} | Select -expand TotalMilliseconds | |
rmo SomeModule |
#!/bin/sh | |
export AZURE_STORAGE_ACCOUNT='Your_Account_here' | |
export AZURE_STORAGE_ACCESS_KEY='Your_Key_Here' | |
export container_name='Your_Container_Here' | |
export source_folder=~/local/path/to/your/site/folder/* | |
export version='vX.Y.Z' # Replace this with the appropriate version for your docs. | |
export doclang='en-US' # Replace this if the language isn't American English. | |
root_folder=${source_folder:0:(-1)} |
. | |
| -- communication.md | |
| -- contributions.md | |
| -- current-events.md | |
| -- documents | |
| | -- sponsorship.md | |
| | -- steering.md | |
| | -- ? | |
| -- events | |
| | -- meetups |
function Get-VSCodeSnippet { | |
<# | |
.SYNOPSIS | |
Return the list of Snippets from a VSCode JSON file. | |
.DESCRIPTION | |
Given the path to one or more Visual Studio Code JSON files, the function returns all of the associated snippets, their prefix, description, and body, as well as their source file. Useful for discovering snippets after updating an extension or when using it for the first time. | |
.PARAMETER Path | |
The full path to one or more Visual Studio Code Snippet JSON files. By default this command will return all of the snippets found in the current user's loaded extensions and in the extensions which shipped directly with Visual Studio Code. | |
.EXAMPLE | |
C:\PS> Get-VSCodeSnippet -Path C:\Users\John.Doe\.vscode\extensions\ms-vscode.PowerShell-0.4.1\snippets\PowerShell.json |
$TargetComputers = Import-Csv c:\ADcomputers.csv | Select-Object -ExpandProperty Name | |
ForEach($Target in $TargetComputers){ | |
If (Test-Connection -ComputerName $Target -Count 1){ | |
Get-Hotfix -ComputerName $Target | | |
Sort-Object -Property InstalledOn -Descending | | |
Select-Object -First 1 -Property InstalledOn,PSComputerName | | |
Export-Csv -Path C:\patchstatus.csv -Append | |
} Else { | |
Write-Error "Unable to connect to $Target" | |
} |
Note: I've made a more robust project for this here.
##Synopsis This document is intended to represent the level of excellence a given vendor's specific software has achieved with regard to both API and Powershell modules. If specific reviews of the API and/or module are available, link to them or add in subsections below.
##Matrix Instructions
Function Get-AppLockerEvent { | |
<# | |
.Synopsis | |
Retrieve AppLocker events from one or more computers. | |
.Description | |
Retrieve AppLocker events from one or more computers. AppLocker events can be queried by either EventType (a plain-english explanation of the general type of event) or EventID. | |
.Parameter ComputerName | |
The name of the computer whose eventlogs will be queried for AppLocker events. If no ComputerName is specified, the function will default to the localhost. |
Function New-NanoElasticsearchVM { | |
param ( | |
[PSCredential]$Credential = (Get-Credential -UserName Administrator -Message "Enter your password; DO NOT CHANGE THE USERNAME!"), | |
[string]$ComputerName = "nes01", | |
[string]$ISOPath = "$env:HOMEDRIVE$Env:HomePath\downloads\10514.0.150808-1529.TH2_RELEASE_SERVER_OEMRET_X64FRE_EN-US.ISO", | |
[string]$MediaPath = "C:\W2016Media", | |
[string]$NanoPath = "C:\nano", | |
[int64]$MemoryStartupBytes = (2*1024*1024*1024), | |
[string]$VMSwitchName = "vExternal" | |
) |