Powershell suitable conditions for below scenario

Hi,

Am looking for the powershell condition to manipulate the below scenari so could you please help me on this.

We need to tag all the computers under ABC.com/testou/computer ou

“HAW” needs to be written to extensionattribute1 on computer objects.

Once the computer is moved out of this OU the tag must be removed

What do you meant with “PowerShell condition”?

If you want to write a script and don’t know where to start … the following help topics should get you started: