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



Glad to hear that. Unfortunately these newsgroups are a little evil with the
line wrapping and cropping and can cause issues (thats why I prefere BB's
myself, the [CODE] tags make copying scripts a doddle).

I am in the same position as you, I never had any interest in scripting but
I am beggining to learn bits here and there, purely to help with SMS.

JayBee

"Chad Borsheim" <ChadBorsheim@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:851ED5C7-03CA-48F9-B032-436E38232700@xxxxxxxxxxxxxxxx
> 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
>>
>>


.


Loading