Code Monkey home page Code Monkey logo

vmwarefusion-dep's Introduction

VMWareFusion-DEP

Contributors

  • Martin Gunnarssson
  • Various persons from macadmins slack-channel

This is a manual on how you can test your DEP environment without the need of constantly re-install a physical machine.

Pre-reqs.:

  1. Create a new unbooted virtual machine
  • Download "Install macOS Sierra" from Mac App store
  • Create a "never-booted" .dmg using AutoDMG
  • Create a new VMWare Fusion virtual machine (.vmdk) (sudo vfuse -i .dmg-file -o outputlocation)
  • Import (drag and drop) into VMWare Fusion virtual machine library
  1. Change setting so that Apple thinks the virtual machine is DEP enrolled
  • "Show package content" on file "/Users/userid/Documents/Virtual Machines/*newly created VM-file.vmdk"
  • Find the following information from a DEP computer:
    • board-id var_ID=$(ioreg -p IODeviceTree -r -n / -d 1 | grep board-id);var_ID=${var_ID##*<\"};var_ID=${var_ID%%\">};echo $var_ID
    • hw.model sysctl hw.model (only the model, not "hw.model")
    • serialNumber system_profiler SPHardwareDataType | awk '/Serial/ {print $4}'
  • Open .vmx file with a text editor of your choice
  • Add the following lines, and save the file:
    • board-id.reflectHost = "FALSE"
    • board-id = "board-id"
    • hw.model.reflectHost = "FALSE"
    • hw.model = "model"
    • serialNumber.reflectHost = "FALSE"
    • serialNumber = "serialnumber"
    • smbios.reflectHost = "FALSE"
  1. Start the virtual machine and run the setup assistant as normal (DEP normally doesn't "hit" the first time you boot)

  2. Once booted, run the following commands to "reset" the Apple Setup Assistant, this will trigger the DEP enrollment once rebooted:

sudo mv /var/log/system.log{,.bak}
sudo rm /var/db/.AppleSetupDone
sudo rm -r /var/db/ConfigurationProfiles
sudo rm /Library/Keychains/apsd.keychain
sudo touch /var/db/MDM_EnableDebug
sudo touch /var/db/MDM_CKSupportRequestsFromDaemon
sudo shutdown -r now

After the machine has rebooted, DEP should now be active

vmwarefusion-dep's People

Contributors

canalnoises avatar rskolden avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.