RE: using dsget and dsquesry



The command can be written something like this too.. but it is not working
because i know i am doing something wrong.. can anyone point out my mistake...


c:\>dsget.exe "c:\>text.txt" |dsmod group
"CN=Newgroup@xxxxxxxx,CN=Users,DC=demo,DC=com" -addmbr


IS THEIR SOMETHING WRONG WITH THIS???


Regards
Ali Hassan



"chaos_ali" wrote:

hey carlo,
Thankx for replying to my post .. i did what u told me to but
i get an error message when i try and run it from the command promt ie

c:\>for /F %i in (c:\>list.txt) DO dsmod.exe group
"CN=Newgroup,CN=Users,DC=demo,DC=com" -addmbr %i

Error:" > was unexpected at this time"

Am i doin something wrong???

Thankx
Ali



"Carlo Cacciafesta" wrote:

"chaos_ali" wrote:
Hi,
Can anyone tell me how to use the "dsget" command and update a group
from a text file.
I mean i can use the below command to extract the memebers into a notepad
file
c:/> dsget.exe group "cn=test@xxxxxxxx,cn=users, dc=microsoft,dc=com"
-members >list.txt

Now i want to use this notpad file "list.txt" .. and all the members it has
in it .. to be uploaded into another group.. i know ttheir is a way but i
forgot the comand can anyone plzzz help me.


Thankx in advance
Ali

Try with a command like this:

for /F %i in (list.txt) DO dsmod.exe group
"CN=Newgroup,CN=Users,DC=microsoft,DC=com" -addmbr %i

If you need to put it in a batch file %i must become %%i.

Regards,

Carlo
.



Relevant Pages