Jump to content


kkonovalov

Established Members
  • Content Count

    19
  • Joined

  • Last visited

Community Reputation

0 Neutral

About kkonovalov

  • Rank
    Member
  1. I am using the CM12 bitlocker hta and want to incorporate software installation into it. I have a task sequence variable that links up to my sccm2012 repository to install firefox if the task sequence variable OSDFirefox = True My checkbox input looks like this: <input type="checkbox" name="Firefox" value="True" /> Firefox Then I have some vbscript stating: If Firefox.checked Then oTasksequence ("OSDFirefox") = "True" End if However this was not enough as the variable still was not being exported out.. In my javascript I have set to return a confirmation message which should tell me if the value is true or not. Firefox= document.getElementById("Firefox").checked; When I test these script my value for Firefox comes up as Yes all the time. What am I doing wrong?
  2. I've tried both ways, but it wont output the second value, stating unable to get property "undefined" of undefined or null reference.
  3. I am trying to add step to my HTA file, an extra OU value if Windows 8 checkbox is checked (OU=Windows8,) in front of the OU path that gets outputted (OUName). Currently my drop down contains the following: td colspan=1 class="taskTableLeftCell">OU</td> <td class="taskTableSpanSecondAndThirdCell"> <select name="OUName" id="OUName"> <option value="LDAP://OU=Administrative,OU=Workstations,DC=imo-online,DC=com" >Administrative</option> <option value="LDAP://OU=Development,OU=Workstations,DC=imo-online,DC=com" >Development</option> <option value="LDAP://OU=External,OU=Workstations,DC=imo-online,DC=com" >External</option> <option value="LDAP://OU=IT,OU=Workstations,DC=imo-online,DC=com">IT</option> <option value="LDAP://OU=Restricted,OU=Workstations,DC=imo-online,DC=com">Restricted</option> <option value="LDAP://OU=Sales,OU=Workstations,DC=imo-online,DC=com" >Sales</option> <option value="LDAP://OU=Service_Computers,OU=Workstations,DC=imo-online,DC=com" >Service Computers</option> </select> My checkbox says the following <input type>"checkbox" id="mycheck" value"OU=Win8,"/> Then I have my Java saying: function Win8() { var x=document.getElementById("myCheck").value; document.getElementsById("Win8").innerhtml=x; } The other java code is below which adds these 2 ou values together: var OUDrop = document.getelementById("OUName") + document.getElementById("Win8"); When I try to run this and proceed in my script I get an answer- Unable to get property 'undefined' of undefined or null reference. Not sure what I am doing wrong.
  4. Ya, I was thinking of using the deployment package as a reference point.
  5. I have determined how to properly place new computers in their appropriate OU's based on some html drop down options. However I want to go even further and place Windows8 machines in a subdirectory of the Ou's they go into. What statement should I be using for this? The only thing that specifies if it is a win 7 or 8 is the deployment. One is called Windows 7 Deployment in the software library and one is called Windows 8 Deployment. How would I use these variables?
  6. I think I made an improper change in my customsettings.ini file and now my computers wont join the domain in the deployment. Where is the settings that joins the pc to the default container Computers OU located? My custom settings.ini file is below. I think my problem lies in the change computername step... [Settings] Priority=Default Properties=MyCustomProperty ; ; You can put this file in the root of MDTFiles instead of MDTSettings (quicker to update everything) ; The Webservice is running on our SCCM server ; ; to learn about how to setup Webservices see ; http://www.windows-noob.com/forums/index.php?/forum/98-frontends-and-web-services/ ; ; windows-noob.com (c) January 2013 [Default] OSInstall=Y SkipAppsOnUpgrade=YES SkipCapture=YES SkipAdminPassword=NO SkipProductKey=YES Slshare=%Deployroot%\Logs [ChangeComputerName] ;WebService=http://v-sccm2012/frontend/ad.asmx/GenerateComputerName ;Parameters=dnsDomain,prefix,uuid,MachineObjectOU ;dnsDomain=server2008.lab.local ;prefix=XXX ;uuid=0BFAAD85-B99D-426E-B338-9A4DE5F9DAAD ;OSDComputerName=String ;OSDDomainOU=String [GetSCCMAssignedSite] WebService=http://v-sccm2012/frontend/ad.asmx/GetSCCMAssignedSite AssignedSite=string [GetSiteServer] WebService=http://v-sccm2012/frontend/ad.asmx/GetSCCMSiteServer Parameters=siteCode [helloworld] WebService=http://v-sccm2012/frontend/service1.asmx/HelloWorld [helloworld3] WebService=http://v-sccm2012/frontend/service1.asmx/HelloWorld3 Parameters=name,age [IsComputerKnown] WebService=http://v-sccm2012/frontend/sccm.asmx/IsComputerKnown Parameters=MacAddress,UUID,SiteCode [GetResourceID] WebService=http://v-sccm2012/frontend/sccm.asmx/GetResourceID Parameters=MacAddress,UUID,SiteCode [GetComputerName] WebService=http://v-sccm2012/frontend/sccm.asmx/GetComputerName Parameters=MacAddress,UUID,SiteCode [SearchComputerByName] WebService=http://v-sccm2012/frontend/sccm.asmx/SearchComputerByName Parameters=SearchString,SiteCode [AddComputerAssociationByID] WebService=http://v-sccm2012/frontend/sccm.asmx/AddComputerAssociationByID Parameters=ReferenceComputerResourceId,DestinationComputerResourceId,SiteCode
  7. What is the best way to get an OU selection into this HTA? I have everything down to a science but still cannot get the variables to pass. I am using OSDDomainOUName when creating the objects in tsENV. Has anyone gotten this to work before?
  8. Can you advise how I would export this? What changes do I need to make to the script?
  9. I have been trying to add an OU selection during my deployement in my HTA and JS files, But I cant seem to get the variable MachineObjectOU to get passed along. It keeps placing everything in the Computers OU... The code in question is below: How do I write the correct javascript to pass the value?? I have MacineObejectOU = document.getElementById('MachineObjectOU').checked That does not work though, anyone have suggestions? <p><Select id=JoinDomain name=JoinDomain language=vbscript onchange="myfunction()" onpropertychange=ValidateDomainMembership accesskey=a> <option>Select Domain</option> <option value="Administrative">Administrative</option> <option value="Developement">Developement</option> <option value="External">External</option> <option value="IT">IT</option> <option value="Restricted">Restricted</option> <option value="Sales">Sales</option> <option value="Service Computers">Service Computers</option> <label class=ErrMsg for=JoinDomain>* Required</label> </p> </td> </tr> <script type="text/javascript"> function myFunction() { alert(JoinDomain.value); switch(JoinDomain.value) { case "Administrative": MachineObjectOU.value="OU=Administrative,OU=Workstations,DC=online,DC=com"; break; case "Developement": MachineObjectOU.value="OU=Developement,OU=Workstations,DC=online,DC=com"; break; case "External": MachineObjectOU.value="OU=External,OU=Workstations,DC=online,DC=com"; break; case "IT": MachineObjectOU.value="OU=IT,OU=Workstations,DC=online,DC=com"; break; case "Restricted": MachineObjectOU.value="OU=Restricted,OU=Workstations,DC=online,DC=com"; break; case "Sales": MachineObjectOU.value="OU=Sales,OU=Workstations,DC=online,DC=com"; break; case "Service Computers": MachineObjectOU.value="OU=Service Computers,OU=Workstations,DC=online,DC=com"; break; } } </script> <tr> <td colspan=2></td> <td> </td> <td id=PopupParent> <input type=text id=MachineObjectOU name=MachineObjectOU size=60 language=vbscript onpropertychange=ValidateDomainMembership accesskey=O> <input type="button" id=MachineObjectOUOptionalBtn hidefocus="1" value="▼" style="height:23; width:16; font-family: helvetica; font-size: 7pt; display: none;" onclick="JavaScript:HideUnHideComboBox();"> <div id="PopupBox" style="position:absolute; display:none; z-index:10000; width: 240px; left: 250px;" > <select size="6" id="MachineObjectOUOptional" style="width: 100%; border-style: none" onchange="JavaScript:MachineObjectOU.value = this.value;" onclick="javascript:HideUnHideComboBox();"> </select>
  10. I've been trying to get the pause functionality without success, can you advise how to accomplish that?
  11. There is an error in the task sequence and I have to shut down the computer, if I continue it will not use the apply networking settings step and join no domain. I think my problem lies in my java backend code. Can you send me a snipit of the code you used in your java?
  12. I think my java backend is the problem.. How do I confirm it is being set before the task sequence starts? I get an error that there is a problem with the task sequence and it has to shut down. If I continue to start windows no domain is joined.
×
×
  • Create New...