Category Archives: Labs

Posts about computer labs and classrooms at Williams College

Windows 10 – Get Windows Update Log

Apparently windows 10 changed the windows 10 log format and you now need to run a power shell command to generate the log file as a text file that normal humans can read.

Open Powershell with “Run as Administrator”
give the command:

Get-WindowsUpdateLog

Then wait until all the log files have been found and parsed and you get the PowerShell command prompt back. Below is an example.

If you find that your windows update log goes back to the beginning of time and the resulting text log file is too large to read, you can temporarily move older log files from C:\Windows\Logs\WindowsUpdate

More details see: https://support.microsoft.com/en-us/help/3036646/how-to-read-windows-update-logs-in-windows-10-version-1607

PS C:\Windows\system32> Get-WindowsUpdateLog

Converting C:\Windows\logs\WindowsUpdate into C:\Users\labadmin\Desktop\WindowsUpdate.log …

Input
—————-
File(s):
C:\Windows\logs\WindowsUpdate\WindowsUpdate.20171011.120412.263.1.etl

0.00%100.00%

Output
—————-
DumpFile: C:\Users\labadmin\AppData\Local\Temp\WindowsUpdateLog\wuetl.CSV.tmp.00000

The command completed successfully.

WindowsUpdate.log written to C:\Users\labadmin\Desktop\WindowsUpdate.log

PS C:\Windows\system32>

Windows 10 – System-wide File Type Associations

List current filetype associations with these two different commands:

ftype
or
assoc

Change or create new ones:

Open an elevated command prompt.

  • Use FTYPE {fileType}={commandString} to create a file type and associated command to open the file.
  • Use ASSOC {.fileExtension}={fileType} to associate a file extension with the file type you created.

Example:

FTYPE MyCustomType=C:\Program Files\MyCustomProgram\MyProg.exe “%1”
ASSOC .custom=MyCustomType

These commands can be issued from the KACE server. See the SPSS example there.

JAMF – DEP and VPP Certificate Renewal

For the JAMF server we have yearly renewing certificates that connect our JAMF server to Apple’s servers for our hardware (DEP) and software (VPP) purchases.

Here is how I did this process in May 2017:

  • 1) Log into our JAMF server ( https://casper.williams.edu:8443 ) with a full admin account
  • 2) Navigate to Management SettingsGlobal SettingsDevice Enrollment Program
  • 3) Click on Public Key to download our JSS key to the local computer
  • 4

  • ) Sign into our Apple School Manager account at https://school.apple.com/ with our AppleID of: [email protected]
  • 5) Click on MDMUpload Key
  • 6) Once uploaded you should be able to click on Get Token to download the new token
  • 7) Go back to our JAMF ServerManagement SettingsGlobal SettingsDevice Enrollment Program
  • 8) Click on Williams JSS and then Edit
  • 9) Then Upload Server Token

Remain logged into our JAMF server to update the VPP Certificate:

  • 1) Log into the [email protected] AppleId at the website: https://volume.itunes.apple.com/
  • 2) In the upper right corner click on [email protected] for a drop down menu, select Account Summary
  • 3) In the MDM section, click on Download Token
  • 4) While still logged into our JAMF Server navigate to Management
  • SettingsGlobal SettingsVPP Accounts

  • 5) Click on Williams VPP then Edit
  • 6) Finally click on “Renew Service Token” to upload the token you just downloaded from Apple

Phew. Done.
Log out of all accounts.

Windows 10 – Install to external USB drive

Update (Sept 2017) –

An even easier way to do this is to copy your wim image to a windows 10 computer and run the “Windows to Go” application.  In the Windows to Go app, choose the disk you want to install the image on and then choose the wim image you want to put on that disk.

The result should be a bootable windows 10 external disk that will boot on just about any computer!


Using a Windows 10 computer, follow the standard procedure to format the external drive and set it to be bootable in DiskPart:

Diskpart
Diskpart> list disk
Diskpart> sel disk 1 (be sure to select the correct disk!)
Diskpart> clean
Diskpart> create partition primary
Diskpart> format fs=NTSF quick
Diskpart> active
Diskpart> assign letter=g
Diskpart> exit Continue reading

Mac – Active Directory Debugging and Logs

To debug an Active Directory binding issues

First set the directory error logging to “debug” with:
sudo odutil set log debug

then try the join …

set the error logging back to “error” with:
sudo odutil set log default

You’ll find the log file in:
/var/log/opendirectoryd.log

An excellent reference article with additional tips is at:
https://derflounder.wordpress.com/2012/03/29/diagnosing-ad-binding-problems-from-the-command-line/