You want to sell or give away your iPhone. You want to ensure that the new owner will not access any of your data.
You may also need to give your iPhone to a technician to fix the broken display of your iPhone. You want to ensure that the technician cannot access any of your data.
You may also have so many buggy applications on your iPhone and want to increase stability and performance of your iOS.
Procedure:
Import your Photos to a MacBook.
Create a backup of data. It is best to let your iPhone synchronize everything with iCloud, including Photos and Contacts.
Turn off Find My iPhone.
Plug your iPhone to a MacBook.
Open Finder. Click on your iPhone on the left panel.
Click Restore iPhone… button.
Click Backup button.
Click Restore and Update button. Click Next button. Click Agree button.
Follow the instructions to install a clean iOS to your iPhone.
Post Installation Configuration:
Setup your iPhone.
Activate your iPhone.
Setup Face ID.
Restore your Apps & Data from iCloud backup.
Synchronize music to your iPhone.
Go to Settings > Generals > Software Update > Automatic Updates. Turn off Automatic Updates.
Go to Settings > Generals > Display & Brightness > Text Size. Drag the slider to the right to increase text size.
Step 1: Backup your machine and create an USB recovery by entering “Create a recovery drive” text to the search box on the task bar and follow the instructions.
Step 2: Create a bootable USB with Windows installation files.
2.A. If you plan to install Windows 11 then you can use Windows 11 Installation Assistant to create a bootable USB (click Download Now link below Create Windows 11 Installation Media section).
2.B. If you plan to install Windows 10 then you can use the commands below to create a bootable USB.
Right click Windows logo, click Command Prompt (Admin).
Enter diskpart.exe, press Enter.
Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
DISKPART> list disk
DISKPART> select disk 1 -- the USB disk should be selected, the number may be different in your machine.
DISKPART> clean
DISKPART> create partition primary size=1024
DISKPART> select partition 1
DISKPART> active
DISKPART> format quick fs=fat32
DISKPART> assign
DISKPART> create partition primary
DISKPART> select partition 2
DISKPART> format quick fs=ntfs
DISKPART> assign
DISKPART> exit
DISKPART> list disk
DISKPART> select disk 1 -- the USB disk should be selected, the number may be different in your machine.
DISKPART> clean
DISKPART> create partition primary size=1024
DISKPART> select partition 1
DISKPART> active
DISKPART> format quick fs=fat32
DISKPART> assign
DISKPART> create partition primary
DISKPART> select partition 2
DISKPART> format quick fs=ntfs
DISKPART> assign
DISKPART> exit
DISKPART> list disk
DISKPART> select disk 1 -- the USB disk should be selected, the number may be different in your machine.
DISKPART> clean
DISKPART> create partition primary size=1024
DISKPART> select partition 1
DISKPART> active
DISKPART> format quick fs=fat32
DISKPART> assign
DISKPART> create partition primary
DISKPART> select partition 2
DISKPART> format quick fs=ntfs
DISKPART> assign
DISKPART> exit
Double click on the Windows ISO file to create a virtual drive.
Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
xcopy f:\sources\boot.wim d:\sources\ /s /e
where
f: the virtual drive and
d: the USB fat32 partition.
We copy only the f:\sources\boot.wim file to d:\sources\.
robocopy f:\ d:\ /IS /S /XD sources
where
f: the virtual drive and
d: the USB fat32 partition.
We copy everything from f:\ to d:\ except the sources folder.
xcopy f:* e:\ /s /e
where
f: the virtual drive and
e: the USB ntfs partition.
xcopy f:\sources\boot.wim d:\sources\ /s /e
where
f: the virtual drive and
d: the USB fat32 partition.
We copy only the f:\sources\boot.wim file to d:\sources\.
robocopy f:\ d:\ /IS /S /XD sources
where
f: the virtual drive and
d: the USB fat32 partition.
We copy everything from f:\ to d:\ except the sources folder.
xcopy f:* e:\ /s /e
where
f: the virtual drive and
e: the USB ntfs partition.
xcopy f:\sources\boot.wim d:\sources\ /s /e
where
f: the virtual drive and
d: the USB fat32 partition.
We copy only the f:\sources\boot.wim file to d:\sources\.
robocopy f:\ d:\ /IS /S /XD sources
where
f: the virtual drive and
d: the USB fat32 partition.
We copy everything from f:\ to d:\ except the sources folder.
xcopy f:* e:\ /s /e
where
f: the virtual drive and
e: the USB ntfs partition.
Step 3: Boot your laptop using the USB.
Plug the USB to a machine.
For a Dell laptop, power on the machine, press F12 until a one-time boot up menu appears. Select the option to boot the machine from the USB. (You may need to access BIOS to select the UEFI option for Boot Sequence, and select the AHCI option for SATA operation).
For a Sony VAIO laptop, power off the machine, then press the Assist button to enter VAIOCare. Select the option to boot the machine from the USB. (You may need to access BIOS to enable the option to boot the machine from an USB).
For a ThinkPad laptop, power on the machine, press F12 until a one-time boot up menu appears. Select the option to boot the machine from the USB. Alternatively go to Settings > Update & Security > Recovery, click the Restart now button under the Advanced setup section and follow the instructions to boot the machine from a USB.
Step 4: Install Windows.
If your laptop is NOT officially supported by Windows 11, then on the first screen asking you to choose the language of your install, press Shift + F10 or Fn + Shift + F10 to open Command Prompt. Then type regedit and press Enter. Then locate HKEY_LOCAL_MACHINE\SYSTEM\Setup key. Then create a new LabConfig key. Then click on LabConfig key, and create 3 DWORD (32-bit) Values named BypassTPMCheck, BypassSecureBootCheck and BypassRAMCheck and set each to 1. Then close regedit and the Command Prompt, and continue the setup process.
Follow the instructions to install Windows.
Set Windows partition size to 123748Mb for DellXPS if you want to have a 120Gb C drive, or 614516Mb for DellPrecision if you want to have 600Gb C drive, or 819815Mb for ThinkPad if you want to have a 800Gb C drive.
You can delete all the partitions, including MRP (Microsoft Reserved Partition – this is just a reserved partition for Windows later use if needed), ESP (EFI System Partition – this is where UEFI firmware files are stored to boot Windows), WINRETOOLS (Windows Recovery Environment (WinRE) Tools – this is where files for repairing or recovering Windows are stored), and PBR image (this is where original the manufacture Windows installation file are stored) because you already created an USB recovery in the Step 1.
Step 5: Configure Windows without the Internet.
Press Shift + F10 or Fn + Shift + F10 to open Command Prompt.
Type oobe\bypassnro.
Press Enter.
Setup will reboot your computer and after reboot, you will get I don’t have Internet option and Continue with limited setup option to skip the Internet requirement.
Step 6: Configure Windows.
Change Computer Name, turn off System Restore, enable Remote Desktop,
Change Time Zone.
Add Wireless LAN Service feature for Windows Server 2019.
Turn on Network discovery and file sharing by clicking on Network icon on the left side of Explorer.
Activate Windows.
Disable Hibernation (powercfg.exe /h off).
Configure Power options (Hard disk >> Turn of hard disk after: 0, Wireless Adapter Settings >> Power Saving Mode: Maximum Performance, Sleep >> Sleep after: 0).
Uninstall unnecessary applications.
Use the manage-bde -status command to show BitLocker status (There is a space between bde and status). Use the manage-bde -off C: command to turn off BitLocker for the C drive.
For a Dell laptop, go to Dell Support, scroll down and enter your Dell laptop service tag, click Search button, click Drivers & Downloads tab, expand Find drivers section, install Dell Command Update, and use it to check and install necessary drivers.
For Windows Server 2019, install Chipset Device, Graphics, Audio, Ethernet, Bluetooth, Memory Card Reader, Dynamic Platform and Thermal Framework driver.
For a ThinkPad laptop, install Lenovo Vantage. Set battery charge threshold value to 40% using Lenovo Vantage.
Step 7: Configure Windows for developer’s needs.
Turn the following Windows features on: .NET 3.5, ASP.NET 4.8, Hyper-V, Internet Information Services, Telnet Client.
Install Total Commander, Office 365 Offline, MS Project 2016, MS Visio 2016, MS SQL Server 2016, Visual Studio 2022, Adobe Acrobat Pro DC v15.8, Adobe Photoshop CC 2015, TortoiseSVN 1.14.6
Create a VPN connection. Configure the VPN connnection.
Prevent normal traffic from going through VPN: Go to Control Panel >> Network and Sharing Center >> Change adapter settings >> Right click VPN Connection >> Properties >> Select the Networking tab:
– Disable Internet Protocol Version 6 (TCP/IPv6).
– Select Internet Protocol Version 4 (TCP/IPv4) >> Properties >> Advanced >> IP Settings: Uncheck the Use default gateway on remote network option.
Install Firefox, MPC-HC.1.7.13. (Go to View >> Options >> Player and turn off all options under the History section. Go to View >> Options >> Playback and disable the Auto-zoom feature.)
Configure secure protocols using IIS Crypto GUI (Select Best Practices, disable TLS 1.0, TLS 1.1, MD5, SHA).
You want to sell or give away your MacBook. You want to ensure that the new owner will not access any of your data.
You may also have so many buggy applications on your MacBook and want to increase stability and performance of your macOS.
Procedure:
Create a backup of data in your machine. You can share your data inside a private network and copy your data to an external drive plugged into a Windows machine. For photos, you can copy your entire Photo Library to an external hard drive. For folders with a large number of files, e.g. Photos Library.photoslibrary or My Mac, you can compress them.
Sign out of iTunes, iCloud, iMessage, App Store.
Remove Messages account.
Restart your machine.
When your hear startup sound hold Cmd + R until you see progress bar.
Wait for Recovery screen to show up. This should take only 3 minutes. If you have to wait for 15 minutes and the Recovery screen does not show up then you should log in your current macOS, open App Store app, search for a latest macOS that supports your MacBook model (e.g. macOS Monterey supported devices can be checked here, macOS Ventura supported devices can be checked here), then install it. This download and installation action may take hours.
Click the Disk Utility menu item.
Click the Continue button.
Ignore macOS Base System Disk (it will be removed after a new macOS is installed).
Click a volume (e.g. Macintosh HD – Data). Exapnd Macintosh HD if you do not see Macintosh HD – Data.
Click the minus (-) button on the tool bar above the Volume label.
Click the Delete Volume Group button.
Click the Done button.
Click a volume (e.g. Container disk2).
Click the Erase button on the tool bar.
Set Name = Macintosh HD, Format = APFS.
Click the Erase button.
APFS, or “Apple File System”, is one of the new features in macOS High Sierra. It is optimized for solid state drives (SSDs) and other all-flash storage devices.
Click the Done button.
Click the top left red Close icon to close the Disk Utility.
Click Install macOS (or Reinstall macOS) menu item.
Click the Continue button and follow the instructions to install a clean macOS.
Post Installation Configuration:
Go to System Preferences > Trackpad. Select Tap to click.
Go to Users & Groups. Click on the lock icon. Enter administrative password. Click Login Options. Select an account for Automatic login.
Go to Energy Saver. Select Prevent computer from sleeping automatically when the display is off. Uncheck Put hard disks to sleep when possible.
Quit Photos. Hold down the Option key and open Photos. Click the Other Library… button and select a backup of your photos. Click the Open button.
Open Music > Preferences… > Files. Uncheck Copy files to Music Media folder when adding to library.
Go to System Preferences > Sharing. Select File Sharing. Remove all folders under Share Folders. Click the Options… button. Select On for an account under Windows File Sharing. Click Done.
Software development and software engineering research