Windows 10: Problem with adding computers to domain group using powershell

Discus and support Problem with adding computers to domain group using powershell in Windows 10 Gaming to solve the problem; Hello,I am trying to add computer to my company domain, however I get error messageAdd-Computer : Computer 'testcomputer' failed to join domain... Discussion in 'Windows 10 Gaming' started by Stanislav Dmytrenko, Jul 31, 2023.

  1. Problem with adding computers to domain group using powershell


    Hello,I am trying to add computer to my company domain, however I get error messageAdd-Computer : Computer 'testcomputer' failed to join domain 'mydomain.local' from its current workgroup 'SDF' with following error message: Access is denied.At C:\temp\JoinDomain.ps1:1 char:1+ Add-Computer -DomainName "mydomain.local"+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo :

    :)
     
    Stanislav Dmytrenko, Jul 31, 2023
    #1
  2. bdanmo Win User

    UnattendedJoin error: failed to find the domain data (0x6e)

    Thanks for the suggestion! I don't want to add a domain account, as this is a generic unattended install that will be used for all company machines. Do you think it's possible that the computer would join the domain if, instead of using UnattendedJoin in specialize, I used your steps but left out the specific account?

    The other thing I was thinking was to use a generic account to allow the domain join during the specialize step. I added a machine password in the UnattendedJoin component, and instead of getting the error listed above, I got an authentication error, which makes me think I could probably do a secure join instead of the unsecure join.

    Thoughts?
     
    bdanmo, Jul 31, 2023
    #2
  3. Kayak404 Win User
    Group policy using powershell on a non domain joined machine

    I'm trying to use PowerShell to set group policy on a number of non domain joined PCs running Windows 10 Professional.

    I have installed RSAT: Group Policy Management Tools but when using the get-GPO cmdlet the following error occurs:

    get-GPO : Current security context is not associated with an Active Directory domain or forest.

    Is there a method to use get-GPO and other associated cmdlets to just use the local computer?

    Thanks
     
    Kayak404, Jul 31, 2023
    #3
  4. changari Win User

    Problem with adding computers to domain group using powershell

    Raising the windows domain and forest issues?


    hi,

    I run a domain that was all 2003 r2 servers. I recently upgraded all my domain controllers to windows 2012 r2.
    That went off without any problems.. Our trust relationships had no issues also.

    My first step was to raise the Domain and Forest levels past 2003 to 2008. This went off without a hitch.
    These are the features for raising the levels to 2008:

    • Features and benefits include all default Active Directory features, all features from the Windows Server 2003 domain functional level, plus:
    • Read-Only Domain Controllers – Allows implementation of domain controllers that only host read-only copy of NTDS database.
    • Advanced Encryption Services – (AES 128 and 256) support for the Kerberos protocol.
    • Distributed File System Replication (DFSR) – Allows SYSVOL to replicate using DFSR instead of older File Replication Service (FRS). It provides more robust and detailed replication of SYSVOL contents.

    Forest Level Windows Server 2008

    • Features and benefits include all of the features that are available at the Windows Server 2003 forest functional level, but no additional features. All domains that are subsequently added to the forest will operate at the Windows Server 2008 domain functional level by default.


    My next step is to raise the domain and forest to 2008 r2, then 2012, and finally 2012 r2. I have been trying to find out exactly what I could expect from raising the Domain and Forest for each step.

    The step involving 2008 r2 seems relatively a non issue. But getting the couple of new features seem very nice

    Domain Level Windows Server 2008 R2

    • All default Active Directory features, all features from the Windows Server 2008 domain functional level, plus 2 new features

    Forest Level Windows Server 2008 R2

    • All of the features that are available at the Windows Server 2003 forest functional level, plus the following features:


    • Active Directory Recycle Bin, which provides the ability to restore deleted objects in their entirety while AD DS is running. <== New Feature very cool
    • All domains subsequently added to the forest will operate at the Windows Server 2008 R2 domain functional level by default.

    Here is my big concerns for the next raising of domain and forest to 2012.

    Forest Level Windows Server 2012:

    • All of the features that are available at the Windows Server 2008 R2 forest functional level, but no additional features.
    • All domains subsequently added to the forest will operate at the Windows Server 2012 domain functional level by default.

    Domain Level Windows Server 2012 R2: <=====
    Need to investigate more and why this post

    • DC-side protections for Protected Users. Protected Users authenticating to a Windows Server 2012 R2 domain can no longer:


    • Authenticate with NTLM authentication <==============(what issues may arise)
    • Use DES or RC4 cipher suites in Kerberos pre-authentication
    • Be delegated with unconstrained or constrained delegation
    • Renew user tickets (TGTs) beyond the initial 4-hour lifetime


    Will this affect my exchange anywhere users with remote access authenticating either clear of NTLM???
    and what would/may not to work properly day 1 when I raise the domain and forest to 2012. I cant really find anyone that can answer a straight question.

    Has anyone gone through this? what problems did you have, if any , if a lot???

    Any thoughts and suggestions will be much appreciated??

    thanks


    - - - Updated - - -

    One more point... I am not sure if I posted this to the correct forum.. So if I was wrong and it should be in a different one..
    PLEASE LET ME KNOW
     
    changari, Jul 31, 2023
    #4
