Microsoft
Software
Hardware
Network
Question : add-adgroupmember with a variable.
Hello,
I`m building script one of the things i have to do is the following:
$grpmembers = "user1,user2,user3"
$dataadgrp = "grdatatest"
add-adgroupmember -identity $dataadgrp -members $grpmembers
but it doenst work.
It only works when i do this:
add-adgroupmember -identity $dataadgrp -members user1,user2,user3
this is the error that i get:
Add-ADGroupMember : Cannot find an object with identity: 'user1,user2,user'
Thanks
Regards
Hans
Answer : add-adgroupmember with a variable.
$grpmembers = "user1,user2,user3" should be:
$grpmembers = "user1","user2","user3"
Random Solutions
Cisco Unity Express to Trigger MWI on overlay DN
Exhange 2003 mailbox permissions
alter does it drop
Return a Char at position
Meetings reschuled are still showing old meeting date and time
How to stablish a proper setup in MS Outlook 2003 encrypting mails
how can i change any image resolution online and then save it in to local pc ??
Asp.Net MVC PartialView doesn't Refresh after Ajax postback
Inserting another drawing
Ran a disk clean-up and a de-frag