Mart, works fine btw so thatbks for that.

Now I want to expand a little to still omit the one user and only apply to one group that run the command. So is there If @USERID <> "ExcludedUser"
but if member of run?

Thanks,

Mark