I want to scan my AD database and move all Computer with
Service 2 and Service 3 to a particular OU so that I can
deploy a policy to upgrade tem to SP4 how can i do that.
Is there any script or utility to do that
IIUC, you want to execute the script for all computers with these 2
services present, right? Unless you have populated this information in
AD, there is now way that AD will know what services run on your servers
- it doesn't do inventory. However,here's an idea:
1) Export all server names in a text file
2) Run a script to check for the presence of the two services:
if Service2 and Service3 exist then
Export server name to file
3) Run a script that iterates through the names in the above file,
searches AD for a matching computer object name, and moves this Computer
object to the new OU. Alternatively, use the list as a reference, search
AD with "Find" and move the objects manually.
For all this you'll find plenty of samples on
http://www.microsoft.com/technet/scriptcenter
You can also use Scriptomatic and ADSI Scriptomatic for additional help.
HTH
--
Cheers,
Marin Marinov
MCT, MCSE 2003/2000/NT4.0,
MCSE:Security 2003/2000, MCP+I
-
This posting is provided "AS IS" with no warranties, and confers no
rights.