Hiding the Drive from others

With a simple technique you can hide a drive from other. Just be sure that before hiding the drive, there should not be any files in use else you would not be able to hide the drive. Also keep in mind that you would not be able to hide system drive.
  • Open the computer management console. You can open this from ( For Windows XP) control panel -> Performance and Maintenance -> Administrative Tools -> Computer Management.  ( For Windows 7) control panel -> System and Security -> Administrative Tools -> Computer Management.
  • Else you can execute command "compmgmt.msc" from Run or command prompt.
  • In the computer management console, on the left hand side select Storage -> Disk Management.
  • Selecting Disk Management will show you, the disk drives present on your computer, it will also list your other drives such as CD Drive, floppy drive if any.
  • The choose any drive you want to hide, and right click on that. 
  •   
  • On the context menu select "Change Drive Letter and Path", which will launch the dialog box where you can change or remove drive letter. 
  • On the "Change Drive Letter Path" drive click "Remove" button. 
  •  It will launch the confirmation dialog, say yes there and you are done.
Now launch the my computer, you will not find your hidden drive there. 

    Enabling Remote Desktop on a Remote Machine

    Sometimes you require to remotely connect your computer, but unfortunately you have'nt enabled the Remote Desktop connection on the remote computer. Then it becomes time consuming to go and enable remote desktop on the remote computer. But there is a way to enable remote desktop from any other computer through the registry settings.


    Steps below demonstrate how to enable remote desktop on a remote machine.  
    1. Start Registry Editor on your computer.
    2. Under File Menu select "Connect Network Registry" option. 
    3. It will launch the  "Select Computer" dialog box. Either browse Active Directory to locate the remote server, or type its name in the textbox. Click OK and a node will be displayed in Registry Editor for the remote machine. 
    4. Now browse HKLM on remote computer registry to find the following Registry key: HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server. 
    5. Under the Terminal Server key, search for a  REG_DWORD value of name fDenyTSConnection
    6. Set the value of fDenyTSConnection to 0, which will enable the remote desktop on that machine.
    7. To have effect of this change, restart your remote computer using command: shutdown -r -t 00 /m \\Server_name_or_IP

    After the remote machine reboots, you can Remote Desktop your computer. 


    Note: You should have permissions to remotely modify the registry settings on your remote computer and important thing is the Remote Registry Service on your remote computer should be running. 

    How to use Remote Desktop Connection

    Remote Desktop facilitates you to access a remote computer from any other computer. This means, for example, that you can connect to your work computer from home and have access to all of your applications, files, and network resources as though you were in front of your computer at work. 


    Remote Desktop also allows more than one user to have active sessions on a single computer.



    To enable remote desktop on your computer follow these steps :

    1. Right click "My Computer" icon on desktop or start menu. 
    2. Select properties, it will show you the system properties. Alternately you can launch this by pressing "Windows + Pause Break" key on keyboard.   
    3. Now on the System Properties dialog box, select the "Remote" Tab.
    4. Now select the check box "Allow user to connect...". As shown in above figure.
    Now you are ready to connect this computer from any computer, for this you should know the IP address of the computer.

    To connect your remote desktop enabled computer from any other computer, go to Start, select Run, in Run dialog type "mstsc" click OK. 

    This will launch Remote Desktop Connection dialog, here type the IP Address of your remote computer, and press OK, withing some moment you will prompt for user name and password, input the user name and password and you are done. It will connect to remote computer if its accessible on network.  Then you are ready to use your remote computer as if you are working on it directly. 

    But be sure that firewall is disable or you have added the remote desktop to firewall extension, after enabling the remote desktop on remote computer.

    Bypass traverse checking Access Right

    Policy Setting Location:

    Open the group policy which defines this settings, this is usually a default domain controller policy. You can open group policies using Group Policy Object Editor, this console is by default installed on windows operating system. Fastest way of opening group policy object editor is to execute command “gpedit.msc” from Run prompt.  Under group policy object expand
    “Computer Configuration\Windows Settings\Security Settings\Local Policies\User Rights Assignment”, on right hand side you will see the policy “Bypass traverse checking”.

    Policy Description:

    This user right determines which users can traverse directory trees even though the user may not have permissions on the traversed directory.
    The users having this privilege are not able to list the contents of a directory, they can only traverse directories.
    This user right is defined in the Default Domain Controller Group Policy object (GPO) and in the local security policy of workstations and servers.
    The default groups that have this right on each platform are:
    • Workstations and Servers
      • Administrators
      • Backup Operators
      • Power Users
      • Users
      • Everyone
    • Domain Controllers
      • Administrators
      • Authenticated Users
      • Everyone
    Once you change this setting you should restart the machine or at least execute following command from command prompt:
    gpupdate /force
    Executing this command will refresh the machine policy settings.

    How to Use Scheduled Tasks

    Windows has a good feature called Scheduled Task, which let user execute the specified task to execute daily, weekly, monthly, at the specified time. 


    You can automate your different time consuming tasks on the times when you are not using your computer, such as disk cleanup, disk fragmentation, any many more. 


    Follow below steps to use the create new scheduled task, steps are explained from the windows XP prespective.  
    1. Open Control Panel from Start Menu or typing Control in the Run window.
    2. Under Category View  of control panel select "Performance and Maintenance". If your control panel view is classic then you will directly find "Scheduled Tasks" folder like icon.
    3. Under Scheduled Tasks, right click then Select New ->Scheduled Tasks.
    4. Specify the Name for the New Task. Then right click the newly created task.
    5. Select Properties.  This will show the properties window for the new schedule task. 
    6. Under Run specify the executable you want to run as your schedule task. This can be any exe, batch file(.bat) or a script that you want to execute. 
    7. In front of  "Run as: " provide the user name and valid password of the user, under this user context the schedule task will execute.
    8. On Schedule tab, provide when, how frequently you want to execute the task.
    9. Now press Apply then OK. Now your task is ready to execute at specified date time.

    Modifying System Startup: To load selective startup

    If your windows operating system is booting/running slow, then more number of unwanted program loading at startup might be one of the reason behind this.


    You can load the selective startup, so that required programs only get loaded. Follow below steps to do this. 


    Caution: Be sure that which programs you are going to remove from startup, because if you de-select programs such as device driver or any of the required services then the operating system might not function correctly.
      
    1. Click Start, select Run.
    2. Type msconfig. Click OK. This will launch dialog as below. 




    3. Under startup selection click on Selective Startup.
    4. Then Select Startup tab.


    5. There you will find the programs that are going to be loaded at startup. 
    6. By unselecting them, they will not load during startup.
    7. Click Apply then OK.
    8. It will show message box as below.
     9. Here click restart if you want to restart. 

    Golang: Http POST Request with JSON Body example

    Go standard library comes with "net/http" package which has excellent support for HTTP Client and Server.   In order to post JSON ...