Setting up a Raspberry Pi headless
Raspberry Pi OS Lite Headless installation
https://www.raspberrypi.org/documentation/configuration/wireless/headless.md
create a file named as wpa_supplicant.conf
ctrl_interface=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=PK
network={
scan_ssid=1
ssid="Home"
psk="fdsa1234"
key_mgmt=WPA-PSK
}
also create an empty file named as ssh
this method worked tested and checked
open powershell
type the following command
ssh pi@raspberrypi.local
password is raspberry