[решено] Узнать РАБОЧУЮ ГРУППУ
-
Iska
Re: [решено] Узнать РАБОЧУЮ ГРУППУ
Iska, найду проблемную машинку-отпишусь.... А пока ещё попутный вопрос-возможно ли определить наличие машины в домене или в рабочей группе?
-
TERMINAL
Re: [решено] Узнать РАБОЧУЮ ГРУППУ
Iska, ConsoleWrite($oSWbemObjectEx.PartOfDomain)
Это показатель наличие машины в домене с результатом true ?
Это показатель наличие машины в домене с результатом true ?
-
TERMINAL
Re: [решено] Узнать РАБОЧУЮ ГРУППУ
Цитата TERMINAL:
Это показатель наличие машины в домене с результатом true ?
Для XP и выше — да:
Цитата:
PartOfDomain
Data type: boolean
Access type: Read-only
If True, the computer is part of a domain. If the value is NULL, the computer is not in a domain or the status is unknown. If you unjoin the computer from a domain, the value becomes False.
Windows 2000 and Windows NT: This property is not available.
Это показатель наличие машины в домене с результатом true ?
[решено] Узнать РАБОЧУЮ ГРУППУ
Для XP и выше — да:
Win32_ComputerSystem class
.Цитата:
PartOfDomain
Data type: boolean
Access type: Read-only
If True, the computer is part of a domain. If the value is NULL, the computer is not in a domain or the status is unknown. If you unjoin the computer from a domain, the value becomes False.
Windows 2000 and Windows NT: This property is not available.
-
TERMINAL