Thema:

Problem with adding computers to domain group using powershell

Loading...
  1. Problem with adding computers to domain group using powershell - Similar Threads - Problem adding computers

  2. adding legacy computers to a domain

    in Windows 10 Gaming
    adding legacy computers to a domain: We have approx 20 Mazak milling machines running either Win 95, Win 2000 Pro or Win XP. Since the beginning of the year I've not been able to re-add them back onto the domain functional level 2016. As they are old a hard drive replacement is often needed to keep them going...
  3. adding legacy computers to a domain

    in Windows 10 Software and Apps
    adding legacy computers to a domain: We have approx 20 Mazak milling machines running either Win 95, Win 2000 Pro or Win XP. Since the beginning of the year I've not been able to re-add them back onto the domain functional level 2016. As they are old a hard drive replacement is often needed to keep them going...
  4. Problem with adding computers to domain group using powershell

    in Windows 10 Software and Apps
    Problem with adding computers to domain group using powershell: Hello,I am trying to add computer to my company domain, however I get error messageAdd-Computer : Computer 'testcomputer' failed to join domain 'mydomain.local' from its current workgroup 'SDF' with following error message: Access is denied.At C:\temp\JoinDomain.ps1:1 char:1+...
  5. Group policy using powershell on a non domain joined machine

    in Windows 10 Gaming
    Group policy using powershell on a non domain joined machine: I'm trying to use PowerShell to set group policy on a number of non domain joined PCs running Windows 10 Professional.I have installed RSAT: Group Policy Management Tools but when using the get-GPO cmdlet the following error occurs:get-GPO : Current security context is not...
  6. Group policy using powershell on a non domain joined machine

    in Windows 10 Software and Apps
    Group policy using powershell on a non domain joined machine: I'm trying to use PowerShell to set group policy on a number of non domain joined PCs running Windows 10 Professional.I have installed RSAT: Group Policy Management Tools but when using the get-GPO cmdlet the following error occurs:get-GPO : Current security context is not...
  7. Group policy using powershell on a non domain joined machine

    in Windows 10 Customization
    Group policy using powershell on a non domain joined machine: I'm trying to use PowerShell to set group policy on a number of non domain joined PCs running Windows 10 Professional.I have installed RSAT: Group Policy Management Tools but when using the get-GPO cmdlet the following error occurs:get-GPO : Current security context is not...
  8. need a script to add group or groups to AD workstations maybe powershell?

    in Windows 10 Customization
    need a script to add group or groups to AD workstations maybe powershell?: I need a script or batch job or powershell to add one or more ad groups to newly imaged or upgraded workstations. Anyone have it already written or can I do it to multiple workstations using my ad tools ?...
  9. Adding computer to domain successful in GUI but always fails in powershell (administrator)

    in Windows 10 BSOD Crashes and Debugging
    Adding computer to domain successful in GUI but always fails in powershell (administrator): Hello, I am able add computer to domain using GUI but from powershell I am always getting below error. Please help. You have exceeded the maximum number of computer accounts you are allowed to create in this domain. Contact your system administrator to have this limit...
  10. Is there a way to change the passwords to a group of PCs in an AD domain?

    in AntiVirus, Firewalls and System Security
    Is there a way to change the passwords to a group of PCs in an AD domain?: Wondering if there is any way to do this. My staff support a small organization with roughly 1600 PCs. We are a public office, so we have about 200 "kiosk" PCs where the public can come in and look up information using very locked down desktops. The PCs are all running...