ITMS Administrator Group

 View Only
  • 1.  Add predefined computers script on DS 7.5

    Posted Mar 19, 2014 09:58 AM

    Anyone has working version of a scipt to add predefined computers with use of script (instead buit-in SMP panel ).

     

    We had SMP 7.1 working version but does not work after upgrade to SMP 7.5



  • 2.  RE: Add predefined computers script on DS 7.5

    Posted Mar 19, 2014 10:01 AM
    https://www-secure.symantec.com/connect/forums/predefined-computers-permissions is the original version of the script


  • 3.  RE: Add predefined computers script on DS 7.5

    Posted Mar 19, 2014 10:51 AM

    I'm "guessing" that your calls to the ASDK is all that changed.  I don't know the calls off the top, but the CSV format is exactly the same, so the calls have to be all that changed.  Yes, DS 7.5 does import via CSV, so it should all work if you can verify the individual ASDK calls...

     

    Just a thought.



  • 4.  RE: Add predefined computers script on DS 7.5

    Posted Mar 20, 2014 06:47 PM

    Looks like ASDK calls has not changed on 7.5 version.

    One of output gave the error:

     

    Failed to construct DatabaseContext object. Connection to database failed.

     

    Do you know how i can verify if asdk calls uses wrong  connection string to smp database ?



  • 5.  RE: Add predefined computers script on DS 7.5

    Posted Mar 21, 2014 05:43 PM

    That sounds like a rights issue.  Just saying.  I don't use the ASDK enough to say at this time.  Sorry.



  • 6.  RE: Add predefined computers script on DS 7.5

    Posted Mar 23, 2014 12:33 PM

     

    Webservice:
    http://localhost/Altiris/ASDK.DeploymentSolution/DSTaskManagementService.asmx?op=RunDeploymentSolutionTask

    Invoke Command:
    <DeploymentItem><ItemType>Resources</ItemType>
        <ItemName>PredefinedComputers</ItemName>
        <ItemAction>add</ItemAction>
        <Item>
            <Computers>
                <Computer>HOSTNAME,MAC,,,,,,,,,,,,,,,,,HOSTNAME,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,</Computer>
            </Computers>
        </Item>
    </DeploymentItem>

     

    Then use whatever scriptlanguage you like. Powershell, C#, VBScript



  • 7.  RE: Add predefined computers script on DS 7.5

    Posted Mar 27, 2014 01:29 PM

    Ran into this yesterday trying to implement a similar script in 7.5.  It appears the run script on server task executes as system on the NS, so on the CMDB, I made the DOMAIN\NS$ account dbo.  Worked just fine after that.  That account already had rights on the SQL instance, just not explicitly on Symantec_CMDB.

    Now getting predefined computers to accept tasks afterwards is apparently not straightforward.