We seem to be drifting considerably here...
 
We went from how come hostname.exe doesn't work to how to get the objectsid of a computer object.
 
I could be wrong but I don't see the relevance of the SID, the computer's nor the computer object's, on the ability of hostname.exe to function.
 
But good posts nonetheless. :o)
 
 
--
O'Reilly Active Directory Third Edition - http://www.joeware.net/win/ad3e.htm 
 
 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ulf B. Simon-Weidner
Sent: Tuesday, April 04, 2006 3:03 PM
To: [email protected]
Subject: RE: [ActiveDir] Empty hostname for a Win 2003 server belonging to an AD domain

How about
dsquery * domainroot -Filter (&(objectCategory=Computer)(sAMAccountName=<computername>)) -attr objectSID
 

Gruesse - Sincerely,

Ulf B. Simon-Weidner

  MVP-Book "Windows XP - Die Expertentipps": http://tinyurl.com/44zcz
  Weblog: http://msmvps.org/UlfBSimonWeidner

  Website:
http://www.windowsserverfaq.org
  Profile:   http://mvp.support.microsoft.com/profile=""> 
  

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Thommes, Michael M.
Sent: Tuesday, April 04, 2006 6:45 PM
To: [email protected]
Subject: RE: [ActiveDir] Empty hostname for a Win 2003 server belonging to an AD domain

How about:

dsquery computer -samid  <computer_name_here> | dsget computer –sid

 

Mike Thommes

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of matheesha weerasinghe
Sent: Tuesday, April 04, 2006 10:56 AM
To: [email protected]
Subject: Re: [ActiveDir] Empty hostname for a Win 2003 server belonging to an AD domain

 

No it works fine as computer$. He wanted MS tools only remember? ;-)

 

M@

 

On 04/04/06, Freddy HARTONO <[EMAIL PROTECTED]> wrote:

if getsid doesnt work (if i remember correctly this is only for user accounts not comp) - try psgetsid or newsid.exe

 

Thank you and have a splendid day!

 

Kind Regards,

 

Freddy Hartono

Group Support Engineer

InternationalSOS Pte Ltd

mail: [EMAIL PROTECTED]

phone: (+65) 6330-9785

 

 

 


From: [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED]] On Behalf Of matheesha weerasinghe
Sent: Tuesday, April 04, 2006 10:40 PM

Subject: Re: [ActiveDir] Empty hostname for a Win 2003 server belonging to an AD domain

 

Use getsid.exe of the support tools.

 

How come you are using regmon. I thought sysinternals was a no no :0)

M@

 

 

On 02/04/06, Rodrigo Blanco <[EMAIL PROTECTED] > wrote:

Freddy,

is there any stadard way (tools included in the W2K3 OS) to verify the
SID of a machine? I am not allowed to install or use any external
software, such as sysinternals, for instance.

Joe,

I believe that the application is using the wINSOCK API too. TCP/IP is
working fine and the setting are just are they should be... :-/ So I
will do a regmon on a good machine and extract the differences with
mine.

Thank you very much,
Best regards,
Rodrigo.

On 02/04/06, joe <[EMAIL PROTECTED] > wrote:
> I believe that tool is using the gethostname WINSOCK API call, I expect you
> are hitting an error and it isn't handling it gracefully.
>
> Is TCP/IP working properly on that machine? Are all of the TCP/IP settings
> correct?
>
> If everything looks ok, I would recommend running regmon on a known good
> machine and then do the same on the troublesome machine and see what the
> differences are in the requests, you might get a hint there.
>
>    joe
>
>
> --
> O'Reilly Active Directory Third Edition -
> http://www.joeware.net/win/ad3e.htm
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]] On Behalf Of Rodrigo Blanco
> Sent: Tuesday, March 28, 2006 6:54 AM
> To: [email protected]
> Subject: [ActiveDir] Empty hostname for a Win 2003 server belonging to an AD
> domain
>
> Hello list,
>
> I am currently having a problem with a Windows 2003 server inside a Windows
> 2003 server-based Active Directory domain. The problem is that when I run
> the "hostname" command, it is empty:
>
> C:\>hostname
>
> C:\>
>
> I suspect this happened after doing a clone of the VM machine and, by error,
> starting it and changing its name in the same network of the original one
> (this should have happened in an off-line network).
>
> I have tried to take it out from the domain and register it again in it, but
> his will not help. There is no conflict between the DNS and the local hosts
> file on the server. The server is registered in both the direct and inverse
> DNS lookup zones.
>
> If I look in System > Properties > Computer Name, everything looks
> fine: hostname and domain are correctly configured.
>
> Any help will more than welcome.
>
> Thanks in advance and best regards,
> Rodrigo.
> List info   : http://www.activedir.org/List.aspx
> List FAQ    : http://www.activedir.org/ListFAQ.aspx
> List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/
>
> List info   : http://www.activedir.org/List.aspx
> List FAQ    : http://www.activedir.org/ListFAQ.aspx
> List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/
>
List info   : http://www.activedir.org/List.aspx
List FAQ    : http://www.activedir.org/ListFAQ.aspx
List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/



 

Reply via email to