PC Review Forums Newsgroups Windows 2000 Microsoft Windows 2000 CMD Promt NetAlias.exe: New Freeware Tool

Reply

NetAlias.exe: New Freeware Tool

 
Thread Tools Rate Thread
Old 08-10-2003, 07:16 AM   #1
Marty List
Guest
 
Posts: n/a
Default NetAlias.exe: New Freeware Tool



I posted a new freeware tool on my website, called 'Network Alias' or
NetAlias.exe.

http://www.optimumx.com/download/#NetAlias

C:\>NetAlias.exe /?

Network Alias [Version 1.00]

Displays, adds or removes NetBIOS names for the Server service. This allows
a
computer to be accessed using an alias, or a name other than the computer
name.
The Server service will also announce this alias to the browse list where it
will be displayed in apps such as My Network Places and the NET VIEW
command.

After a system restart, this alias will no longer exist. To make the alias
persistent, this tool would need to be scheduled to execute at system
startup.
This alias will only be available as a UNC path (\\server\share), tools like
ping and nslookup will not be able to resolve it.


The syntax of this command is:

NetAlias.exe [/ALIAS:NEWNAME] [/DOMAIN:NAME] [/DELETE] [/Y] [\\COMPUTERNAME]

/ALIAS: Allows you to specify a new name to add (or delete). A new alias
can
be up to 15 characters. Names with spaces must be enclosed in "double
quotes".

/DOMAIN: Optional, rarely needed. Allows you to specify the
domain/workgroup
that the new alias will be announced to. Ignored if /ALIAS is not
specified.

/DELETE Allows you to delete the specified alias.

/Y Allows you make changes without being prompted.

\\COMPUTERNAME Allows you to manage the names on a remote system.


A Windows NT based operating system is required (2003/XP/2000/NT), and the
user must be a member of the Administrators or Server Operators group. The
maximum number of names that can be added will vary between 128 and 1024,
depending on the length of the names. The new alias should be available on
the local subnet immediately, but may not be available on remote subnets or
appear in browse lists for up to 30 minutes, depending on the complexity of
network. Likewise, deleted names are not immediately removed from the
browse
list. For more information, see Microsoft KB articles 150800 and 102878.

An argument of /? or -? displays this syntax and always returns 1.
A successful completion will return 0.



  Reply With Quote
Old 08-10-2003, 06:33 PM   #2
Mark V
Guest
 
Posts: n/a
Default Re: NetAlias.exe: New Freeware Tool

Marty List wrote in
news:bm06ja$h1ovb$1@ID-172409.news.uni-berlin.de:

>
> I posted a new freeware tool on my website, called 'Network Alias'
> or NetAlias.exe.
>
> http://www.optimumx.com/download/#NetAlias
>
> C:\>NetAlias.exe /?
>
> Network Alias [Version 1.00]
>
> Displays, adds or removes NetBIOS names for the Server service.
> This allows a
> computer to be accessed using an alias, or a name other than the
> computer name.
> The Server service will also announce this alias to the browse
> list where it will be displayed in apps such as My Network Places
> and the NET VIEW command.
>
> After a system restart, this alias will no longer exist. To make
> the alias persistent, this tool would need to be scheduled to
> execute at system startup.
> This alias will only be available as a UNC path (\\server\share),
> tools like ping and nslookup will not be able to resolve it.
>
>
> The syntax of this command is:
>
> NetAlias.exe [/ALIAS:NEWNAME] [/DOMAIN:NAME] [/DELETE] [/Y]
> [\\COMPUTERNAME]
>
> /ALIAS: Allows you to specify a new name to add (or delete). A
> new alias
> can
> be up to 15 characters. Names with spaces must be enclosed in
> "double
> quotes".
>
> /DOMAIN: Optional, rarely needed. Allows you to specify the
> domain/workgroup
> that the new alias will be announced to. Ignored if /ALIAS is not
> specified.
>
> /DELETE Allows you to delete the specified alias.
>
> /Y Allows you make changes without being prompted.
>
> \\COMPUTERNAME Allows you to manage the names on a remote system.
>
>
> A Windows NT based operating system is required (2003/XP/2000/NT),
> and the user must be a member of the Administrators or Server
> Operators group. The maximum number of names that can be added
> will vary between 128 and 1024, depending on the length of the
> names. The new alias should be available on the local subnet
> immediately, but may not be available on remote subnets or appear
> in browse lists for up to 30 minutes, depending on the complexity
> of network. Likewise, deleted names are not immediately removed
> from the browse
> list. For more information, see Microsoft KB articles 150800 and
> 102878.
>
> An argument of /? or -? displays this syntax and always returns 1.
> A successful completion will return 0.


Thanks Marty for another great free tool.
I did not check the KB articles listed but persistent "aliases" may
be stored at
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanserver
\parameters\
OptionalNames=
(REG_SZ)
for those that need it. (W2K. Likely W2K and up. Not certain on
NT4)

  Reply With Quote
