Saturday, January 12, 2019

Enable/Restore Cyberoam Appliance Access


Administrator would not be able to access Cyberoam Appliance from the Web Admin Console due to wrong configuration executed at the appliance. Occurrence of following events can result into loss of Cyberoam Appliance Access:

·         HTTP or HTTPS options are unchecked under appliance access for LAN / WAN / DMZ zone.
·         Virtual host has been created and forwards all services to internal server which makes Cyberoam inaccessible.
·         If Cyberoam Stateful bypass networks contains Cyberoam IP address as Source and Destination, then Cyberoam would not be accessible.

If any of the above-mentioned events occur, the appliance will not be accessible by any protocol – HTTP, HTTPS, Telnet or SSH and the Cyberoam Telnet Console/Cyberoam Web Admin Console would be locked due to wrong configuration.

Note:

·         The steps given below will temporary disable the firewall module and custom configuration i.e. entire traffic will get DROPPED until the completion of all the steps.
·         Cyberoam will not be accessible in case the default ports of Cyberoam has been changed to custom ports and the administrator has forgotten the customized port.

 Follow the steps mentioned below to enable Appliance Access.

1.    Logon to the Cyberoam CLI console.

2.    Choose option 4. Cyberoam Console and execute the following command at the console prompt: 

       cyberoam appliance_access enable





3.    After performing the above steps, try to access the appliance from Web Admin Console (HTTP or HTTPS) and change the configuration that locked your appliance.


4.   Now, go to the CLI and disable the appliance access by executing the command:cyberoam appliance_access disable. Cyberoam will restore the previous configuration settings, except the changes you have made after enabling Cyberoam appliance access from   CLI.

                                             

Thursday, December 20, 2018

WINDOWS LOADS WITH TEMPORARY PROFILE

WINDOWS LOADS WITH TEMPORARY PROFILE

How to restore the correct user profile after Windows starts logging in with a temporary user profile.
The first step, if the profile is not completely corrupt, is to rename the temporary profile registry key and revert the correct profile back.
  1. Log in with your temporary profile if your account has administrative rights or with the local administrator account.
  2. Start the registry editor and navigate to HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList

  3. Look for the profile with the ".bak".  This is the CORRECT old profile.

  4. Rename the profile that does not have ".bak" by adding "_new" to the end.  You can really add anything to change the name of this profile, just be sure to rename the profile with the matching SID.  Next remove the ".bak" from the correct profile.


  5. Log off and then log back in with the profile that was problematic.  It is possible that Windows will undo everything you have just done and rename the profile again.  If this happens you can try running a Check Disk on the partition that contains the user profiles.  You will need to re-do all the steps above, run Check Disk, and restart.  If this doesn't correct the issue, you will need to remove the offending profile and recreate it.
To remove the domain profile and recreate it:
  1. Follow the above steps to clean up the registry, then log in as a local administrator.
  2. Navigate to the profile directory C:\Users\NetID and back up any data that is needed from the profile.
  3. Navigate to All Control Panel Items>>System>>Advanced system settings>>Settings


  4. Locate the corrupt profile ION\NetID and Delete this profile.


  5. Navigate to C:\Users and make sure the folder titled by the corrupt profile NetID is gone.  If not, delete this folder.
  6. Log out or restart and log back in using the previously corrupt NetID profile.  Windows will build a new profile for this NetID from the Default profile.
  7. Restore any data to the profile that was previously backed up.

Tuesday, December 18, 2018

You can’t connect to the file share because it’s not secure. This share requires the obsolete SMB1 protocol.

