Diskpart Examples for Windows 7/8

- Posted in Uncategorized by

For UEFI computers: :::bat select disk 0 clean convert gpt create partition primary size=300 format quick fs=ntfs label="Windows RE Tools" assign letter="T" set ... more

SCP

- Posted in Uncategorized by

Using SCP: scp user@host:path/from/home/to/item {destination} ... more

DISM

- Posted in Uncategorized by

Mounting a WIM: Dism /Mount-Wim /WimFile:{Path To WIM} /index:{INDEX} /MountDir:{PATH TO MOUNT DIR} Adding a package to a WIM: Dism /image:{PATH TO MOUNT DIR} /Add-Package /PackagePath:{PATH TO ... more

Get OS X Version via Command Line

- Posted in Uncategorized by

Get OS X Version returns 10.7.2: :::bash sw_vers -productVersion returns 7: :::bash sw_vers -productVersion | awk -F. `{ print $2 }` ... more

Fun with Native boot VHDs

- Posted in Uncategorized by

Create VHD with Diskpart For production environments the Microsoft recommends using fixed VHD type create vdisk file=C:\VHDs\{name}.vhd maximum={MAXMB} type=expandable select vdisk ... more

Mounting Mac OS X Disk Images with Shadow Files

- Posted in Uncategorized by

Mount with Shadow: hdiutil attach -owners on original.dmg -shadow Unmount: hdiutil detach /dev/disk# Commit changes: hdiutil convert -format UDZO -o new.dmg origianl.dmg -shadow ... more

Calling Applescript from Perl

- Posted in Uncategorized by

:::perl sub osascript($) { system 'osascript', map { ('-e', $_) } split(/\n/, $_[0]); } and to use it: :::applescript osascript <<END; tell application "Finder" display dialog "Hello" end ... more