i found an error ...
When you want an User profile in User Context to create the Profile in Login Script.
Then the VAR $AllUserProfile must be comment out or the if request cannot be
if ($XMLVPNProfile.ChildNodes.devicetunnel -eq "true" -or $AllUserProfile)
and must be
if ($XMLVPNProfile.ChildNodes.devicetunnel -eq "true" -or $AllUserProfile -eq "true" )
i found an error ... When you want an User profile in User Context to create the Profile in Login Script. Then the VAR $AllUserProfile must be comment out or the if request cannot be if ($XMLVPNProfile.ChildNodes.devicetunnel -eq "true" -or $AllUserProfile) and must be if ($XMLVPNProfile.ChildNodes.devicetunnel -eq "true" -or $AllUserProfile -eq "true" )