I'm using the two scripts from this web site (http://thedesktopteam.com/blog/raphael/local-administrators-group-and-compliance-settings/) to verify and update membership of a local group on my workstations.
In the second script is this command: $adsi.Add("WinNT://$Domain/" + ($useradm -Replace ("$($Domain)\\","")) + ",group") When I run the script I get this error, and I have no idea as to what the issue is. I am running this from an 'Administrative' level PowerShell session. At this point I'm just trying to verify that the script is doing what I want it to do before I go to SCCM and setup the Compliance stuff. What am I missing, or have wrong? $Domain has a valid value, and $useradm is also valid, in this format <domain name>\<user name> $members is also a valid list of 3 users in the same format as $useradm. [cid:image002.png@01D00258.6C471600] Thanks! Ken Lutz Senior Systems Administrator Information Systems Department Spokane County 815 N. Jefferson Spokane, Washington 99260 [cid:image001.png@01D00257.B8C9FD40] ================================================ Did you know you can also post and find answers on PowerShell in the forums? http://www.myitforum.com/forums/default.asp?catApp=1