Monday, 5 August 2019

Cucumber.api cannot be resolved

If you face the issue as "cucumber.api cannot be resolved". Please follow the following steps.


1. Update the dependency to the latest
2. Remove the scope parameter in the pom.xml on all dependency

eg:  <!--  <scope>test</scope>-->

3. Click save, the problem will be resolved

Thursday, 4 June 2015

How to install .msi package in SafeMode?

How to install .msi package in SafeMode,

When tried to install any msi package in safemode, it will just display a popup as, Windows Installer service is not running on safemode. Inorder to rectify it, here comes a solution.

If machine is in SafeMode :

1. Open command prompt in admin mode
2. Type the command - REG ADD "HKLM\SYSTEM\CurrentControlSet\Control\SafeBoot\Minimal\MSIServer" /VE /T REG_SZ /F /D "Service"
3. Once the opreation is success, run the command - net start msiserver
4. The windows installer service will be started successfully, which in turn allows to install msi packages.

If machine is in SafeMode with Network :

1. Open command prompt in admin mode
2. Type the command - REG ADD "REG ADD "HKLM\SYSTEM\CurrentControlSet\Control\SafeBoot\Network\MSIServer" /VE /T REG_SZ /F /D "Service""
3. Once the opreation is success, run the command - net start msiserver
4. The windows installer service will be started successfully, which in turn allows to install msi packages.

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

Thursday, 12 June 2014

Methods the Identify the machine state

The registry and the commands supports us a lot in performing many actions on the computer. One among those is, identification of the machine boot state.

The registry that says the machine state is,

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control],SystemStartOptions

The same can be identified through the command,

 * wmic COMPUTERSYSTEM GET BootupState

Thursday, 15 May 2014

Enable or Disable UAC

It is quite easy to enable or disable UAC through registry editor.., in-order to do so use the following commands.

To Enable UAC:
1. Open command prompt.
2. Type the  command "REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 1 /f"
3. Click "Enter".

To Disable UAC:
1. Open command prompt.
2. Type the  command "REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 0 /f"
3. Click "Enter".

[OR]

To Enable UAC:
1. Open command prompt.
2. Type the  command "REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v ConsentPromptBehaviorAdmin /t REG_DWORD /d 1 /f"
3. Click "Enter".

To Disable UAC:
1. Open command prompt.
2. Type the  command "REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v ConsentPromptBehaviorAdmin /t REG_DWORD /d 0 /f"
3. Click "Enter"

 

How to create dialog boxes through notepad?

Here is a script that helps to create different message boxes.

Steps to follow:
1. Open notepad.exe
2. Type the scrip "x=msgbox("Your Message Here" ,0, "Your Title Here")"
     Example : x=msgbox("hello" ,4+16, "warning")

Creation of different dialog boxes:
If you want to create different dialog boxes, just change the number 0 with the appropriate values.
  * 0 -OK button only 
  * 1 -OK and Cancel buttons
  * 2 -Abort, Retry, and Ignore buttons
  * 3 -Yes, No, and Cancel buttons
  * 4 -Yes and No buttons
  * 5 -Retry and Cancel buttons
  * 16 -Critical Message icon
  * 32 -Warning Query icon
  * 48 -Warning Message icon
  * 64 -Information Message icon
  * 0 -First button is default
  * 256 -Second button is default
  * 512 -Third button is default
  * 768 -Fourth button is default
  * 0 -Application modal (the current application will not work until the user responds to the message box)
  * 4096 -System modal (all applications wont work until the user responds to the message box)
  * 4+16 - Warning message box


Tuesday, 13 May 2014

Easy way to add or delete user

Here is an easiest way which helps to create or delete user,

Command to create user:

SYNTAX: net user username password /add

EXAMPLE:  NET USER TEST 123456 /ADD

Command to delete a user:


SYNTAX: net user username /del

EXAMPLE:  NET USER TEST /DEL

Monday, 12 May 2014

Enable or disable proxy though command line and registry.

It quite easy to set proxy through command prompt ans to enable or disable proxy settings.

Through Command:

1. To set proxy:

     netsh winhttp set proxy [proxy server address:port number] [bypass list]

 Example :  netsh winhttp set proxy 192.168.1.2:8080 *.192.168.1.2

Result:

 Current WinHTTP proxy settings:

    Proxy Server(s) :  192.168.80.2:8080
    Bypass List     :  *.192.168.80.2

 2. To  check the proxy settings:

    netsh winhttp show proxy

 3. To remove proxy settings:

   netsh winhttp reset proxy


Through Registry:

1. Open regedit.exe

2. Navigate to "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings"

3. Create a DWORD "ProxyServer" and give the data as the proxyserver:port example: 192.168.80.2:8080

4. The above step will enable the proxy and make the data to "0" to disable proxy.

Unlock machine using command Line.

Here is a command which allows to unlock a machine,

1. Open cmd prompt.
2. Type the command "rundll32.exe user32.dll, LockWorkStation"
3. Press enter.

Monday, 5 May 2014

Command to open Windows Explorer through cmd.

Command to open Windows Explorer through cmd.

Here are the commands which are used to open the windows explorer from the command prompt. They are:

1. "start ."
2. "explorer ."

Monday, 7 April 2014

How to remove all games from Games Explorer on windows.?

Here are few ways that helps to enable or disable the games from Games Explorer.

Through regedit:
1. Open regedit.exe through run.
2. Navigate to the location : HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion
3. Delete the key "gameux".

Through UI:
1. Open "Turn Windows Features On or OFF" through  start.
2. Disable Games.

Thursday, 3 April 2014

Registry Key to Disable shutdown

Here is the registry key which prevents a machine from shutdown by disabling the option. In-order to make it work, follow the below steps,

1. Open regedit.
2. Navigate to the path:  HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer
3. Create a DWORD "NoClose" and modify the data to "1" to disable shutdown option.

The above registry path is for all the users and if it is to be implemented only for a particular user, use the location, HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer and do the same.

Saturday, 29 March 2014

Coomand to open recycle bin:


Here is the command which helps to open the recycle bin.

1. Through command prompt: start shell:RecycleBinFolder
2. Through run: shell:RecycleBinFolder

Enable Auto Lock via group policy and registry

Via Registry Editor:
1. Open Regedit.
2. To enable autolock Modify the data of the values on the location "[HKEY_CURRENT_USER\Control Panel\Desktop]" as,
     "ScreenSaveActive"="1"
     "ScreenSaveTimeOut"="60"
     "ScreenSaverIsSecure"="1"

Via Group policy:
1. Open gpedit.msc through run.
2. Do the following changes on the location "user configuration>Administrative templates>personalization>
     enable Screensaver
     Password protect the Screensaver
     Screensaver timeout "