Old 08-10-2003, 07:31 PM   #3
Marty List
Guest
 
Posts: n/a
Default Re: NetAlias.exe: New Freeware Tool


"Mark V" <notvalid@invalid.nul> wrote in message
news:Xns940E7FB7D7Az9zzaQ2btw@207.46.248.16...
>
> Thanks Marty for another great free tool.
> I did not check the KB articles listed but persistent "aliases" may
> be stored at
> HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanserver
> \parameters\
> OptionalNames=
> (REG_SZ)
> for those that need it. (W2K. Likely W2K and up. Not certain on
> NT4)
>


Good point Mark, although using REGEDT32.EXE to add a REG_MULTI_SZ is better
so you can add multiple names. I thought about adding something about this
to the tool's "/?" syntax, but I couldn't find anything official to
reference, like a KB article that describes it.

I think the registry value and my tool are doing the same thing just a
little differently, but each has it's advantage. The registry value has the
advantage of being persistent, although you can schedule my tool with the
Task Scheduler to run at system startup. My tool allows you to add & remove
names dynamically without restarting the machine or the server service.
Another "accidental" advantage of my tool is it allows you to see the actual
MAC addresses that are bound to the Server service (a.k.a. 'File and Printer
Sharing for Microsoft Networks'), both locally and remotely.



  Reply With Quote
Old 08-10-2003, 09:28 PM   #4
Mark V
Guest
 
Posts: n/a
Default Re: NetAlias.exe: New Freeware Tool

Marty List wrote in
news:bm1hlg$gumi6$1@ID-172409.news.uni-berlin.de:

>
> "Mark V" <notvalid@invalid.nul> wrote in message
> news:Xns940E7FB7D7Az9zzaQ2btw@207.46.248.16...
>>
>> Thanks Marty for another great free tool.
>> I did not check the KB articles listed but persistent "aliases"
>> may be stored at
>> HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanserver
>> \parameters\
>> OptionalNames=


> Good point Mark, although using REGEDT32.EXE to add a REG_MULTI_SZ
> is better so you can add multiple names. I thought about adding


Hmm. I've never added more than one but assumed (stupid) it was a
comma-separated list.

Just checked a "source" (JSIINC) and Jerold states multi-string for
more than one as you do. Learned something new!

> something about this to the tool's "/?" syntax, but I couldn't
> find anything official to reference, like a KB article that
> describes it.


I've never seen it in any MS articles either. Although it seems
well-referenced outside official MS channels. It might be nice for
NetAlias to have a "make persistent" switch, but if you don't it is
still most useful as is. Perhaps just a README notation and
disclaimer would be of benefit?

> I think the registry value and my tool are doing the same thing
> just a little differently, but each has it's advantage. The
> registry value has the advantage of being persistent, although you
> can schedule my tool with the Task Scheduler to run at system
> startup. My tool allows you to add & remove names dynamically
> without restarting the machine or the server service. Another


And that (no reboot required) is a very valuable point in my opinion!

> "accidental" advantage of my tool is it allows you to see the
> actual MAC addresses that are bound to the Server service (a.k.a.
> 'File and Printer Sharing for Microsoft Networks'), both locally
> and remotely.


Yup. I like that functionality too. It's a "keeper" in any case.

PS I have had no opportunity to test failure modes when "System
Requirements" were not met. (W2K Pro, SP4 stand-alone)

  Reply With Quote
Old 08-10-2003, 10:43 PM   #5
Marty List
Guest
 
Posts: n/a
Default Re: NetAlias.exe: New Freeware Tool


"Mark V" <notvalid@invalid.nul> wrote in message
news:Xns940E9D701DCAAz9zzaQ2btw@207.46.248.16...
>
> It might be nice for NetAlias to have a "make persistent" switch
>


That's a great idea, I never thought of doing a combination API
call/Registry edit to make it persistent. I'll wait a while to see if any
other feature requests or bugs get reported, and then add your idea to the
next version.



  Reply With Quote
Old 12-10-2003, 02:34 AM   #6
Joe Richards [MVP]
Guest
 
Posts: n/a
Default Re: NetAlias.exe: New Freeware Tool

Hey Marty.

When I read your original post the first thing I thought of myself was to have a /p option to slam it into the
registery.

One thing you will find though, at least the last time I was playing with it is that DC's will register the name in the
registry entry and then will clear it shortly after again during the reboot. It is sort of like server starts up and
registers and then when netlogon starts it changes what is registered.

And REG_MULTI_SZ is definitely the way to go with it.

Good job.

joe

--
Joe Richards
www.joeware.net

--

"Marty List" <Bill.Gates@sun.com> wrote in message news:bm1sso$hnd0q$1@ID-172409.news.uni-berlin.de...
>
> "Mark V" <notvalid@invalid.nul> wrote in message
> news:Xns940E9D701DCAAz9zzaQ2btw@207.46.248.16...
> >
> > It might be nice for NetAlias to have a "make persistent" switch
> >

>
> That's a great idea, I never thought of doing a combination API
> call/Registry edit to make it persistent. I'll wait a while to see if any
> other feature requests or bugs get reported, and then add your idea to the
> next version.
>
>
>



  Reply With Quote
Old 16-10-2003, 12:38 PM   #7
Mike
Guest
 
Posts: n/a
Default Re: NetAlias.exe: New Freeware Tool

Thank's for your tool.
What surprises me is that yout tools works - the same entry to
registry (OptionalNames) + reboot does not work. The computer is a
2000 dc.

It would be nice to get the additional name persistent - but if the
registry setting does not work - what could be the way?

Thanks in advance

Mike


"Joe Richards [MVP]" <humorexpress@hotmail.com> wrote in message news:<eaZ8YiFkDHA.2580@TK2MSFTNGP10.phx.gbl>...
> Hey Marty.
>
> When I read your original post the first thing I thought of myself was to have a /p option to slam it into the
> registery.
>
> One thing you will find though, at least the last time I was playing with it is that DC's will register the name in the
> registry entry and then will clear it shortly after again during the reboot. It is sort of like server starts up and
> registers and then when netlogon starts it changes what is registered.
>
> And REG_MULTI_SZ is definitely the way to go with it.
>
> Good job.
>
> joe
>
> --
> Joe Richards
> www.joeware.net
>
> --
>
> "Marty List" <Bill.Gates@sun.com> wrote in message news:bm1sso$hnd0q$1@ID-172409.news.uni-berlin.de...
> >
> > "Mark V" <notvalid@invalid.nul> wrote in message
> > news:Xns940E9D701DCAAz9zzaQ2btw@207.46.248.16...
> > >
> > > It might be nice for NetAlias to have a "make persistent" switch
> > >

> >
> > That's a great idea, I never thought of doing a combination API
> > call/Registry edit to make it persistent. I'll wait a while to see if any
> > other feature requests or bugs get reported, and then add your idea to the
> > next version.
> >
> >
> >

  Reply With Quote
Old 17-10-2003, 06:28 PM   #8
Shuffled
Guest
 
Posts: n/a
Default Re: NetAlias.exe: New Freeware Tool

On Wed, 8 Oct 2003 14:43:03 -0600, "Marty List" <Bill.Gates@sun.com>
wrote:

>That's a great idea, I never thought of doing a combination API
>call/Registry edit to make it persistent. I'll wait a while to see if any
>other feature requests or bugs get reported, and then add your idea to the
>next version.


It'll be nice use NetAlias to add/remove a name of a remote computer
on the network.
  Reply With Quote
Old 19-10-2003, 03:00 PM   #9
Joe Richards [MVP]
Guest
 
Posts: n/a
Default Re: NetAlias.exe: New Freeware Tool

Yep that is what I was mentioning in my post to Marty.

The reg entry does actually work for a bit, then I believe NETLOGON clears the table and repopulates it with what it
wants. If you do the add AFTER the NETLOGON process is done dorking with it, it will get in and stay in.

--
Joe Richards
www.joeware.net

--

"Mike" <Mike.Eichner@t-online.de> wrote in message news:2ae39b9d.0310160238.5733f183@posting.google.com...
> Thank's for your tool.
> What surprises me is that yout tools works - the same entry to
> registry (OptionalNames) + reboot does not work. The computer is a
> 2000 dc.
>
> It would be nice to get the additional name persistent - but if the
> registry setting does not work - what could be the way?
>
> Thanks in advance
>
> Mike
>
>
> "Joe Richards [MVP]" <humorexpress@hotmail.com> wrote in message news:<eaZ8YiFkDHA.2580@TK2MSFTNGP10.phx.gbl>...
> > Hey Marty.
> >
> > When I read your original post the first thing I thought of myself was to have a /p option to slam it into the
> > registery.
> >
> > One thing you will find though, at least the last time I was playing with it is that DC's will register the name in

the
> > registry entry and then will clear it shortly after again during the reboot. It is sort of like server starts up and
> > registers and then when netlogon starts it changes what is registered.
> >
> > And REG_MULTI_SZ is definitely the way to go with it.
> >
> > Good job.
> >
> > joe
> >
> > --
> > Joe Richards
> > www.joeware.net
> >
> > --
> >
> > "Marty List" <Bill.Gates@sun.com> wrote in message news:bm1sso$hnd0q$1@ID-172409.news.uni-berlin.de...
> > >
> > > "Mark V" <notvalid@invalid.nul> wrote in message
> > > news:Xns940E9D701DCAAz9zzaQ2btw@207.46.248.16...
> > > >
> > > > It might be nice for NetAlias to have a "make persistent" switch
> > > >
> > >
> > > That's a great idea, I never thought of doing a combination API
> > > call/Registry edit to make it persistent. I'll wait a while to see if any
> > > other feature requests or bugs get reported, and then add your idea to the
> > > next version.
> > >
> > >
> > >



  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off