With Windows 10 v1803 or Spring Creators update released I have decided to do a fresh installation on my PC. Once everything was done I have tried to map network share on my Popcorn Hour VTEN media streamer. Unfortunately, I wasn’t able to do so as it seems that Microsoft disabled SMB1 protocol with this release.
When I have tried to map a network drive I have received the following error message:
You can’t connect to the file share because it’s not secure. This share requires the obsolete SMB1 protocol, which is unsafe and could expose your system to attack.
You can't connect to the file share
Since Popcorn Hour is using Linux and the latest available update is installed I didn’t have many options to fix this problem. In order to fix this, I had to install and enable the SMB1 protocol by using Powershell.
Here’s how to do it:
Run Powershell command processor in elevated mode (run as admin)
Type the following command:
get-windowsoptionalfeature -online –featurename smb1protocol
Once SMB has been installed please type the following command to activate it:
enable-windowsoptionalfeature -online –featurename smb1protocol
Once done, press Y and hit enter to restart your computer.
You can't connect to the file share
Please have in mind that SMBv1 protocol is now obsolete and that Microsoft strongly advises consumers to use SMB2 or higher protocol. If you really need SMBv1 protocol like I do I would recommend you to enable SMBv1 only when you are using this network share. When you don’t need to access the share you can disable the SMBv1 protocol with the following command:
disable-windowsoptionalfeature -online –featurename smb1protocol

Tuesday, May 9, 2017

Ping Status with Date and Time stamp save in txt file

Windows Command

ping -t ip or host name|cmd /q /v /c "(pause&pause)>nul & for /l %a in () do (set /p "data=" && echo(!date! !time! !data!)&ping -n 2 ip or host name>nul" >C:\pingtest.txt

Windows Batch Script 

ping -t ip or host name|cmd /q /v /c "(pause&pause)>nul & for /l %%a in () do (set /p "data=" && echo(!date! !time! !data!)&ping -n 2 ip or host name>nul" >C:\pingtest.txt



Read More: https://www.raymond.cc/blog/timestamp-ping-with-hrping/

Friday, July 29, 2016

Exporting the Outlook Contacts as iOS Ready vCards

From Outlook on the Windows PC:
  1. Select all contacts in Outlook and forward them all to yourself as vcards
  2. Save all the attachments as vCards in a temporary easy to find folder, such as c:\temp
  3. Open a command prompt (Start menu, Run, type “command.com”) and type the following commands:
       cd c:\temp   copy /a *.vcf c:\allcards.vcf

The last commands are essential because it joins all of the Outlook contacts together into a single vCard file that can then be easily imported into iOS and the iPhone.

Tuesday, July 26, 2016

Windows 10 Password Recovery

This password is incorrect
This password is incorrect
Following are the steps to reset a Windows 10 password:
  1. Boot from the Windows 10 DVD. Make sure that your PC setup is configured to boot from a DVD and that UEFI and Secure Boot are disabled.
    Boot from Windows 10 DVD
    Boot from Windows 10 DVD
  2. Press SHIFT + F10 to open a command prompt.
    Open a command prompt with SHIFT F10
    Open a command prompt with SHIFT + F10
  3. Replace the file utilman.exe with cmd.exe. Before you do this, you should make a copy of utilman.exe so that you can restore it later. Note that you can only restore this file if you boot again from the Windows DVD.
                    1   move d:\windows\system32\utilman.exe d:\windows\system32\utilman.exe.bak
                    2   copy d:\windows\system32\cmd.exe d:\windows\system32\utilman.exeReplace utilman.exe with cmd.exe

  1. Replace utilman.exe with cmd.exe
  2. After you have replaced utilman.exe successfully, you can remove the DVD and restart your problematic Windows 10 installation:
                                       wpeutil reboot
  1. Reboot Windows 10
    Reboot Windows 10
  2. On the Windows 10 sign-in page, click the Utility Manager icon.
    Click the Utility Manager icon
    Click Utility Manager iconSince we replaced the Utility Manager with the cmd.exe, a command prompt should open now. Don’t worry about the error message.
    Command prompt at sign in page
    Command prompt at sign-in page
  3. You can now add a new user with the command below. We also have to add the user to the administrator group so that we regain full control of our Windows installation. Replace <username> with the account name of your choice. Note that the account name must not exist on this Windows installation. Don’t let the Windows 10 screen saver distract you.
                               net user <username> /add
                               net localgroup administrators <username> /add 


  1. Add a new user and adding the user to the administrator group
    Add a new user and adding the user to the administrator group
  2. Click the screen to make the sign-in page appear again. Your new account should show up, and you can sign in without a password.
    Sign in with new local account
    Sign in with a new local account
  3. You can now access the files associated with your Microsoft account in the C:\Users folder.
    Users folder
    Users folder
  4. If you worked with a local account instead of a Microsoft account, you can reset your password in Computer Management. Right-click the Start button, select Computer Management, and navigate to Local Users and Groups. Right-click your local account and select Set Password.
    Reset Windows 10 password
    Reset Windows 10 password
