Windows powershell not recognizing raspberrypi.local

I had everything running great, all modules installed, then rebooted and when I tried to bring up the raspberrypi 4 again in Powershell, I got this: Could not resolve hostname raspberrypi.local: No such host is known.

What is happening?

Here’re the steps to connect to your Raspberry Pi:

  1. Ensure the Raspberry Pi is properly connected to the network (Wi-Fi or Ethernet) and has a stable power supply.
  2. Check if the hostname is correct.
    Default hostname: The default hostname of the Raspberry Pi is raspberrypi, but if you modified it, use the new hostname (e.g., raspberrypi.localnew-hostname.local).
  3. If .local resolution fails, use the Pi’s IP address directly:

ping <Pi’s_IP_address> ssh pi@<Pi’s_IP_address>

Example: ssh pi@192.168.1.100
If you don’t know the IP, you can connect a display and boot the system. After successful startup, the IP will be shown in the top-right corner of the screen. This requires that you configured the Wi-Fi network during system setup or that your Pi 5 is connected via an Ethernet cable.