Showing posts with label Windows. Show all posts
Showing posts with label Windows. Show all posts

01 September 2025

It always asks for Recovery Key when I boot to Windows, after I set up dual boot (Windows + Ubuntu)

1. To boot into Windows 

Press F12 to enter boot menu. Choose Windows.

 

2. To boot into Ubuntu

(1) Do NOT press F12. Simply wait, and choose 'Ubuntu'. 

Explanation: To boot into Windows, use Windows Boot Manager; to boot into Ubuntu, use GRUB. 

(2) Press F12 to enter boot menu. Choose Ubuntu.

18 August 2022

06 September 2021

Accessing network applications between windows and wsl linux ubuntu

Accessing network applications between windows and wsl linux ubuntu

https://docs.microsoft.com/en-us/windows/wsl/compare-versions

 
Accessing Linux networking apps from Windows (localhost)
Accessing Windows networking apps from Linux (host IP)
Connecting via remote IP addresses
Accessing a WSL 2 distribution from your local area network (LAN)
IPv6 access


26 June 2021

On Windows, How to Install, Create and Activate a Python Virtual Environment (Project) for Django? mkvirtualenv is not recognized as an internal or external command, operable program or batch file

 (For Windows)

How to Install, Create and Activate a Python Virtual Environment (Project) for Django? 

mkvirtualenv is not recognized as an internal or external command, operable program or batch file


https://stackoverflow.com/questions/56778211/error-message-mkvirtualenv-is-not-recognized-as-an-internal-or-external-command


For Python 3.3 or newer, Commands for installing, creating and activate virtual environment has been changed.

You can install virtual environment using pip:

py -m pip install --user virtualenv

For creating new environment:

py -m venv myproject

To activate your virtual environment:

.\myproject\Scripts\activate

After activating virtual environment, You’ll see “(myproject)” next to the command prompt.

04 November 2020

How to create local account on Windows using command?

How to create local account on Windows using command?

https://pureinfotech.com/create-local-account-windows-10/

If you’re comfortable typing command lines, it’s actually a lot faster to create a local account on Windows 10 using Command Prompt.

To create a local account on Windows 10 with Command Prompt, use these steps:

  1. Open Start.

  2. Search for Command Prompt, right-click the result, and select the Run as administrator option.

  3. Type the following command and press Enter:

    net user USER_NAME PASSWORD /add

    In the above command make sure to change USER_NAME and PASSWORD with the credentials you want to use for the new user account.

  4. Type the following command to add the newly created account to the Administrators group and press Enter:

    net localgroup administrators USER_ACCOUNT /add
    Creating admin local account using Command Prompt
    Creating admin local account using Command Prompt

    In the command, make sure to replace USER_ACCOUNT with the account name you want to add to the administrators group.

If you want to test the new changes, sign-out and you’ll notice the new user account sitting in the bottom-left corner of the screen. Then select the new user account and sign in.

It’s also possible to create a local account using PowerShell, and here are the steps.

How to change local account using Command Prompt

To change the account type from standard to administrator, use these steps:

  1. Open Start.

  2. Search for Command Prompt, right-click the result, and select the Run as administrator option.

  3. Type the following command to add the newly created account to the Administrators group and press Enter:

    net localgroup administrators USER_ACCOUNT /add
    Creating admin local account using Command Prompt
    Creating admin local account using Command Prompt

    In the command, make sure to replace USER_ACCOUNT with the account name you want to add to the administrators group.

Once you complete the steps, the next time the users signs in, the account will have administrative privileges, meaning that the users will be able to install apps, modify system settings, and pretty much unlimited access to the device.

How to delete local account using Command Prompt

To change the account type from standard to administrator, use these steps:

  1. Open Start.

  2. Search for Command Prompt, right-click the result, and select the Run as administrator option.

  3. Type the following command to add the newly created account to the Administrators group and press Enter:

    net user USER_ACCOUNT /del

    In the command, make sure to change USER_ACCOUNT for account name you want to delete.

Once you complete the steps, the next time the users signs in, the account will have administrative privileges, meaning that the users will be able to install apps, modify system settings, and pretty much unlimited access to the device.

Update January 29, 2020: This guide was originally published in October 2015, and it’s been updated in January 2020 to reflect the new changes.

20 September 2019

Remotely Enable Remote Desktop on Windows 10

Remotely Enable Remote Desktop on Windows 10