A shorter way to reset the password of a local account is to replace the first command in step 6 with the following command. (In this case, you don’t need to create a new user.)
               
                               net user <username> <password>

Notice that resetting a password with this command doesn’t work with a Microsoft account. The only way to reset a Microsoft account password is through the online forms.

*This is for my Reference* 



Saved Wireless Password Recovery in Windows 10

Show the list of wireless profiles:
netsh wlan show profiles

Retrieve the stored key (WPA, WEP, etc) of a profile:
netsh wlan show profiles name=[profile name] key=clear

Delete a wireless profile:
netsh wlan delete profile name=[profile name]

Set a network’s priority:
netsh wlan set profileorder name=[profile name]interface=[interface_name] priority=1

Stop automatically connecting to a network:
netsh wlan set profileparameter name=[profile name] connectionmode=manual

Though you can’t actually make changes to the network profiles themselves, you can export a desired profile, make changes to the XML file, and then import the profile back onto the same machine or another one.

In Windows 8, Microsoft also removed the ability to save/export the network profiles from the GUI in the Wireless Network Properties box under the Connection tab. However, it’s still possible via Netsh commands:

Export a wireless network profile:
netsh wlan export profile name=[profile name]

Import a network profile:

netsh wlan add profile filename=[path_and_filename.xml] interface=[interface_name]

Wednesday, October 21, 2015

Control Panel Command

Control Panel Command Line Commands in Windows

