Questions tagged [computer-name]

Questions about retrieving or setting the computer name.

The name of a computer is a human-readable identifier. One example purpose is the Domain Naming System which maps the computer name (qualified by a domain name) to an IP address.

Use this tag for questions about retrieving or setting the computer name.

75 questions
66
votes
11 answers

How can I read the client's machine/computer name from the browser?

How can I read the client's machine/computer name from the browser? Is it possible using JavaScript and/or ASP.NET?
MetaGuru
  • 42,847
  • 67
  • 188
  • 294
47
votes
4 answers

How to get name of the computer in VBA?

Is there a way to get the name of the computer in VBA?
Alex Gordon
  • 57,446
  • 287
  • 670
  • 1,062
15
votes
1 answer

Environment.MachineName equivalent for .NET Standard 1.4

I am creating a class library that will be used in a WPF project and a .NET Core project. I am trying to get the name of the machine using my application. In both .NET Core and the WPF application I can use Environment.MachineName value. However in…
yitzih
  • 3,018
  • 3
  • 27
  • 44
9
votes
1 answer

How to get the user set computer name using python in MacOS Sierra/High Sierra

The question below has partly been answered, see the Solution section below. So I'm posting this partly to help others and also since the solution I have hasn't really solved the problem yet. Question So, the question is why the hostname as given…
8
votes
5 answers

Get full computer name from a network drive letter in python

I am using python to populate a table with the file pathways of a number of stored files. However the pathway needs to have the full network drive computer name not just the drive letter, ie //ComputerName/folder/subfolder/file not…
Cjd111
  • 181
  • 1
  • 2
8
votes
7 answers

What's the best method for getting the local computer name in Delphi

The code needs to be compatible with D2007 and D2009. My Answer: Thanks to everyone who answered, I've gone with: function ComputerName : String; var buffer: array[0..255] of char; size: dword; begin size := 256; if GetComputerName(buffer,…
Alister
  • 6,527
  • 4
  • 46
  • 70
6
votes
1 answer

Get Computer Names of a Lan in C#

I want to create a chat application in which there is a ComboBx. I want to fill it with all the computer names in a network. How can I accomplish this in C#?
Durga Dutt
  • 4,093
  • 11
  • 33
  • 48
4
votes
3 answers

How to get computer name or IP from javascript?

I want to get the name of the computer or its IP address through javascript. How can this be obtained?
Hemanshu Bhojak
  • 16,972
  • 16
  • 49
  • 64
3
votes
3 answers

Is this a machine name or what?

I have a third party dll, that is supposed to return machine name. Sometimes it returns \\John-PC some other times it returns \\192.168.1.120 and recently i discovered that it returns something like this \\[ef80::32d6:2255:27dd:123c] So what is…
OrElse
  • 9,709
  • 39
  • 140
  • 253
2
votes
2 answers

Retrieve computer name

I am building a website for a company who has a software that gets registered to the computer, and uses the computer name and user name of the pc. How can I retrieve those values without the user needing to fill it out? I am using codeigniter if…
JonYork
  • 1,223
  • 8
  • 31
  • 52
2
votes
1 answer

How can I retrieve the machine name from a remote Windows computer?

I am trying to find a way to retrieve Computer name from an IP address in C#, but all of the answers marked online as retrieving machine name or computer name actually get the hostname, not the Computer Name. If you go to Control panel > system,…
hexagod
  • 449
  • 3
  • 15
2
votes
1 answer

Multiple conditions for Select Case using ChassisType

We use MDT in our environment to image computers. We are using a script in order to name computers based on IP location and the script then writes the data to a database. I need to modify the script to include a section of additional conditions to…
MarliejoS5
  • 23
  • 1
  • 1
  • 4
2
votes
2 answers

How to change computer's canonical/displayed name in Active Directory?

I have an AD with 71 computers. However, there are actually less than 50 physical computers, so I'm doing some cleanup. But, up until now when renaming PC's, I've only renamed them at the workstation through Control Panel->System. So, the displayed…
user3761043
  • 21
  • 1
  • 2
2
votes
1 answer

Restrict Application to Run on Allowed Computers

Currently I am developing an application on PHP that I want to use on the specific computers that are allowed in my database, to restrict I may use MAC Address of the computer which is allowed to use the application. I researched on various websites…
Asad Nadeem
  • 509
  • 3
  • 6
  • 15
2
votes
2 answers

How do I find the Collection Membership Information with PowerShell

I have the following code, but I get an "Invalid Namespace" error constantly, I am pretty sure I am entering the correct information. If you have another way of doing this, it's also accepted. Param( $SiteCode, $SourceFile, $Destination…
FerMelon
  • 93
  • 3
  • 13
1
2 3 4 5