Hi @Surabhi Jaiswal ,
Your PowerShell command seems to be missing something as it's not working here.
To get the FQDN, you could refer to the following article:
https://www.powershellbros.com/powershell-tip-of-the-week-get-fqdn
----------
(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)
Best regards,
Leon