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
db connection error running app as service
Save Publishign site as template in SharePoint 2010
AUTOSTART ESXI VIRTUAL MACHINES
pp0 IP configuration.
Microsoft Outlook Delayed delivery option
Setup multiple ethernet interfaces on Redhat to support Oracle RAC
Browse SBS 2008 user redirected folders as an Administrator
How do I allow only a certain ip adress to access my website?
Repeating SQL
Digital Certificate Error