Category Archives: Labs

Posts about computer labs and classrooms at Williams College

Windows – Group Policy Debugging

Logged into the computer and/or account that is misbehaving: gpresult  /h <path>outputfile.html (open the resulting html file with a browser …) There are ways to do this remotely as well …  Details at: https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/gpresult

Posted in Labs | Tagged , | Comments Off on Windows – Group Policy Debugging

Mac – JAMF – Command to delete computer on JSS

Commands to remove JAMF management and client from local computer: (you must remove the the MDM management profile BEFORE deleting the JAMF client) jamf removeMDMProfile jamf removeFramework   Command to remove a computer from the JSS: set JSSMAC=$(networksetup -getmacaddress en0) … Continue reading

Posted in Labs | Tagged , | Comments Off on Mac – JAMF – Command to delete computer on JSS

Windows – Creating a Sysprep answer file

Sysprep allows you to image a customized windows installation and “clone” that to other similar systems.  It is described in detail by Microsoft at: https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/sysprep–system-preparation–overview I have always used sysprep answer files when using sysprep. The process to create these … Continue reading

Posted in Labs | Tagged , , | Comments Off on Windows – Creating a Sysprep answer file

Mac High Sierra – Imaging APFS formatted disks

Back when High Sierra (MacOS 10.13) was coming out we were all told that disk imaging would be dead because of the new APFS disk format.  And, while It is true that you can not/should not apply a High Sierra … Continue reading

Posted in Labs | Tagged , , , | Comments Off on Mac High Sierra – Imaging APFS formatted disks

Mac – Create a NetBoot image

To “netboot” a mac, you need to setup a netboot server AND create a netboot image that is capable of running on the macs that you plan to netboot. For a NetBoot server see: https://github.com/jamf/NetSUS/tree/master/docs To create a netboot image: … Continue reading

Posted in Labs | Tagged , | Comments Off on Mac – Create a NetBoot image

Hardware – Dell model 7050 and legacy boot for PXE network boot

The process we have been using to boot Dells to the K2000 imaging server requires PXE boot in “Legacy” boot mode. The optiplexes we received in the summer of 2017 came with “Secure boot enabled” and UEFI boot set in … Continue reading

Posted in Labs | Tagged | Comments Off on Hardware – Dell model 7050 and legacy boot for PXE network boot

Mac OS – High Sierra – Run installer from command

The High Sierra installer not only installs the new OS but it also changes the disk format form HFS to APFS on SSD drives.  Additionally, it does the required firmware updates for the model of mac that the installer is … Continue reading

Posted in Labs | Tagged , | Comments Off on Mac OS – High Sierra – Run installer from command

Linux – Install Linux on external disk

Note one –  To install the correct boot loaders and hardware drivers,  I recommend doing the actual Linux install on the type of computer you plan to run Linux on. Meaning that, I think, the installer will put boot loaders … Continue reading

Posted in Labs, Software | Tagged , , | Comments Off on Linux – Install Linux on external disk

Mac – Burning ISO to USB disk – use Etcher

A great little tool to burn ISOs to external USB disks: Etcher Use Disk Utility to format the external as Fat 32 (may have to format as Mac OS first). If Etcher doesn’t see the drive at first, use the … Continue reading

Posted in Labs, Software | Tagged , | Comments Off on Mac – Burning ISO to USB disk – use Etcher

Windows 10 – Check for service status and restart if not running

from: https://stackoverflow.com/questions/3325081/how-to-check-if-a-service-is-running-via-batch-file-and-start-it-if-it-is-not-r for /F “tokens=3 delims=: ” %%H in (‘sc query “MyServiceName” ^| findstr ” STATE”‘) do ( if /I “%%H” NEQ “RUNNING” ( REM Put your code you want to execute here REM For example, the following line net … Continue reading

Posted in Labs | Tagged | Comments Off on Windows 10 – Check for service status and restart if not running