Monday, August 15, 2016

Restore point creation with command prompt

his method shows you how to open System Restore using Command Prompt
Please perform the following steps:
In the Command Prompt or in run windows type

systempropertiesprotection
Please press Enter to execute

OR

In the Command Prompt type the below command

wmic.exe /Namespace:\\root\default Path SystemRestore Call CreateRestorePoint "My Shortcut Restore Point", 100, 7

TIP : to view system icons if unable to see any icon in change icon settings then go to following path
C:\Windows\System32\imageres.dll
ok

System Restore is implemented using the Volume Shadow Copy Service (Volume Snapshot Service, VSS). As such, you can use vssadmin in an elevated command prompt to list all of the restore points:
vssadmin List Shadows
Note that Windows Backup also uses VSS, with shadow copies stored on both the system and backup drives, so if your backup drive is connected, the shadow copies stored on the backup drive corresponding to these backups will be listed as well. Add /for=C: to specify the volume you want to list the shadow copies for, replacing C: with the volume letter of your choice if it is not C:.
While this isn't the easiest way to work with restore points, you can use the creation date and time and shadow copy ID listed in the output from the above command to delete specific restore points, using the vssadmin Delete Shadows command. You can also create restore points with vssadmin Create Shadow and change the amount of space available to restore points with vssadmin Resize ShadowStorage.
  • vssadmin list shadowstorage - This command lists all connected hard drives and their used, allocated and maximum shadow copy storage space.
  • vssadmin list shadows - This command lists all existing shadow copies on the system
  • vssadmin delete shadows /for=c: /oldest - This command deletes the oldest shadow copy on drive C
  • vssadmin delete shadows /for=d: /all - This command deletes all existing shadow copies on drive D
  • vssadmin delete shadows /for=c: /shadow=ID - Deletes the selected shadow copy. The IDs are listed when you use the list shadows command.
  • vssadmin resize shadowstorage /for=c: /maxsize=2GB - Sets the shadow storage for drive C to 2 Gigabyte. May delete existing restore points starting with the oldest if space is not sufficient to store all System Restore points
Run Powershell as an administrator. At the prompt:
Get-ComputerRestorePoint
This will list all the system restore points.
Powershell offers 4 Cmdlets to manage system restore and/or restore points:
  1. Disable-ComputerRestore
  2. Enable-ComputerRestore
  3. Get-ComputerRestorePoint
  4. Restore-Computer
For assistance with any of them, you can add get-help in front of the Cmdlet, i.e.
get-help Get-ComputerRestorePoint

Tuesday, August 9, 2016

How to install software with command prompt

Connect to internet
open command prompt with admin privileged and run below command as it is...

@powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin

To install software

choco install chrome


choco install winrar


choco search java

choco update <package name>

To uninstall software with command

wmic product get name

wmic product where name="product name" call uninstall /nointeractive

or

for msi package

msiexec /q /x <product name>

msiexec /uninstall Application.msi /quiet

happy downloading brows


Sunday, July 3, 2016

How To Find Wi-Fi Password Using CMD Of All Connected Networks

Whenever we connect to a WiFi network and enter the password to connect to that network, we actually make a WLAN profile of that WiFi network. That profile is stored inside our computer along with the other required details of the WiFi profile.

These steps work even when you are totally offline or you are not connected to the particular wifi you are looking the password for.

How to know the WiFi password using cmd:

  • Open the command prompt and run it as administrator.
netsh wlan show profile
This command will list out all the WiFi profiles that you have ever connected to.

So, let’s go and find out the password for the WiFi 
  • Type the following command to see the password of any WiFi network:
netsh wlan show profile WiFi-name key=clear
  • Under the security settings, in the ‘key content’, you see the WiFi password of that particular network.
Besides knowing the password, you can also use this result to further optimize your WiFi. For example, Under the profile information, you can see mac randomization is disabled. You can turn on mac randomization feature to avoid your location tracking based on the device’s MAC address.

Here is how to turn on mac randomization on Windows 10:

  • Go to settings and click on ‘Network & internet’
  • Choose the ‘WiFi’ in the left pane and click on the advanced option.
  • Turn on the ‘Random Hardware Address’ feature under this settings. If your wireless hardware does not support this feature, the “Random Hardware Addresses” section will not show up at all in the settings app.
  • Once you have turned this on, you are done.
