You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Elements/AutoUnattend/ActiveDirectory/DomainServicesModule.vb
+1-5Lines changed: 1 addition & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -82,11 +82,7 @@ Module DomainServicesModule
82
82
DynaLog.LogMessage("Checking if device is part of a domain...")
83
83
IfDSIsInDomain()Then
84
84
DynaLog.LogMessage("This device is part of a domain. Grabbing name...")
85
-
DimdomainAsIntPtr=GetDomainNameInformation()
86
-
Ifdomain<>IntPtr.ZeroThen
87
-
DynaLog.LogMessage("GetDomainNameInformation did not return bogus data. Parsing...")
88
-
domainName=GetComputerDomain().Name' Get it from AD DS .NET API
89
-
EndIf
85
+
domainName=GetComputerDomain().Name' Get it from AD DS .NET API
90
86
EndIf
91
87
DynaLog.LogMessage("Domain name: "&ControlChars.Quote&domainName&ControlChars.Quote&". If it's empty, it could be because the device is not part of a domain.")
0 commit comments