12-30-2021 05:14 PM
Hello I need change the hostname of the computer using labview, someone can advise me how to do?
Solved! Go to Solution.
12-30-2021 05:59 PM
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.
12-30-2021 11:35 PM
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.
12-31-2021 10:37 AM
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.