dcsimg
Results 1 to 10 of 10

Thread: [RESOLVED] JoinDomainOrWorkGroup fails on Windows 8

  1. #1

    Thread Starter
    Hyperactive Member BrianPaul's Avatar
    Join Date
    Aug 2007
    Posts
    294

    Resolved [RESOLVED] JoinDomainOrWorkGroup fails on Windows 8

    Does anyone know why the following line of code would fail in Windows 8?

    ReturnValue = objComputer.JoinDomainOrWorkGroup(strDomain, strPassword, strDomain & "\" & strUser, strOU, JOIN_DOMAIN + ACCT_CREATE)

  2. #2
    PowerPoster
    Join Date
    Feb 2006
    Posts
    20,719

    Re: JoinDomainOrWorkGroup fails on Windows 8

    Some editions of Windows 8 can't join a Domain or a Workgroup at all, only the goofy HomeGroup thing as far as I know.

    This was one of the major problems with the RT (ARM tablet) flavor. They're fixing it in Windows 8.1 which comes out Real Soon Now.

    Welcome to the new Windows Treadmill.

  3. #3

    Thread Starter
    Hyperactive Member BrianPaul's Avatar
    Join Date
    Aug 2007
    Posts
    294

    Re: JoinDomainOrWorkGroup fails on Windows 8

    We are using Win8 Pro. I found out that I had to run the vb program as administrator (even though I was already logged in as an administrator!). I right clicked on the program and chose "Run as administrator" and it worked fine. Never had to do that in Win7.

  4. #4
    PowerPoster
    Join Date
    Feb 2006
    Posts
    20,719

    Re: JoinDomainOrWorkGroup fails on Windows 8

    Ahh, yes Pro can do it. But a non-admin under Win7? That's a new one on me.

  5. #5
    Hyperactive Member
    Join Date
    May 2007
    Posts
    278

    Re: JoinDomainOrWorkGroup fails on Windows 8

    Quote Originally Posted by BrianPaul View Post
    Never had to do that in Win7.
    Strange, maybe UAC was disabled?

  6. #6

    Thread Starter
    Hyperactive Member BrianPaul's Avatar
    Join Date
    Aug 2007
    Posts
    294

    Re: JoinDomainOrWorkGroup fails on Windows 8

    Quote Originally Posted by dilettante View Post
    Ahh, yes Pro can do it. But a non-admin under Win7? That's a new one on me.
    It was an admin user in both Win7 and Win8 (never a non-admin). The other day I was working with Microsoft on a KMS licensing issue and the engineer would always launch programs (even the command prompt) with "Run as administrator", even though logged in as an administrator. What would be the need to launch it with "run as admin" if you are already an admin? I don't get it!

  7. #7

    Thread Starter
    Hyperactive Member BrianPaul's Avatar
    Join Date
    Aug 2007
    Posts
    294

    Re: JoinDomainOrWorkGroup fails on Windows 8

    Quote Originally Posted by Lauriux1 View Post
    Strange, maybe UAC was disabled?
    I will check on that tomorrow, but I would think it would be more likely to work if it was disabled.

  8. #8
    PowerPoster
    Join Date
    Feb 2006
    Posts
    20,719

    Re: JoinDomainOrWorkGroup fails on Windows 8

    The "run as admin" doesn't mean "as admin" but "with elevated rights."

    The security concepts have changed but they kept some of the old terminology to help people transition. The result can be more confusing than if they had changed more terminology, and sadly they are probably stuck with it now for many more years.

  9. #9

    Thread Starter
    Hyperactive Member BrianPaul's Avatar
    Join Date
    Aug 2007
    Posts
    294

    Re: [RESOLVED] JoinDomainOrWorkGroup fails on Windows 8

    Is it possible to include "elevated rights" within the code so that the program does not need to be launched in this way?

  10. #10
    PowerPoster
    Join Date
    Feb 2006
    Posts
    20,719

    Re: [RESOLVED] JoinDomainOrWorkGroup fails on Windows 8

    A program can have an elevation manifest, or can be "marked" to run this way through appcompat, or can trigger elevation through legacy installer heuristics in Shell32... but you'll always get a UAC prompt. The whole idea is to prevent anything from being run elevated without human approval, as one defense against malware.

    Or you can turn UAC off on machines, helping to add to the global spam problem as those machines gradually become spambot zombies.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width