Re: My custom actions in the state restore phase are not working?
- From: "Chad Borsheim" <ChadBorsheim@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 12 Oct 2005 16:17:05 -0700
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
>
>
.
- Follow-Ups:
- References:
- Re: My custom actions in the state restore phase are not working? Help
- From: Johan Arwidmark
- Re: My custom actions in the state restore phase are not working? Help
- Prev by Date: Re: My custom actions in the state restore phase are not working? Help
- Next by Date: Re: Group Policy Setting Preventing OSD State Restore phase to not run
- Previous by thread: Re: My custom actions in the state restore phase are not working? Help
- Next by thread: Re: My custom actions in the state restore phase are not working?
- Index(es):
Relevant Pages
|