Start a Conversation

Unsolved

This post is more than 5 years old

47650

October 13th, 2009 18:00

DDP- Reboot step

After running the VBS script above to troubleshoot a DDP TS problem we get the following output:
D:\>cscript Testit.vbs
Microsoft (R) Windows Script Host Version 5.8
Copyright (C) Microsoft Corporation. All rights reserved.
D:\Testit.vbs(16, 1) SWbemLocator: The RPC server is unavailable.

We also see the RPC server is unavailable in the SMSTS.LOG file in the installation deployment log.

Any suggestions on what to try next?

PS. Firewalls are turned off for troubleshooting.

118 Posts

October 13th, 2009 21:00

does line 16 of your script correspond to this line?
Set objSMS= objLoc.ConnectServer(strSMSServer, "root\sms", strUsername, strPassword)

make sure you updated the variables earlier int he script, where you set strSMSServer, strUserName, strPassword, intResourceID, etc...

make sure that you can ping your site (should be where the sms provider is located) from the client.

4 Posts

October 14th, 2009 09:00

Greg,

Thanks for the quick reply, here is more info...

This is the line:
Set objSMS = objLoc.ConnectServer(Loc.Machine, "root\sms\site_" & _
Loc.SiteCode, strUserName, strPassword)

The variables are set as below:
strSMSServer = "10.32.71.225" 'The server name of the site server
strVarName = "TestRebootStepCollVar" 'the variable name to create
strVarValue = "200" 'the variable value
intMask = 0 ' set to 0 to NOT mask the variable value
intResourceID = 701 'the resourceID of the client to modify. To find the ResourceID, right-click on the computer object,
'and select Properties fromt he ConfigMgr Admin Console.
strUserName = "gblappqa\BranchTest" 'domain/username of the account
strPassword = "Pa$word" 'password of the account

Also, not only can I ping the configmgr server from the client, these are the same credentials I use to map a drive to the configmgr server to copy over the smsts.log to view the error.

118 Posts

October 14th, 2009 10:00

not sure if it will make a difference, but try to use the sms server netbios name instead of the IP address..

4 Posts

October 14th, 2009 19:00

Yes, we tried netbios names in the beginning and switched to ip address for troubleshooting.

118 Posts

October 14th, 2009 22:00

hm - that's a tough one. . .
Is the ConfigMgr Site, ConfigMgr (SMS) provider, and SQL database all on the same site? the server name you enter should be the sms provider, which is normally on the site server.
for troubleshooting, you may want to hard code information into this line. . and maybe even reove the line continuation. . so for example of my site server is "myLABServer" and my site code is "LAB", it would look like this:

Set objSMS = objLoc.ConnectServer("myLABServer", "root\sms\site_LAB", "mydomain\myusername", "MYPass")

make sure this username/password has rights to configmgr, not just the ability to map a drive.

4 Posts

October 15th, 2009 09:00

Ok, hardcoded the information as you suggested on a single line and get a new error.

Creating computer settings object
D:\Testit.vbs(38, 1) SWbemObjectEx: Generic failure

This refers to the line below:

If settings.Count = 0 Then
Wscript.Echo "Creating computer settings object"
Set computerSettings = connection.Get("SMS_MachineSettings").SpawnInstance_
computerSettings.ResourceID = computerId
computerSettings.SourceSite = siteCode
computerSettings.LocaleID = 1033
computerSettings.Put_ <<
End If

118 Posts

October 15th, 2009 16:00

ok - if it's failing there, it could be a few things:
1 - the other variables need updated (comptuerID should be the ResourceID for the system to modify, and SiteCode should be the site code of the site server . . . if I recall)
2 - the account you're using does not have proper rights to modify machine variables. to check this, I would launch the admin console using that user's rights, and see if you can manually modify a machine variable.

11 Posts

November 12th, 2009 11:00

The only way I can get the RebootStep variable to work is to follow the steps in the Troubleshooting DDP - RebootStep ( http://www.delltechcenter.com/page/Troubleshooting+DDP+-+RebootStep) and then in addition to the steps listed, I must make the lowrightsuser a member of the local administrators group.

I have tried using the CreateTSVariable.vbs script and get the same results. What am I missing? Using the script is pretty telling. I mean if I omit the step of putting the lowrightsuser account in the local administrators group, I get CreateTSVariable(12, 1) SWbemLocator: Access is denied.

Anyone have any ideas?

11 Posts

November 12th, 2009 12:00

I am wondering if this is a Windows Server 2008 issue. My SCCM 2007 site server is runing on W2K8 server. I put the lowrights use in the smsadmins group and the Remote Desktop Users group and then made the changes to ConfigMgr user rights. When I log on as the lowrights user, he cannot run the ConfigMgr console. That account gets access denied..

Any ideas?

118 Posts

November 12th, 2009 12:00

when you're running the createtsvariable.vbs, are you running it local to the site server? If so, try running it from a remote system to see if you have the same results.

11 Posts

November 12th, 2009 13:00

"when you're running the createtsvariable.vbs, are you running it local to the site server? If so, try running it from a remote system to see if you have the same results.
"
It is running from a different host. If I change the accounts in the .vbs to an account that has local admin (along with the other rights) it works fine.

11 Posts

November 17th, 2009 12:00

Is there any more info you need from me to help me troubleshoot this?

October 15th, 2010 13:00

I'm having a problem with the actual reboot to PXE/ USB step. The variables get set but it never actually reboots. The log says everything was successful, but it's doesn reboot. It just continues to the next step... am I missing something?

1 Message

January 21st, 2011 18:00

I've been beating my head over this with the HP Proliant task sequences. They are the exact same scripts, etc. I have never been able to get the RebootStep variable to show in the machine, inside SCCM. I was able to test Greg's script and it worked. I'll have to modify my customreboot script from HP.
Randy - check the task sequence condition and see if it corresponds to the value of the rebootstep variable. If the values do not match it will go to the next step. Also, try creating a fresh task sequence. I've had that help in the past when I've messed with it too much. And also, start over and make a new advert and clear any variables in SCCM for that client.
No Events found!

Top