format Variable in string in Powershell

I am trying to create a script to remove specific users from groups.

The following works just fine:
$group.remove("WinNT://"+$env:COMPUTERNAME+"/Bad_User,user")

However I want to use a variable for the account name and I can't ge t it to work.  Something a long the line of:

$BU = "Bad_User"
$group.remove("WinNT://"+$env:COMPUTERNAME+"/"$BU",user")

Please,
How do I format this string, and what should i have googled to figure it out?
LVL 8
brittonvAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
x-menConnect With a Mentor IT super heroCommented:
ups...

$group.remove("WinNT://$env:COMPUTERNAME/$BU,user")

0
 
x-menIT super heroCommented:
$group.remove("WinNT://$env:COMPUTERNAME/$BU",user")

0
 
Dale HarrisConnect With a Mentor Professional Services EngineerCommented:
Google: formatting strings in powershell

Click on second link:
http://technet.microsoft.com/en-us/library/ee692790.aspx

HTH,

Dale Harris
0
All Courses

From novice to tech pro — start learning today.