https://mediarealm.com.au/articles/remotely-enable-remote-desktop-windows-10/


We’ve all been there – we’ve finished at a customer’s site, and need to quickly remote in later on to finish/fix something. Trouble is, Windows doesn’t enable Remote Desktop Protocol by default.
There are four steps needed to remotely enable RDP connections in Windows 10.
  1. Open ports in the Windows firewall
  2. Edit the registry
  3. Start the Remote Desktop service
  4. Connect
This guide relies on you being on the same LAN as the remote PC you wish to access – you may already have RDP’ed into another server on that LAN. You must also have Windows administrative privileges for the remote computer. These instructions work well in a domain environment.
Note: If you have access to the computer, you can follow the standard procedure for enabling Remote Desktop.

Step 1: Open firewall ports in Windows firewall

There is no native way to change the settings of a remote Windows firewall. However, you can use PsExec from SysInternals to disable it or change some rules.
If you download the app and drop it into your c:\ drive, you can run this command and get command line access for that remote box.
c:\psexec \\remote_machine_name cmd
Once you have that command line open, you can run this command to disable the firewall:
netsh advfirewall set currentprofile state off
Alternatively you can run this command to allow only Remote Desktop while still leaving the rest of the firewall as is:
netsh advfirewall firewall set rule group=”remote desktop” new enable=Yes

Step 2: Registry Changes to enable Remote Desktop

Option 1: Psexec registry changes

While still in psexec, run this command to change the remote registry:
reg add “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server” /v fDenyTSConnections /t REG_DWORD /d 0 /f

Option 2: Manually change registry settings

If you don’t want to continue using psexec, you can follow these instructions instead.
Load up the Services MMC (Control Panel > Administrative Tools > Services), right click on “Services (Local)” and choose “Connect to another computer”. Enter the name of your remote machine and connect to it. You should now be able to find the “Remote Registry” service and start it.
Depending on your environment, this may already be running, but I have found it generally isn’t on newly imaged computers.
It’s time to make use of the Remote Registry and actually enable RDP. Load up regedit and go to File > Connect Network Registry. Enter the name of your remote computer and connect to it. Navigate to HKEY_LOCAL_MACHINE > System > CurrentControlSet > Control > Terminal Server. Change the value of “fDenyTSConnections” to “0”.

Step 3: Start the Remote Desktop service

Go back to the Services MMC you used in Step 2 Option 2, find the service “Remote Desktop Services” and start it (or restart if it is already running).

Step 4: Connect

By this point you should be able to connect to a remote desktop session on your remote computer. Remember that only administrative users can connect to an out-of-the-box Remote Desktop setup.
If you have got this far and still can’t connect, it is worth checking your firewall rules to ensure nothing is being blocked.

13 April 2019

How to Reset Windows Server 2008 R2 Administrator Password

How to Reset Windows Server 2008 R2 Administrator Password





In the past, when someone forgot their password to a Windows machine, the only known remedy was to reinstall the operating system. This was as true for personal computers running Home versions of Windows as for Windows Server products like Server 2008. Today, that is no longer the case. There are several tools that will allow you to reset a Windows Server password, and most of them are relatively easy to use if you have some experience working with computers.
That being said, the case is different for novice users. Users who have never reset a password on a Windows machine before may find a couple of these methods to be a little tricky. Choose the one that you are most comfortable with, and follow the steps in the description.

Method 1: Reset Windows Server 2008 Password via Reinstall

Some administrators still prefer the old way of reinstalling the server OS if they forget the password. Maybe they have had bad experiences with password reset tools; maybe some of their data had been compromised; or maybe they are not comfortable using freeware applications, which can pose security and other risks. If you are one of the "old school" administrators and this is how you want to do it, then here's how to reinstall Windows Server 2008:
Step 1. Before doing anything, please take a backup of all your local data. Since you are doing a full reinstallation of Windows Server, this is absolutely essential. Do not proceed without doing a backup.
Step 2. Next, get your installation disk for Windows Server 2008 R2, insert it into your server PC and wait for the Install Windows screen to appear. Enter all the basic preferences such as language, time and currency format and keyboard input method and click on "Next". You will now see a button that says Install Now. Click on that.
Step 3 . The Installer window will ask you to select an operating system. Select the appropriate one and click on Next. Now accept the licence terms and click on "Next" again. The next option will be to choose the type of installation. The options are Upgrade and Custom. Unless you have purchased a licence for server 2012 or 2016, choose the Custom option.
Windows Server 2008 Password Reset
Step 4 . Select the disk location details and click on Install Now, and the installation will begin. Your server will restart once the installation is complete. This particular method will prepare your computer for first use, which means the password must be changed before logging on for the first time. This is where you enter a new password, confirm it, and proceed to the next step.
Step 5 . You may now configure the server and activate the licence.
Note: You need to realise that since you are reinstalling the operating system, all the information in the local drives will be overwritten. That means you will need to take a backup of all your data prior to doing the reinstallation. This is also a labour-intensive task, so if you don't want to go through so much trouble, try the next method described below.

