Skip to content

Instantly share code, notes, and snippets.

View trodemaster's full-sized avatar
💭
Pushing buttons

Blake Garner trodemaster

💭
Pushing buttons
View GitHub Profile
if (!(test-path "HKLM:\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers")) {
New-Item -Path "HKLM:\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" -force -ErrorAction SilentlyContinue
}
new-ItemProperty -Path "HKLM:\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" -Name "C:\Windows\Temp\mseinstall.exe" -Value "~ WIN7RTM" -force -ErrorAction SilentlyContinue
#Write-host "Installing MSSE..."
if (Test-Path 'C:/Windows/Temp/mseinstall.exe'){
start-process -FilePath 'C:/Windows/Temp/mseinstall.exe' -ArgumentList '/s /q /o /runwgacheck /disableoslimit' -wait
} else {
@trodemaster
trodemaster / com.apple.bluetooth.PacketLogger.plist
Created March 28, 2018 17:10
/System/Library/LaunchAgents/com.apple.bluetooth.PacketLogger.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>EnablePressuredExit</key>
<true/>
<key>Program</key>
<string>/AppleInternal/DevTools/Hardware/PacketLogger.app/Contents/MacOS/PacketLogger</string>
<key>ProcessType</key>
<string>Standard</string>
If your like me and use Chrome on macOS to access VMware vSphere web client follow these steps to update to the latest flash beta player...
Download the macOS pepper PPAPI flash installer here www.adobe.com/go/flashplayerbeta
Install this version of the flash player
Quit chrome
Clean out other versions of flash
rm -r ~/Library/Application\ Support/Google/Chrome/PepperFlash/*
Copy updated flash player to the chrome plugin dir
cp -r /Library/Internet\ Plug-Ins/PepperFlashPlayer/* ~/Library/Application\ Support/Google/Chrome/PepperFlash/
Launch Chrome and verify that you have version 27,0,0,180 or greater installed http://get.adobe.com/flashplayer/about/
{
"builders": [
{
"type": "vmware-vmx",
"fusion_app_path": "/Applications/VMware Fusion Tech Preview.app",
"source_path": "VM/Ubuntu1604-vmware/Ubuntu1604.vmx",
"skip_compaction": "true",
"output_directory": "VM/Ubuntu1604-vmware-fried",
"communicator": "ssh",
"ssh_password": "password",
2017/09/07 14:29:41 [INFO] Packer version: 1.1.0-dev (f7c85e36)
2017/09/07 14:29:41 Packer Target OS/Arch: darwin amd64
2017/09/07 14:29:41 Built with Go Version: go1.9
2017/09/07 14:29:41 Detected home directory from env var: /Users/username
2017/09/07 14:29:41 [DEBUG] Discovered plugin: vagrant-vmware-ovf = /Users/username/.packer.d/plugins/packer-post-processor-vagrant-vmware-ovf
2017/09/07 14:29:41 Using internal plugin for googlecompute
2017/09/07 14:29:41 Using internal plugin for parallels-pvm
2017/09/07 14:29:41 Using internal plugin for vmware-vmx
2017/09/07 14:29:41 Using internal plugin for amazon-chroot
2017/09/07 14:29:41 Using internal plugin for null
# openstack_images_image_v2
data "openstack_images_image_v2" "ubuntu" {
name = "Ubuntu 16.04"
most_recent = true
}
# Boot From Volume
@trodemaster
trodemaster / BindVCVAtoSubdomain.txt
Last active April 7, 2017 22:50
If you need to bind VCVA to AD subdomain
# Use the cli to bind the VCVA to the domain specifying the domain alias instead of letting it auto populate. Must reboot after this is done
/opt/likewise/bin/domainjoin-cli join --userDomainPrefix domainname domainname.forest.company.com [email protected] "password"
# Create your identity source via the web interface chosing windows integrated source.
# Setup the identity source to use the specified domain alias instead of the default one. https://kb.vmware.com/kb/2070433 via http://www.virtuallyghetto.com/2015/01/automating-active-directory-identity-source-default-domain-in-vsphere-web-client.html
# Create datafile with updated info
@trodemaster
trodemaster / AzureStackNotes.txt
Created March 1, 2017 18:06
Some quick notes for those looking to build Azure Stack nested inside vSphere
Start w WinSrv2016 base vm
12 core and 12 core per socket
128GB ram locked
expand disk to 256GB
add 2nd scsi controller with scsi bus sharing enabled.
add 4 x 256GB disks to 2nd scsi controller EagerThick with multi-writer enabled independent persistent (allows snapshot of boot disk)
add custom vmx prop hypervisor.cpuid.v0 to 0
Download the POC disk image via microsoft instructions. Extract vmxnet3 and pvscsi drivers to a directory. like c:\vmwaredrivers
@trodemaster
trodemaster / ConsolePrompting.ps1
Last active June 11, 2018 17:28
Verify that powershell is set to prompt for credentials at the CLI and not popup a dialog
# prompt for passwords on the cli only
if ($psversiontable.platform -ne "Unix") {
$CONSOLE_PROMPTING = Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\PowerShell\1\ShellIds" -Name "ConsolePrompting" -EA 0
if ($CONSOLE_PROMPTING.ConsolePrompting -ne $true) {
Set-ItemProperty "HKLM:\SOFTWARE\Microsoft\PowerShell\1\ShellIds" -Name "ConsolePrompting" -Value $True
}
}
@trodemaster
trodemaster / vibs.txt
Created January 23, 2017 21:15
list of install vibs
Name Version Vendor Acceptance Level Install Date
----------------------------- ------------------------------------ ------ ---------------- ------------
intel-nvme 1.0e.2.0-1OEM.550.0.0.1391871 Intel VMwareCertified 2016-09-04
ata-libata-92 3.00.9.2-16vmw.650.0.0.4564106 VMW VMwareCertified 2016-11-16
ata-pata-amd 0.3.10-3vmw.650.0.0.4564106 VMW VMwareCertified 2016-11-16
ata-pata-atiixp 0.4.6-4vmw.650.0.0.4564106 VMW VMwareCertified 2016-11-16
ata-pata-cmd64x 0.2.5-3vmw.650.0.0.4564106 VMW VMwareCertified 2016-11-16
ata-pata-hpt3x2n 0.3.4-3vmw.650.0.0.4564106 VMW VMwareCertified 2016-11-16
ata-pata-pdc2027x 1.0-3vmw.650.0.0.4564106 VMW VMwareCertified 2016-11-16
ata-pata-serverworks 0.4.3-3vmw.650.0.0.45