TechTalkz.com Logo

Go Back   TechTalkz.com Technology & Computer Troubleshooting Forums > Tech Support Archives > Microsoft > Windows Deployment

Notices

Computername variable in CS.ini

Windows Deployment


Reply
 
Thread Tools Display Modes
Old 28-11-2007, 05:55 PM   #1
KMCB
Guest
 
Posts: n/a
Computername variable in CS.ini

I have set up my custom settings file so that I can define properties based
upon the IsLaptop/IsDesktop fields. So far the ability to put computers in
diffenet OU's works fine. Problem is with the computername field. I know the
parameters work (see below) but only one naming format is followed based upon
which one is at the top of the list and it does not seem to care destop or
laptop. (ByType is called in the Priorities field) Anyone ever run into
this? Also how many times can the computername parameter be called?

[ByType]
SubSection=Laptop-%IsLaptop%
SubSection=Desktop-%IsDesktop%

[Desktop-True]
MachineObjectOU=OU=desktops,OU=Workstations,DC=XXX
ComputerName=D-#Left(%SerialNumber%,6)#

[Laptop-True]
MachineObjectOU=OU=laptops,OU=Workstations,DC=XXX
ComputerName=L-#Left(%SerialNumber%,6)#

  Reply With Quote
Old 28-11-2007, 05:55 PM   #2
Michael Niehaus [MSFT]
Guest
 
Posts: n/a
Re: Computername variable in CS.ini

There is an error in the documentation. You can't specify multiple
"Subsection" entries in a single section/rule. Instead, you would need to
break it into two separate rules:

[Settings]
Priority=ByLaptopType,ByDesktopType,...

[ByLaptopType]
Subsection=Laptop-%IsLaptop%

[ByDesktopType]
Subsection=Desktop-%IsDesktop%

[Desktop-True]
MachineObjectOU=OU=desktops,OU=Workstations,DC=XXX
ComputerName=D-#Left(%SerialNumber%,6)#

[Laptop-True]
MachineObjectOU=OU=laptops,OU=Workstations,DC=XXX
ComputerName=L-#Left(%SerialNumber%,6)#


Or, you could just use a single rule:

[Settings]
Priority=ByLaptopType,...

[ByLaptopType]
Subsection=Laptop-%IsLaptop%

[Laptop-False]
MachineObjectOU=OU=desktops,OU=Workstations,DC=XXX
ComputerName=D-#Left(%SerialNumber%,6)#

[Laptop-True]
MachineObjectOU=OU=laptops,OU=Workstations,DC=XXX
ComputerName=L-#Left(%SerialNumber%,6)#


-Michael

"KMCB" <> wrote in message
news:...
>I have set up my custom settings file so that I can define properties based
> upon the IsLaptop/IsDesktop fields. So far the ability to put computers
> in
> diffenet OU's works fine. Problem is with the computername field. I know
> the
> parameters work (see below) but only one naming format is followed based
> upon
> which one is at the top of the list and it does not seem to care destop or
> laptop. (ByType is called in the Priorities field) Anyone ever run into
> this? Also how many times can the computername parameter be called?
>
> [ByType]
> SubSection=Laptop-%IsLaptop%
> SubSection=Desktop-%IsDesktop%
>
> [Desktop-True]
> MachineObjectOU=OU=desktops,OU=Workstations,DC=XXX
> ComputerName=D-#Left(%SerialNumber%,6)#
>
> [Laptop-True]
> MachineObjectOU=OU=laptops,OU=Workstations,DC=XXX
> ComputerName=L-#Left(%SerialNumber%,6)#
>

  Reply With Quote
Old 28-11-2007, 05:55 PM   #3
KMCB
Guest
 
Posts: n/a
Re: Computername variable in CS.ini

Awesome Michael

Thanks for the quick response!!

Kath

"Michael Niehaus [MSFT]" wrote:

> There is an error in the documentation. You can't specify multiple
> "Subsection" entries in a single section/rule. Instead, you would need to
> break it into two separate rules:
>
> [Settings]
> Priority=ByLaptopType,ByDesktopType,...
>
> [ByLaptopType]
> Subsection=Laptop-%IsLaptop%
>
> [ByDesktopType]
> Subsection=Desktop-%IsDesktop%
>
> [Desktop-True]
> MachineObjectOU=OU=desktops,OU=Workstations,DC=XXX
> ComputerName=D-#Left(%SerialNumber%,6)#
>
> [Laptop-True]
> MachineObjectOU=OU=laptops,OU=Workstations,DC=XXX
> ComputerName=L-#Left(%SerialNumber%,6)#
>
>
> Or, you could just use a single rule:
>
> [Settings]
> Priority=ByLaptopType,...
>
> [ByLaptopType]
> Subsection=Laptop-%IsLaptop%
>
> [Laptop-False]
> MachineObjectOU=OU=desktops,OU=Workstations,DC=XXX
> ComputerName=D-#Left(%SerialNumber%,6)#
>
> [Laptop-True]
> MachineObjectOU=OU=laptops,OU=Workstations,DC=XXX
> ComputerName=L-#Left(%SerialNumber%,6)#
>
>
> -Michael
>
> "KMCB" <> wrote in message
> news:...
> >I have set up my custom settings file so that I can define properties based
> > upon the IsLaptop/IsDesktop fields. So far the ability to put computers
> > in
> > diffenet OU's works fine. Problem is with the computername field. I know
> > the
> > parameters work (see below) but only one naming format is followed based
> > upon
> > which one is at the top of the list and it does not seem to care destop or
> > laptop. (ByType is called in the Priorities field) Anyone ever run into
> > this? Also how many times can the computername parameter be called?
> >
> > [ByType]
> > SubSection=Laptop-%IsLaptop%
> > SubSection=Desktop-%IsDesktop%
> >
> > [Desktop-True]
> > MachineObjectOU=OU=desktops,OU=Workstations,DC=XXX
> > ComputerName=D-#Left(%SerialNumber%,6)#
> >
> > [Laptop-True]
> > MachineObjectOU=OU=laptops,OU=Workstations,DC=XXX
> > ComputerName=L-#Left(%SerialNumber%,6)#
> >

  Reply With Quote
Old 06-02-2009, 07:37 PM   #4
Newbie
 
Join Date: Feb 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0 Kingskawn is an unknown quantity at this point


OS: Windows XP Windows Server 2003 / Windows Server 2008


Re: Computername variable in CS.ini

I have machines that are going into the domains I set in variables on certain collections.
With that custom settings file you created, can you say "if it's a laptop and from domain x go to OU -> X" ?
Can you also attach a working custom settings file with your important info scrambled?
Kingskawn is offline   Reply With Quote
Reply

Thread Tools
Display Modes



< Windows Help - MS Office Help - Hardware Support >


New To Site? Need Help?

All times are GMT +5.5. The time now is 04:16 AM.


vBulletin, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO
Copyright © 2005-2009, TechTalkz.com. All Rights Reserved - Privacy Policy
Valid XHTML 1.0 Transitional