LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

change the hostname of the computer using labview

Solved!
Go to solution

Hello I need change the hostname of the computer using labview, someone can advise me how to do?

 

0 Kudos
Message 1 of 4
(1,822 Views)
Solution
Accepted by topic author mmmfloresa

I am not sure why you would want to do this using LabVIEW but right off the top of my head I would say to use the SystemExec VI to run the command line commands.

 

BTW: You will have to be running the LabVIEW program "As Administrator" because LabVIEW, just like any other program needs elevated privileges to change system settings.

 

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 2 of 4
(1,807 Views)

You can use the registry setting described here.  You may use LabVIEW's registry VIs to change the computer name, but as was mentioned earlier, you need to be running LabVIEW as an administrator.

 

Not sure why you would want to change the computer name often enough that you need to incorporate it into an application; you could confuse computers that are looking for you, especially IT tools that may be relying on you to be a certain computer name.  You might want to check with them before doing this.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 3 of 4
(1,769 Views)

Hello RTSLVU and  billko,

 

I have done the project. using SystemExec VI. here you go the block diagram.

and line commands that I used..

 

   My necesity is because we are working with 5DX equipments so. As we have a master HD for all machines as backup, so when We will use this HD for anyone tester, We need rename the hostname to avoid have conflict between same names on the network. So with the application I will continue in the total project to have the setup ready on the HD for any machine with its original name.

So this VI, will be part of my general project.

Thanks for your observations and recommendations.

block diagram.png

Message 4 of 4
(1,752 Views)