473,388 Members | 1,327 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

How do I change a hostname programmatically?

I'm looking for an API (to use from a C# Windows app) for changing my
hostname. This is intended for an administrative tool (factory use),
so Administrator-only security is assumed. Is there some Win_32 API
or some new C# class that is preferred for doing this?

I'm looking for an answer ASAP, so any/all help or suggestions on this
query wil be appreciated.

Michael Rose
-Unisys Corp.
Jul 21 '05 #1
0 1149

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Bennett Haselton | last post by:
I've created a Web application project called WebApplication1. When I go into the properties dialog for the project, under Common Properties->Web Settings it lists "Web Server Information",...
2
by: Gary | last post by:
We have had to change the hostname on an SQL server (Blade and the blade moved chassis so name changed) was blade-0-1-5 and is now blade-0-0-12 It seems i need to run 2 stored procedures which...
1
by: mike | last post by:
I'm writing a FireFox extension and I have the dom and therefor the links collection window.getBrowser().contentDocument.links Is there a way to change the color of these links based on the...
2
by: Bryan Glennon | last post by:
I've been mucking around with databinding & I am seeing something I can't explain... I have a collection (PersonList) that inherits from CollectionBase and implements IBindingList. It contains...
7
by: SevDer | last post by:
Do you have any idea why I am getting the following error? Invalid URI: The hostname could not be parsed. Inner stack trace at System.Uri.Parse() at System.Uri..ctor(String uriString, Boolean...
0
by: Dr. StrangeDub | last post by:
I'm looking for an API (to use from a C# Windows app) for changing my hostname. This is intended for an administrative tool (factory use), so Administrator-only security is assumed. Is there some...
1
by: Andrew Melton | last post by:
I had to reboot my RH9 server, now Postmaster won't start: I had to change my hostname recently, I am guessing that had something to do with it. I have tried modifying to the pg_hba.conf file to...
1
by: Lamis | last post by:
Hi, I need to change my hostname in my machine using .Net and C# thanx for the help -- LZ
3
by: Mark Delaney | last post by:
When using the MS SQL 2005 JDBC driver, I now need to have the DNS name resolution to the client correctly set up. If not I get the following error: SQLState: 08S01 SQLError: 0 Message:...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.