Also, under the connectivity settings, in radio type, you can see the whole list. Channel interference could be another reason for a slow WiFi. So, next time, you might also like to change the radio type settings for a better speed.
As far as radio type is concerned, you can also change that in your router for a better connection or connectivity. For this purpose, we have a dedicated article on to increase WiFi speed by choosing correct WiFi channel.
If you are also aware of some more tricks and tweaks like this, please put them in the comment below. We would be happy to feature some of those in our next articles.

Sunday, June 12, 2016

How To Hide Your Secret Files Inside An Image

Steps to hide your secret files inside any Image!

Step1. At first from the desktop create a folder, name it CodingSec and then put some files. (For Example; put three music files)

Step2. Now suppose if you selected any three then compress those three files using WinRAR(see image). Once you created a RAR file name it as CodingSec.
Step3. Now just put one image as I had done, name it as Logo.jpg (file must be in JPG format). That’s it all done! Exit from that Folder.
Step4. Now Open CMD as Command Prompt from Start Type CMD hit enter. Now start typing as below listed, see image also for better understanding.
Type1: cd Desktop\CodingSec
Type2: copy /b Logo.jpg + CodingSec.rar Logo.jpg
Hit Enter
Type3: exit
You just created an image file that contains all the three files but not visible to anyone until and unless you open that image file using WinRAR Archiver.
If you don’t see your WinRAR Archiver then Choose Default Programs and Browse it to the Bottom of the Windows you can see WinRAR and from there double click to make that enable and open from that file.
Now you can see that your Image file size is increased.
Note: The Image file as Logo, you can move that file to any location of the computer.

Wednesday, June 8, 2016

How to install Linux / UNIX *.tar.gz tarball files

tar.gz also known as tarball, an archive format for electronic data and software. Most Linux tarball contains a source code for software. If you are new to Linux I recommend using apt-get, rpm and yum command to install all binary packages.
Tarballs are a group of files in one file. Tarball files have the extension .tar.gz, .tgz or .tar.bz2. Most open source software use tarballs to distribute programs/source codes.

# 1: Uncompress tarball

To uncompress them, execute the following command(s) depending on the extension:
$ tar zxf file.tar.gz
$ tar zxf file.tgz
$ tar jxf file.tar.bz2
$ tar jxf file.tbz2

Now change directory
$ ls
$ cd path-to-software/

# 2: Build and install software

Generally you need to type 3 commands as follows for building and compiling software:
# ./configure
# make
# make install
Where,
  • ./configure will configure the software to ensure your system has the necessary functionality and libraries to successfully compile the package
  • make will compile all the source files into executable binaries.
  • Finally, make install will install the binaries and any supporting files into the appropriate locations.

# 3: Read INSTALL / README file

Each tarball comes with installation and build instructions. Open INSTALL or README file for more information:
$ vi INSTALL

How to create and extract .tar.gz archive

One of the most common compression formats used inGNU/Linux and variants is tar.gz. A tar.gz file is nothing but a gzipped tar archive. These days users of GNU/Linuxsystem seldom have to use the command line to create or extract tar.gz archives. But it is a useful command to keep in your arsenal if you are a system administrator.

To create a tar.gz archive from a given folder you can use the following command 

tar -zcvf tar-archive-name.tar.gz source-folder-name 

This will compress the contents of source-folder-name to a tar.gz archive named tar-archive-name.tar.gz

To extract a tar.gz compressed archive you can use the following command 

tar -zxvf tar-archive-name.tar.gz 

This will extract the archive to the folder tar-archive-name. 

To eject USB drive in Linux



udisks command completely remove and power off any usb device mounted or attached in the system unmount command just unmount the partition ie: dev/sdb1 or whatever but the usb is still present in the system.
So is not the same unmount, eject and detach
udisks = power off the usb
umount = just unmount the partition not the whole pendrive
eject = the same or very close to umount command
udisks --detach /dev/sdX where (X) is the last letter of your usb device. It works fine on any linux system.

diskutil eject /Volumes/<LABEL>

sudo eject /dev/sda

umount <mount point>         To see mount point user mount command