Re: My custom actions in the state restore phase are not working?
- From: "Chad Borsheim" <ChadBorsheim@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 12 Oct 2005 08:30:17 -0700
I must be missing something becasue I cannot get a dos command to run locally
on through sms assinged packages, batch files or custom actions.
Thanks
chad B
"JayBee" wrote:
> That script works fine in my environment to add a DOMAIN\Group to the
> MACHINE\Administrators group. The script could be changed to add individual
> users to the group. This script runs during the State Restore phase of OSD.
>
> However you could always use group policy to control user/group membership
> of the local Administrators group.
>
> Deleting a folder from a workstation would be something like writing a
> batch/command file to delete the folder you want. Then either assigning the
> batch file as a custom action in one of the OSD phases or making the batch
> file into a package that you could assign to your users.
>
> It really depends on what you want to achieve as to how you go about doing
> it. Is it always going to be actions performed on machines during OSD or do
> you want to manage all machines?
>
> "Chad Borsheim" <ChadBorsheim@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> news:7C94C15B-1128-4BD0-8DBF-E78A050C7827@xxxxxxxxxxxxxxxx
> > Script did not work.
> >
> > What I really need to know is how do I execute a dos command through SMS
> > on
> > a local pc. Do I have to use a scripting to do this.
> >
> > an example would be I want to del a folder on everyone workstation or
> > add/remove a user from the local admin group.
> >
> > Thanks
> > Chad
> >
> > "JayBee" wrote:
> >
> >> Try this VBS script for adding groups.
> >>
> >> --------------------------------------------------------------------------------------------
> >> strDomain = "Your Domain Name Here"
> >>
> >> strDomainGroup = "WinNT://" & strDomain & "/Domain Group Here,group"
> >>
> >> 'Wscript.Echo "strDomainGroup: " & strDomainGroup
> >>
> >> Set objDomainGroup = GetObject(strDomainGroup)
> >>
> >> Set objNetwork = CreateObject("Wscript.Network")
> >> strComputer = objNetwork.ComputerName
> >>
> >> Set objLocalGroup = GetObject("WinNT://" & strComputer &
> >> "/Administrators,group")
> >>
> >> If Not objLocalGroup.IsMember(objDomainGroup.AdsPath) Then
> >> objLocalGroup.Add(objDomainGroup.AdsPath)
> >> End If
> >> -------------------------------------------------------------------------------------------
> >>
> >> "Chad Borsheim" <ChadBorsheim@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> >> news:535267E2-B617-45E9-9516-368AEC30D61F@xxxxxxxxxxxxxxxx
> >> >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:
- Prev by Date: Re: OSD FP with RIS
- Next by Date: Re: My custom actions in the state restore phase are not working?
- Previous by thread: Re: My custom actions in the state restore phase are not working?
- Next by thread: Re: My custom actions in the state restore phase are not working?
- Index(es):
Relevant Pages
|