![]() |
|
|||||||
| Notices |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
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)# |
|
|
|
#2 |
|
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)# > |
|
|
|
#3 |
|
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)# > > |
|
|
|
#4 |
|
Newbie
Join Date: Feb 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
![]() OS:
|
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? ![]() |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
< Windows Help - MS Office Help - Hardware Support >
| New To Site? | Need Help? |