Restoring password of a WIndows hosted network

You could reset your password by setting the whole network up again ie (via here):

netsh wlan set hostednetwork mode=allow ssid=rambo key=rambo123 keyUsage=persistent

or

netsh wlan set hostednetwork mode=allow ssid=rambo key=rambo123 keyUsage=temporary

Although, if you've forgotten your password, all you need to do is (via here):

netsh wlan show hostednetwork setting=security

Then you'll see User security key: and your password

Command prompt with netsh