Control Panel AppletCommandOS Version
Accessibility Optionscontrol access.cplXP
Action Centercontrol /name Microsoft.ActionCenter8, 7
control wscui.cpl8, 7
Add Features to Windows 8control /name Microsoft.WindowsAnytimeUpgrade8
Add Hardwarecontrol /name Microsoft.AddHardwareVista
control hdwwiz.cplXP
Add or Remove Programscontrol appwiz.cplXP
Administrative Toolscontrol /name Microsoft.AdministrativeTools8, 7, Vista
control admintools8, 7, Vista, XP
Automatic Updatescontrol wuaucpl.cplXP
AutoPlaycontrol /name Microsoft.AutoPlay8, 7, Vista
Backup and Restore Centercontrol /name Microsoft.BackupAndRestoreCenterVista
Backup and Restorecontrol /name Microsoft.BackupAndRestore7
Biometric Devicescontrol /name Microsoft.BiometricDevices8, 7
BitLocker Drive Encryptioncontrol /name Microsoft.BitLockerDriveEncryption8, 7, Vista
Bluetooth Devicescontrol bthprops.cpl138, 7, Vista
control /name Microsoft.BluetoothDevicesVista
Color Managementcontrol /name Microsoft.ColorManagement8, 7, Vista
Color1WinColor.exe2XP
Credential Managercontrol /name Microsoft.CredentialManager8, 7
Client Service for NetWarecontrol nwc.cplXP
Date and Timecontrol /name Microsoft.DateAndTime8, 7, Vista
control timedate.cpl8, 7, Vista
control date/time8, 7, Vista, XP
Default Locationcontrol /name Microsoft.DefaultLocation7
Default Programscontrol /name Microsoft.DefaultPrograms8, 7, Vista
Desktop Gadgetscontrol /name Microsoft.DesktopGadgets7
Device Managercontrol /name Microsoft.DeviceManager8, 7, Vista
control hdwwiz.cpl8, 7, Vista
devmgmt.msc8, 7, Vista, XP3
Devices and Printerscontrol /name Microsoft.DevicesAndPrinters8, 7
control printers8, 7
Displaycontrol /name Microsoft.Display8, 7
control desk.cplXP
control desktopXP
Ease of Access Centercontrol /name Microsoft.EaseOfAccessCenter8, 7, Vista
control access.cpl8, 7, Vista
Family Safetycontrol /name Microsoft.ParentalControls8
File Historycontrol /name Microsoft.FileHistory8
Flash Player Settings Managercontrol flashplayercplapp.cpl8
Folder Optionscontrol /name Microsoft.FolderOptions8, 7, Vista
control folders8, 7, Vista, XP
Fontscontrol /name Microsoft.Fonts8, 7, Vista
control fonts8, 7, Vista, XP
Game Controllerscontrol /name Microsoft.GameControllers8, 7, Vista
control joy.cpl8, 7, Vista, XP
Get Programscontrol /name Microsoft.GetPrograms8, 7, Vista
Getting Startedcontrol /name Microsoft.GettingStarted7
Home Groupcontrol /name Microsoft.HomeGroup8, 7
Indexing Optionscontrol /name Microsoft.IndexingOptions8, 7, Vista
rundll32.exe shell32.dll,Control_RunDLL srchadmin.dll8, 7, Vista, XP
Infraredcontrol /name Microsoft.Infrared8, 7
control irprops.cpl8, 7, Vista
control /name Microsoft.InfraredOptionsVista
Internet Optionscontrol /name Microsoft.InternetOptions8, 7, Vista
control inetcpl.cpl8, 7, Vista, XP
iSCSI Initiatorcontrol /name Microsoft.iSCSIInitiator8, 7, Vista
Keyboardcontrol /name Microsoft.Keyboard8, 7, Vista
control keyboard8, 7, Vista, XP
Languagecontrol /name Microsoft.Language8
Location and Other Sensorscontrol /name Microsoft.LocationAndOtherSensors7
Location Settingscontrol /name Microsoft.LocationSettings8
Mail4control mlcfg32.cpl58, 7, Vista, XP
Mousecontrol /name Microsoft.Mouse8, 7, Vista
control main.cpl8, 7, Vista
control mouse8, 7, Vista, XP
Network and Sharing Centercontrol /name Microsoft.NetworkAndSharingCenter8, 7, Vista
Network Connectionscontrol ncpa.cpl8, 7, Vista
control netconnections8, 7, Vista, XP
Network Setup Wizardcontrol netsetup.cpl8, 7, Vista, XP
Notification Area Iconscontrol /name Microsoft.NotificationAreaIcons8, 7
ODBC Data Source Administratorcontrol odbccp32.cplXP6
Offline Filescontrol /name Microsoft.OfflineFiles8, 7, Vista
Parental Controlscontrol /name Microsoft.ParentalControls7, Vista
Pen and Input Devicescontrol /name Microsoft.PenAndInputDevicesVista
control tabletpc.cplVista
Pen and Touchcontrol /name Microsoft.PenAndTouch8, 7
control tabletpc.cpl8, 7
People Near Mecontrol /name Microsoft.PeopleNearMe7, Vista
control collab.cpl7, Vista
Performance Information and Toolscontrol /name Microsoft.PerformanceInformationAndTools8, 7, Vista
Personalizationcontrol /name Microsoft.Personalization8, 7, Vista
control desktop8, 7, Vista
Phone and Modem Optionscontrol /name Microsoft.PhoneAndModemOptionsVista
control telephon.cplVista, XP
Phone and Modemcontrol /name Microsoft.PhoneAndModem8, 7
control telephon.cpl8, 7
Power Optionscontrol /name Microsoft.PowerOptions8, 7, Vista
control powercfg.cpl8, 7, Vista, XP
Printers and Faxescontrol printersXP
Printerscontrol /name Microsoft.PrintersVista
control printersVista
Problem Reports and Solutionscontrol /name Microsoft.ProblemReportsAndSolutionsVista
Programs and Featurescontrol /name Microsoft.ProgramsAndFeatures8, 7, Vista
control appwiz.cpl8, 7, Vista
Recoverycontrol /name Microsoft.Recovery8, 7
Regioncontrol /name Microsoft.RegionAndLanguage8
control intl.cpl8
control international8
Region and Languagecontrol /name Microsoft.RegionAndLanguage7
control intl.cpl7
control international7
Regional and Language Optionscontrol /name Microsoft.RegionalAndLanguageOptionsVista
control intl.cplVista
control internationalVista, XP
RemoteApp and Desktop Connectionscontrol /name Microsoft.RemoteAppAndDesktopConnections8, 7
Scanners and Camerascontrol /name Microsoft.ScannersAndCameras8, 7, Vista
control sticpl.cplXP
Scheduled Taskscontrol schedtasksXP7
Screen Resolutioncontrol desk.cpl8, 7
Security Centercontrol /name Microsoft.SecurityCenterVista
control wscui.cplXP
Software Explorers8msascui.exe9XP
Soundcontrol /name Microsoft.Sound8, 7
control /name Microsoft.AudioDevicesAndSoundThemesVista
control mmsys.cpl8, 7, Vista
Sounds and Audio Devicescontrol mmsys.cplXP
Speech Recognition Optionscontrol /name Microsoft.SpeechRecognitionOptionsVista
Speech Recognitioncontrol /name Microsoft.SpeechRecognition8, 7
Speechcontrol sapi.cpl10XP
Storage Spacescontrol /name Microsoft.StorageSpaces8
Sync Centercontrol /name Microsoft.SyncCenter8, 7, Vista
Systemcontrol /name Microsoft.System8, 7, Vista
control sysdm.cplXP
System Propertiescontrol sysdm.cpl8, 7, Vista
Tablet PC Settingscontrol /name Microsoft.TabletPCSettings8, 7, Vista
Task Scheduler7control schedtasks8, 7, Vista
Taskbarcontrol /name Microsoft.Taskbar8
rundll32.exe shell32.dll,Options_RunDLL 18
Taskbar and Start Menucontrol /name Microsoft.TaskbarAndStartMenu7, Vista
rundll32.exe shell32.dll,Options_RunDLL 17, Vista, XP
Text to Speechcontrol /name Microsoft.TextToSpeech8, 7, Vista
Troubleshootingcontrol /name Microsoft.Troubleshooting8, 7
User Accountscontrol /name Microsoft.UserAccounts8, 7, Vista
control userpasswords8, 7, Vista, XP
Welcome Centercontrol /name Microsoft.WelcomeCenterVista
Windows 7 File Recoverycontrol /name Microsoft.BackupAndRestore8
Windows Anytime Upgradecontrol /name Microsoft.WindowsAnytimeUpgrade7, Vista
Windows CardSpacecontrol /name Microsoft.CardSpace7, Vista
control infocardcpl.cpl7, Vista
Windows Defendercontrol /name Microsoft.WindowsDefender8, 7, Vista11
Windows Firewallcontrol /name Microsoft.WindowsFirewall8, 7, Vista
control firewall.cpl8, 7, Vista, XP
Windows Marketplacecontrol /name Microsoft.GetProgramsOnlineVista
Windows Mobility Centercontrol /name Microsoft.MobilityCenter8, 7, Vista
Windows Sidebar Propertiescontrol /name Microsoft.WindowsSidebarPropertiesVista
Windows SideShowcontrol /name Microsoft.WindowsSideShow8,7, Vista
Windows Updatecontrol /name Microsoft.WindowsUpdate8, 7, Vista12
Wireless Linkcontrol irprops.cplXP
Wireless Network Setup Wizard?XP