Saturday, 28 February 2015

How to Install and Uninstall MSI packages.



Here are few methods to install and uninstall .msi packages.,

Install :

- double click the msi it will act like normal exe installation.

- through commad prompt

                    msiexec.exe /i "C:\Users\testuser\Desktop\advinst.msi"

Uninstall:

- right click the msi setup file and click uninstall

- uninstall from control panel.

- command prompt:
                  
                  msiexec.exe /x "C:\Users\testuser\Desktop\advinst.msi" /qn

Batch file for changing the homepage for ie and firefox


Here is a batch file, which let you to change the Homepage for Internet Explorer and Mozilla Firefox:


@Echo off

taskkill /im firefox.exe* /f

ping 1.1.1.1 -n 1 -w 3000 > nul

cd /D "%APPDATA%\Mozilla\Firefox\Pro
files"
cd *.default
set ffile=%cd%
echo user_pref("browser.startup.homepage", "http://www.google.com");>>"%ffile%\prefs.js"
set ffile=
cd %windir%

start firefox.exe

@echo off

taskkill /im iexplore.exe* /f

REG ADD "HKCU\SOFTWARE\MICROSOFT\INTERNET EXPLORER\MAIN" /V "START PAGE" /D "http://www.google.com/" /F

start firefox.exe

Friday, 2 January 2015

How to share folders from Computer [Physical Machine] to Virtual Machine:




1. Click on the option “Devices” of the Virtual Box.
 

2. Select “Shared Folder Settings”.
3. It will display a popup, showing shared folder options.

 

 4. Click on the add option, which will display a popup to select the folder you want to share,


 5. Once selected click “OK”, the VBOXSVR folder will be created on the NETWORK location,


6. Now go to desktop, right click and create a shortcut, mapping to the folder created on the networks.
7. Wow.., everything is done, now whatever file/folder to want to share, just copy to the parent folder in the Computer[Physical Machine] and you can access the same files in the virtual machine too.

Wednesday, 12 November 2014

Registry and commands to retrieve the bios information

Huh.., Registry provides lot of help to us in performing action and gathering information.

Here are some registries from where we can identify the bios information.

[HKEY_LOCAL_MACHINE\HARDWARE\DESCRIPTION\System\BIOS],

which gives the information regarding,

1. BiosMajorRelease
2. BiosMinorRelease
3. ECFirmwareMajorRelease
4. ECFirmwareMinorRelease
5. BaseBoardManufacturer
6. BaseBoardProduct
7. BaseBoardVersion
8. BIOSReleaseDate
9. BIOSVendor
10. BIOSVersion
11. SystemFamily
12. SystemManufacturer
13. SystemProductName
14. SystemSKU
15. SystemVersion


Commands that are used to retrieve bios information are,

1. Systeminfo | findstr /C:BIOS

Output:

BIOS Version:              Insyde F.22, 8/6/2014

2. wmic bios get /?

which gives all the paramters that can be retrieved.

Thursday, 25 September 2014

Different methods to uninstall Service Pack 2 from Windows XP:

Method 1:

1. Open Control Panel and navigate to "Control Panel\Programs\Programs and Features".
2. Select the service pack 2 and click uninstall.


Method 2:

1. Open Command prompt in admin mode.
2. Type the following command to uninstall the hidden files,

         c:\windows\$NtServicePackUninstall$\spuninst\spuninst.exe

This step will allow to uninstall the SP2 completely.

Enable Or Disable a particular feature in Windows Feature (Win 7,8):

Inorder to disable or enable any Windows Features, the manual method requires the following steps,

1. Click Start and type "Trun Windows features on or off".
2. Press Enter and do select the particular feature that has to be altered.
3. Finally restart.


If Performed through command prompt, following are the steps required,

1. Open command prompt in admin mode.
2. Type the command and press enter to get the details of all the features in the system.

               dism /online /get-features | more

3. Type the command to enable a particular feature,
     
              dism /online /enable-feature /featurename:<feature name>

   Example: dism /online /enable-feature /featurename:TelnetClient

4. Type the command to disable a particular feature,
     
              dism /online /disable-feature /featurename:<feature name>

   Example: dism /online /disable-feature /featurename:TelnetClient

Friday, 8 August 2014

Command to retrieve domain information

Here is the command which help to identify the group policy settings for the system as well as user.


Command : gpresult /r