" “srvcomment”="{value of setting “Physical Location” of client as string}" & " - " & “{string value of select (“username from Win32_computersystem”) of WMI}” & " - " & “{string value of select (“Model from Win32_computersystem”) of WMI}”
" “srvcomment”="{value of setting “Physical Location” of client as string" & " - " & “string value of select (“username from Win32_computersystem”) of WMI” & " - " & “string value of select (“Model from Win32_computersystem”) of WMI}”
" “srvcomment”="{value of setting “Physical Location” of client as string" & " - " & “string value of select (“username from Win32_computersystem”) of WMI” & " - " & “string value of select (“Model from Win32_computersystem”) of WMI}”
" “srvcomment”="{value of setting “Physical Location” of client as string & " - " & string value of select (“username from Win32_computersystem”) of WMI & " - " & string value of select (“Model from Win32_computersystem”) of WMI}"
I think since you have a “” in your results, the registry import is failing. Try to add “escape of” to the beginning of the relevance to properly escape the backslash so it is compatible with the registry import:
regset “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanserver\parameters” “srvcomment”="{escape of (value of setting “Physical Location” of client as string & " - " & string value of select (“username from Win32_computersystem”) of WMI & " - " & string value of select (“Model from Win32_computersystem”) of WMI)}"