Jump to content


  • 0
boozecow

Apply Network Settings Not Working SCCM R2

Question

I'm new and I successfuly create a reference image following guides from this forum.

 

I'm trying to deploy this reference image and the only task none working for me is the task "Apply Network Settings"

 

Here the resume of my Task sequence:

 

Install Operating System

-. Restart in Windows PE

-. Partition Disk

-. Apply Operating System

-. Apply Windows Settings

-. Apply Device Drivers

Setup Operating System

-. Setup windows and configMgr

-. Apply Network Settings

 

At the end, my PC are not in the domain and on the smsts.log I have:

Successfully complete the action (Apply Network Settings) with the exit win32 code 0

 

So doens't looks like to have any usefull error I can work on.

 

The task Apply Network Settings is really basic:

 

Join a domain:

Domain: Mydomain.ca

Domain OU: LDAP://CN=Computers,DC=Mydomain,DC=ca

 

Any hint for me where I can work in to make this working ?

 

Thanks in advance for any help !

smsts.txt

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Finaly, I'm using a VBScript and running it as a task sequence.

 

Working nice.

 

It's not perfect because I'm now having a password in clear text inside a file but at least I'm now having a work around.

 

 

Const JOIN_DOMAIN = 1

Const ACCT_CREATE = 2

Const ACCT_DELETE = 4

Const WIN9X_UPGRADE = 16

Const DOMAIN_JOIN_IF_JOINED = 32

Const JOIN_UNSECURE = 64

Const MACHINE_PASSWORD_PASSED = 128

Const DEFERRED_SPN_SET = 256

Const INSTALL_INVOCATION = 262144

 

strDomain = "Domain.CA"

strPassword = "Passw0rd"

strUser = "User"

 

Set objNetwork = CreateObject("WScript.Network")

strComputer = objNetwork.ComputerName

 

Set objComputer = GetObject("winmgmts:{impersonationLevel=Impersonate}!\\" & _

strComputer & "\root\cimv2:Win32_ComputerSystem.Name='" & _

strComputer & "'")

 

ReturnValue = objComputer.JoinDomainOrWorkGroup(strDomain, _

strPassword, strDomain & "\" & strUser, NULL, _

JOIN_DOMAIN + ACCT_CREATE)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.