Wednesday 27 September 2017

Split wim image file into swm and apply

I encountered an issue that USB thumbdrives created for UEFI only has 32G in FAT32 and files larger than 4G cannot be copied to it due to limitation from FAT32.  Here is a solution:

To split a windows image file:

Dism /Split-Image /ImageFile:m:\rollout\Win10.wim /SWMFile:m:\rollout\splited\win10.swm /FileSize:4000


To apply a slited image file:

dism /apply-image /imageFile:m:\rollout\splited\install.swm /swmfile:m:\rollout\splited\install*.swm /applydir:m:\rollout\splited\applied /index:1

Saturday 22 April 2017

How To Hide User Accounts From The Log-In Screen In OS X

I have been looking for a way to hide Guest from login screen on El Capitan and none of following works
Tried followings:
a. disable Find my mac and disable Guest login  --- not work
b. https://www.maketecheasier.com/hide-user-accounts-from-login-screen-osx/
sudo defaults write /Library/Preferences/com.apple.loginwindow HiddenUsersList -array-add Guest
This did not work for me

After many hours searching online, solution found here ( thanks to nnyymm who provided solution)
(it turns out that it relates to System Integrity Protection which was introduced since El Capitan)

1. Make sure “Find My Mac” and Guest User are disabled, reboot;

2. Check whether System Integrity Protection is enabled or disabled by running: csrutil status at the Terminal.

3. If it says "System Integrity Protection status: enabled." proceed to 4.1,

4. if not, only do 4.4 and 4.7;

4.1. Reboot into "Recovery Mode": Shutdown and hold Command + R after pressing the power button;​

4.2. Go into "Utilities > Terminal" and run the command: csrutil disable;​

4.3. Reboot;​

4.4. Open the Terminal and run: sudo touch /System/Library/PrivateFrameworks/EFILogin.framework/Resources/EFIResourceBuilder.bundle/Contents/Resources, this will force the EFI login update;

4.5. Reboot(again) into "Recovery Mode": Shutdown and hold Command + R after pressing the power button;

4.6. Go into "Utilities > Terminal" and run the command: csrutil enable;

4.7. Reboot and it’s fixed!

4.8. Re enable “Find My Mac” as you wish.​

Sunday 9 April 2017

Open with menu shows lag in El Capitan

in Terminal, run

/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -seed -r -f -v -domain local -domain user -domain system