Video Screencast Help

Moving computer to OU

Created: 22 May 2014 | 10 comments

Hi All

On altiris client management suite, could we move computer to specific organization unit base on subnet or some other condition without moving one by one?

Can we do it by SQL query or policies?

Thanks for all help

 

Operating Systems:

Comments 10 CommentsJump to latest comment

HighTower's picture

Which do you mean?  Organizational Unit (OU) in Active Directory or Organizational Group/View in Altiris?

JannasTo's picture

If its AD OU then the answer you will get is write your own script. I've asked a few times about this. Posted in the ideas section also. Nothing as yet, Would be good to have an option to select OU before deploying image or puting OU into predefined section. Simples!

Igor Perevozchikov's picture

Hi!

you mean that these tasks don't make sense to use and you need another way like some SQL qeury?

Example of task, which performs assignment of resources to appropriate OU

OUAssign.jpg

Thanks,

IP.

  1. Don't forget that, first you can find an answer for your question in Knowledge base
  2. If answer solves your question, then please mark as solution to close a thread
JannasTo's picture

Are you saying this task moves machine accounts to OU's within AD ?

Igor Perevozchikov's picture

No, this task moves machines to appropriate OU's within SMP Console only (not in Active Directory).

  1. Don't forget that, first you can find an answer for your question in Knowledge base
  2. If answer solves your question, then please mark as solution to close a thread
telecomvn's picture

Hi All

I only do on Organizational Group/View in Altiris, Not AD

Thanks

Igor Perevozchikov's picture

Seems like you can implement it, using an automation policy with appropriate "Move resource to OU" task for each automation policy:

As example:

"Automation policy Org 1" with "Move to OU Org1" task:

SQLQuery determines that new computer appeared in NS server with appropriate fqdn/hostname ⇒ specified "Move to OU Org1" task triggers and automatically assign this PC to specified group.

  1. Don't forget that, first you can find an answer for your question in Knowledge base
  2. If answer solves your question, then please mark as solution to close a thread
MichaelCiv's picture

This is actually really easy, create a new automation policy

For data souce use raw sql to filter out whatever you want...for example lets say you wanna move computers on specific VLANs to OU's you would do something like...

"select guid from vcomputer where [IP Address] like '%10.25.%'"

this would return all computers on the VLAN 25....but you could also filter by any SQL you come up with, perhaps NAME instead...

Then select 'Assign to Organizational Group' as the task which is under System Jobs > Notification Server > Automation Policys

Then select the OU you want these computers to move too under "Edit Input Parameter' 

If you have any questions let me know, I have about 100 of these running a night to move computers based on VLAN into their perspective building OU's

JannasTo's picture

I still think it would be easier when deploying machines to have the OU as a drop down in the Predefined computers section. (if we are talking about AD here!) seems a lot of trouble. Does that also mean that if someone moves to another location for a couple of days, their machine would be moved to a new OU if its based on VLAN they are on?

MichaelCiv's picture

Depending on how often the Automation Policy runs, yes. In our case I run them everynight, but we really dont have any policies that are building specific so I havent seen an issue with it yet.