Method 2. Reset Windows Server 2008 Admin Password in One-Click

TunesBro WinGeeker Ultimate is a finely tuned piece of software that can reset various types of password on Windows machines. It has been extensively tested even before its first release, and testing has been done on over 1600 models of PCs, laptops and tablets.
Because of the extensive testing and the continuous feature and capability additions to the software, it has an amazing recovery rate of 100% for Windows passwords. Using this utility will allow you to reset Windows Server password with absolutely no trouble and no disturbance to your data.
Main Features of WinGeeker Ultimate
  • Easily reset Windows Server 2008 .
  • Support local and admin password on Window Server.
  • Add new user account and password for login.
  • Create bootable password reset disk from USB or DVD.
 

Step 1 Install TunesBro WinGeeker

On a different Windows machine, download and install TunesBro WinGeeker Ultimate. Now insert a USB drive or a writable DVD / CD and launch the program.
install wingeeker

Step 2 Make Password Reset Disk

On the software interface you will see two burning options. Depending on what media you inserted, click on the 'Burn' option against that choice. Your bootable media will now be created in a few moments.
install wingeeker

Step 3Change Boot Order on Windows Server 2008

Now take the DVD/CD or drive and insert it into the locked Windows Server. Boot up the machine and enter the boot menu to change the boot order. You can do this during the boot process by pressing F2 or another special key that will be shown on the screen.
insert USB drive

Step 4 Reset Administrator Password of Windows Server 2008 R2

Once you see the TunesBro WinGeeker interface, select the correct ISO file, which will be the Server 2008 R2 OS version. Then select the admin username and click on ‘Reset Password'. You can now click on the "Reboot" button, then remove the media from the server and restart the machine normally. You will be able to enter the admin account without requiring a password.
start to reset Windows password

Method 3: Recover Server 2008 Password via Offline NT Password & Registry Editor

This popular utility is also known as NT password or, simply, chntpw utility. It's a fast way to reset Windows machine password, and there is no need to do a full backup before executing this particular process.
The method requires a little bit of command line work, but most of it is restricted to leaving the default option as it is and simply hitting the Enter key multiple times. You must follow the process from start to finish as it is described below in order to reset your Windows Server password without disturbing any other system files.
Here is how to use NT password to reset your Windows Server 2008 R2 password. Obviously, since you don't have the password for your server machine, the first two steps will need to be executed on a different PC:
Step 1. First of all, you will need to download Offline NT Password & Registry Editor and extract the ISO file from the ZIP file that you downloaded. You will now need to create bootable media from this ISO file.
Step 2. The next step is to insert this bootable media into the server machine and boot up the system. You will now see the command line interface for NT Password after the initial boot process. Press Enter to select the default boot option and proceed.
Step 3 . From here on, you can simply type 1 and press Enter at every option. In the step that asks you to select the appropriate username, type in the username for the account which you need to clear the password for.
Step 4 . The last step is to exit the application and confirm writing the registry. You can do this by pressing '!' and Enter, then the letter 'q' and Enter again, and then 'y' and Enter when asked to confirm registry writing. You should see an 'EDIT COMPLETE' message on the screen if you have followed all the steps correctly.
NT Password
Although steps are fairly straightforward, a lot of administrators are reluctant to use the software because it is open source. That means there has been no security updates for a long time, and using the software on a company server could compromise customer data or lead to other complications. If you are in this position, try the third method described below.

Summary

The first method is obviously not required unless you really want to do a reinstallation of Windows Server 2008 R2 for some reason. The second choice does have its own drawbacks as well, such as being outdated and prone to security risks. The recommended choice, therefore, is option 3, which is highly reliable and trusted by millions of users around the world. However, it is entirely up to you to choose which method you want to use to reset your Windows Server 2008 R2 password.