In need of powershell script to do the following:
Trying to assign this computer belongs to strings in active directory descriptions from sccm 2007 data.
1. Query all Client Systems from sccm 2007, find the last logged on username.
2. Append active directory computer description with "SCCM SAYS>>username" not deleting the existing descriptions.
3. If script is reran - if string "SCCM SAYS>>username" already exists in the AD computer description then just overwrite that string with new data. Leaving existing descriptions intact.
4. If possible add lines to run on just one defined computer for testing or all computers.
This script can use the quest powershell for AD to add to descriptions
Script Will need to connect to sccm server to get the data then use quest powershell ad script to add to AD computer descriptions.
Should be pretty simple.