Re: My custom actions in the state restore phase are not working?

Tech-Archive recommends: Speed Up your PC by fixing your registry



Figured out what I did wrong with your script Jaybee
the line below is supposed to be on line instead of 2.

Set objLocalGroup = GetObject("WinNT://" & strComputer &
"/Administrators,group")

Script runs fne now and acutally learned some more scripting on how to del
folders and remove users from local machine.

Thanks for all the help and patience. Scripting is not something I watned to
learn but it's a nessacary evil with SMS.

Thanks again
Chad B


"Johan Arwidmark" wrote:

> If this is a New Computer (bare metal) install you need to either set
> MP and SiteCode in customsettings.ini (if you are using ZTI) or in a
> script in the pre-install phase.
>
> If you are using ZTI, add the OSDMP,OSDSITECODE variables to
> OSDVariableKeys and set the values in the [Default]
>
> OSDMP=SMSSERVERNAME:80
> OSDSITECODE=XXX
>
> If you are using plain vanilla OSD, create a vbscript with the
> following info and add it to the preinstall phase
>
> Set osd = CreateObject("OSD.Environment")
> osd("OSDMP") = "SMSSERVERNAME:80"
> osd("OSDSITECODE") = "XXX"
>
>
>
> regards
>
> Johan Arwidmark
> Microsoft MVP - Setup/Deployment
>
>
> On Tue, 11 Oct 2005 17:59:02 -0700, "Chad Borsheim"
> <ChadBorsheim@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
>
> >I have created a custom action in the state restore area for a OSD Cd
> >deployment.
> >OS I am using is Win XP SP2
> >
> >The action I want to run is to add a Domain group to the local admin group.
> >The command I am using in the custom action is the following.
> >c:\windows\systems32\net use localgroup administrators infosys /add
> >
> >I am also having trouble tracking down a error code in any of the log files
> >located in the MININT folder. Where does the custom action commands get
> >logged to.
> >
> >Also what is the correct way or preferred way to execute a dos command on
> >the local pc through a sms package or etc...
> >
> >Thanks
> >Chad Borshiem
>
>
.



Relevant Pages

  • Re: Need help with running vbs in Custom Actions Commit
    ... You're going to have to post your exact script. ... because that WILL fail in a custom action and is a common error. ... It is extremely ususual for one Dll to require registration before another. ... I am using MSI for my setup project in VS2005. ...
    (microsoft.public.vsnet.setup)
  • Re: My custom actions in the state restore phase are not working?
    ... as the package is selected and a DP located, the ZTI script ... from this command line only with minimal impact. ... > only the server in which the ZTI folder exists. ... >>>I have created a custom action in the state restore area for a OSD Cd ...
    (microsoft.public.sms.tools)
  • Re: My custom actions in the state restore phase are not working?
    ... The script could be changed to add individual ... batch/command file to delete the folder you want. ... > What I really need to know is how do I execute a dos command through SMS ... >>>I have created a custom action in the state restore area for a OSD Cd ...
    (microsoft.public.sms.tools)
  • Re: moving computer from one OU to another
    ... Set objMoveComputer = objNewOU.MoveHere _ ... custom action) or in the new OS. ... to overcome unless you are willing to hard-code credentials in the script. ... And you can use the OSD "OSDCOMPUTERNAME" variable to ...
    (microsoft.public.sms.tools)
  • Re: My custom actions in the state restore phase are not working?
    ... Where can I look to troubleshoot the custom action in the state restore ... > groupadd.vbs" (or whatever your script is called), ... > the vbs file to the source files of that OS package. ...
    (microsoft.public.sms.tools)