i tried If InGroup('DA Omgevingen') in place of @Domain. No error or nothing appeared on screen. Printer not set to be default.

On my Dataserver i ran \\terminal-deakke and connected the printer successfully. What can be the network problem if i can succesfully connect the printer. Very strange i am getting printer name is invalid error.

I Shared the printer this way.
New printer - Right clik printer -properties -sharename - list in activedirectory is ticked.