There are time we want to perform things via CLI. Today I encountered to perform compression via CLI for my windows machine as it has problem performing the task via the UI. Here are the codes:
compact /c /s:”full path of folder” /i /Q
compact /u /s:”full path of folder” /i /Q
If you are experiencing a failed windows update and always getting an error then you will need this.
- Open the CMD as Administrator
- Type in
netsh winhttp set proxy proxy-server=”proxyserver:8080″
Thats it, try again to update and it should be now working.
Just recently we had a requirement to enable bitlocker on our development machines. Unfortunately you can’t use bitlocker on hard drive that of type DYNAMIC.
Just recently we had a requirement to enable bitlocker on our development machines. Unfortunately you can’t use bitlocker on hard drive that of type DYNAMIC. So initially we were advised to have our machines reformatted. We all know that having our development machines reformatted will result to downtime on development task so I tried searching the web for solution and I found one.
As always for a peace of mind you may backup your files just in case you did something that is not part of the steps.
- Delete volume of the drive using Diskpart and convert drive to basic
- Use Gparted to recreate the volume
- Enable bitlocker
- Create a Gparted bootable disk
- Download the latest YUMI Multiboot creator
- Download the latest GParted ISO either the x64 or the one that is compatible to your machine
- Insert the USB drive to your machine
- Run YUMI
- On Step 1 select the USB drive and check on Format drive preferably as FAT32
- On Step 2 select Gparted
- On Step 3 locate the downloaded ISO file from Step 1.2
- Click Create and wait for the USB drive to be created successfully
- Keep it for now as we will use it later
- Create a local administrator
- This is a different from a domain admin that is created for corporate machine this is an account that binded only to your machine
- To create open Computer Management
- Navigate to Local User admin Groups > Users
- Right click and select New User
- Fill up the following accordingly
- User name
- Full Name
- Confirm Password
- User must change password at next logon : UNCHECKED
- Double click on the newly created account and select the Member of Tab
- Click Add and search for Administrators
- Boot your machine to command prompt, on our Machine we are using Windows 10 and below are the steps to boot to the command prompt
- On your task bar go to All Settings
- Select Update & Security
- Select Recovery
- Under Advance startup click on Restart Now
- Your machine will restart
- On the said screen navigate to find the Command Prompt usually it is found by:
- Troubleshooting > Advanced > Command prompt
- Then select the local admin you have created on Step #2
- Type in Diskpart
- Type in list disk take note of the disk you want to convert to basic
- Type in select disk <disknumber>
- Type in detail disk take note of the details for later reference #3.10
- This time we will delete all the volume of the said disk by
- select volume <volumenumber>
- delete volume
- Repeat step untill all volume has been deleted
- When all volumes has been deleted you may now convert that selected disk on #3.10 by typing convert basic
- Now our disk is converted to basic we need to reboot our machine and boot unto our USB live drive that we have created on Step #1
- After booting up on the USB Drive just look for the Gparted and just press enter until you see the desktop of Gparted
- Open GParted app and make sure that the drive we wanted to convert to basic is showing unallocated as we have deleted the volume on Step #3
- Now open terminal and type the following steps
- sudo -s
- On the testdisk follow this steps
- Select No Log.
- Select the disk drive you want to recover, e.g. /dev/sdc.
- Select your partition table type. Usually it’s Intel.
- Select Analyse and Quick Search.
- If you get asked whether your partition was created under Vista, answer yes/no.
- Your drive will be analysed and you will see a list of all found partitions. If you know what you are doing, you can edit the list, but usually that list is already the volume we’ve got on Step #3.10 and if yes just press Enter.
- On the next screen you have the option to either perform a second Deeper Search, or Write the current partition table to disk. If the quick search, which we checked if it matched our volume on Step #3.10, was successful, choose Write.
- Close and Open the GParted app to verify the changes
- If all is well you can now exit GParted and boot again
- Your machine will now boot properly and your drive will now be on Basic type.
- You can now enable bitlocker as needed.
Hope it helped you as it did to me.
YUMI – Multiboot USB Creator