[wpkg-users] Get local domain name
Marco Gaiarin
gaio at sv.lnf.it
Thu Jan 19 14:31:29 CET 2012
I've to add some users/group to a local user/group in windows xp sp3.
I've tried to use:
net localgroup Unlock ced /add /domain
but does not work (user SYSTEM):
C:\WINDOWS\system32>net localgroup Unlock ced /add /domain
La richiesta verrà elaborata dal controller di dominio per il dominio SANVITO. (the request will be processed by domain controller SANVITO)
Errore di sistema 5. (system error 5)
Accesso negato. (access denied)
If i run not using /domain (switch that, as docs stated, mean
«choose the group belonging to the primary domain», but instead
explicitly set domain:
net localgroup Unlock SANVITO\ced /add
works.
I've googled around and a proposed method to know local domain are:
systeminfo | findstr /B /C:”Domain”
but a little overkilled and os-language dependent.
There's a better way? Thanks.
--
dott. Marco Gaiarin GNUPG Key ID: 240A3D66
Associazione ``La Nostra Famiglia'' http://www.sv.lnf.it/
Polo FVG - Via della Bontà, 7 - 33078 - San Vito al Tagliamento (PN)
marco.gaiarin(at)sv.lnf.it tel +39-0434-842711 fax +39-0434-842797
Dona il 5 PER MILLE a LA NOSTRA FAMIGLIA!
http://www.lanostrafamiglia.it/chi_siamo/5xmille.php
(cf 00307430132, categoria ONLUS oppure RICERCA SANITARIA)
More information about the wpkg-users
mailing list