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
0
votes
1 answer

How to get the Azure scale set name from the VM name on the computer

I'm trying to grab the name of the Azure VM scale set from the computer's name. I'm able to get close, but not reliably so. I've found this article which mentions the (vmss name)(base 36 instance id) format which I found to be fairly accurate,…
Norrec
  • 531
  • 4
  • 17
0
votes
0 answers

My environment variable is gone when my terminal change from XXX@bogon to XXX@localhost

I am a new user for macbook,my environment variable is gone when my terminal input change from XXX@bogon to XXX@localhost, the terminal I am using is iTerm2 but I don't think it matter. The question is how I change XXX@localhost to XXX@bogon? Or how…
0
votes
1 answer

How to use SetComputerName from the windows api?

I'm trying to change the name of the computer programmatically. Occasionally we have to wipe a system and restore it's database in an upgrade. I'm trying to have all the system settings be read out of the database and be set up automatically. Most…
granitdev
  • 136
  • 2
  • 13
0
votes
1 answer

SetComputerNameEX returns success but computer name not changed upon restart

I am trying to change the computer name of a domain computer using SetComputerNameEx(). The function returns success but when i restart the computer it still has the old computer name. SetComputerNameEx() works perfectly for non domain machines I am…
0
votes
2 answers

Create a script to rename computer using naming scheme

I have this script for naming a machine. It is for an automatic rename after I successfully re-imaged a machine. To save time when doing 40 or 50 at a time. SETLOCAL ENABLEDELAYEDEXPANSION @ECHO OFF SET count=1 SET campus=JOB FOR /F "tokens=*…
Harley Frank
  • 149
  • 2
  • 11
0
votes
0 answers

Powershell find next available asset name in AD under TS

So I made this script to find the next avaible script in a series. The computer will get a name with ComputerXXXX (XXXX being 0-9999). It works when I run it manually after the TS is done, but not when I run it through TS as a step. Any tips? It…
Asphaug
  • 21
  • 1
  • 7
0
votes
1 answer

How to rename a domain computer in Powershell

I've been trying to rename a domain computer with the following script: $username = "domain\username" $password = "password" $ip = ((ipconfig | findstr [0-9].\.)[0]).Split()[-1] $hostname = (nslookup $ip)[3] $hostname = $hostname.replace(" ",…
Wulf
  • 19
  • 1
  • 6
0
votes
1 answer

Obtain ComputerName during installation via WIX

Is it possible to obtain the ComputerName during installation via the Wix Tool Set? If so, how would you go about this process? I wish to set ComputerName for our SQL Install, so that we won't be forced to create separate installation for each…
Blackie
  • 141
  • 2
  • 10
0
votes
1 answer

getting client computer name in a flex web application?

is it possible to obtain the computer name of the client using flex? I made a small intranet application and I need to log computer access to it. I used Flex 3.4 and web services in .net 3.5 thanks.
sergiogx
  • 1,562
  • 1
  • 19
  • 36
0
votes
1 answer

Is there a better way to add the computer name to the Desktop Bit Map as part of VM Creation Process using Powershell

So here is my PowerShell function that I run as part to my OS set up script when creating a new VM on Hyper-V. I am curious is there a better way to accomplish this, or is this a s good as it gets? I would like this to be simpler and easier to…
0
votes
1 answer

Computer Name contains a space. How to change it?

My computer name is hp 15-ab032tx. Because of the space in the name, when i try to store my android studio project, it gives me an error. I cannot store it on the Desktop either because the address becomes C:\Users\hp…
user1501
  • 1
  • 1
  • 3
0
votes
1 answer

Batch - Find network IP address of computer using computer name

I am a BEGINNER STUDENT of Batch scripting. The problem I have is that I am able to retrieve a computer name from my LAN by pinging its IP address (see code below). However, I'm struggling to find an equally simple way of getting the IP address of a…
Albert F D
  • 529
  • 2
  • 13
  • 33
0
votes
1 answer

powershell get computer name where is script located when running from another computer

I have script that is executable from another computer. How to get comptername of location script? Just name, not full path (because the script can be distributed anywhere) Thanks
0
votes
1 answer

Yosemite localhost displays 404, but computer name displays "It works!"

I've been having a bit of a headache since upgrading to Yosemite. Typically, I run a gulp or grunt connect package that spawns a Node server on port 9000. I hit the page by going to http://localhost:9000. However, after firing up the server, that…
Redlist
  • 93
  • 3
  • 10
0
votes
0 answers

How get name of remote computer location

How would I use powerShell to find the name of a remote computer/NAS location? I don't have the name, just a path to get there in Windows Explorer. I'm trying to use the following command in a script, but don't have computername for the NAS at…
Michele
  • 3,617
  • 12
  • 47
  • 81