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
Routing Issues
ms access update query
Move Mailbox Powershell Script (sending Welcome e-mail HTML format)
Crystal report 2008, draw graph with huge of data.
Recommended Anti-Virus, Anti-Malware for Droid Phones
Opera 10.x how to find each tab's memory consumption
Code line too long
Microsoft Windows XP Repair Instalation Stuck
InDesign CS3: Select a specific text frame
MS DNS Server - need to resolve all domains to one iternal IP address