About 8,280 results
Open links in new tab
  1. Get Domain name using PowerShell and CMD - ShellGeek

    Sep 8, 2023 · While performing task automation for a set of computers in the domain, it’s best practice to get domain name of a computer. In this article, I will explain how to get domain name using the …

  2. How to Get the Domain Name using PowerShell? - SharePoint Diary

    Sep 19, 2025 · In this guide, I’m going to walk you through various ways to get the domain name using PowerShell, using methods that I’ve found handy over the years.

  3. windows - Powershell: Get FQDN Hostname - Stack Overflow

    I want to retrieve the FQDN name of windows server via powershell script. I have found 2 solution so far: $server = Invoke-Command -ScriptBlock {hostname} Above line will print just the short nam...

  4. How to Get Domain Name Using PowerShell

    Jul 18, 2025 · The following is a simple Function for getting Domain information for a computer. Write-Host "No supported Domain found. Exiting script." -ForegroundColor Red. For a remote computer, …

  5. How to Get the Computer Name with PowerShell — LazyAdmin

    Aug 27, 2024 · Lookup the computer name with PowerShell. Get the name from the local machine or remote computers. Different methods explained.

  6. Get Fully Qualified Domain Name in PowerShell - Java2Blog

    Oct 2, 2023 · Use the Get-WmiObject cmdlet to get a fully qualified domain name. We started by using the $env:COMPUTERNAME environment variable to get the computer name of a local machine and …

  7. Get-ADDomain (ActiveDirectory) | Microsoft Learn

    To get the domain of the local computer or current logged on user set the Current parameter to LocalComputer or LoggedOnUser. When you set the Current parameter, you do not need to set the …

  8. How to get domain name in Windows using command?

    Aug 29, 2012 · To get the actual domain on which the computer is connected - use the "ipconfig" command line command, and see the "Connection-specific DNS Suffix" value.

  9. Getting computer names from AD using Powershell

    Mar 8, 2026 · Retrieve computer names from Active Directory using PowerShell. Includes methods with Get-ADComputer, DirectorySearcher, and Quest cmdlets for sysadmins.

  10. Quickly Get Computer Names with PowerShell - ATA Learning

    Nov 4, 2020 · Discover various methods to use PowerShell to get computer names in this easy-to-follow tutorial.