Friday, May 10, 2019

Export Message Tracking logs to CSV via Powershell

Get-MessageTrackingLog -Sender SENDER@gmail.com -Start "01/01/19 04:00:00" -End "02/12/13 23:59:59" -Recipient "TheMole@BadGuyCompany.com" -resultsize unlimited | select sender, {$_.Recipients}, timestamp, messagesubject, totalbytes | export-csv c:\exported.csv

Remove either -Sender or -Recipient, or modify them when necessary

Monday, May 6, 2019

WIndows 10 1809, add netfx3 to WIM, also SMB1

Add NetFX3 and SMB1 to your WIM directly.

Mount the WIM with the correct index

dism /mount-image /imagefile:e:\temp\install.wim /index:3 /MountDir:e:\temp\mount


Add NetFX3

DISM /Image:e:\temp\mount /Enable-Feature /FeatureName:NetFx3 /All /LimitAccess /Source:e:\temp\sxs

Enable SMB1

DISM /Image:e:\temp\mount /Enable-Feature /FeatureName:"SMB1Protocol" -All

Unmount and Commit the changes

dism /unmount-wim /mountdir:e:\temp\mount /commit

Friday, May 3, 2019

Windows 10 remove apps from WIM file

To find the index of the version of Windows in the install.wim file.
Open an elevated command prompt and run,
dism /Get-WimInfo /WimFile:X:\sources\install.wim

Will need Windows 10 ADK installed.

Script for removing built-in apps from the wim file,
https://gallery.technet.microsoft.com/Removing-Built-in-apps-65dc387b