It's possible to create Lync account by managing Attributes in the AD. I checked. But, I remember vaguely that it's not supported that way. Is it true? Is there any problem with that? Is there any reason for using Enable-CsUser and Set-CsUser instead of writing attributes in the AD directly?
It looks like this is working fine...
1. get-aduser -identity "test" >> Result...
2. get-csuser -identity "test" >> no result
3. Set AD attributes with ADUC attribute editor:
msRTCSIP-FederationEnabled = True
msRTCSIP-InternetAccessEnabled = True
msRTCSIP-UserEnabled = True
msRTCSIP-OptionFlags = 257
msRTCSIP-UserPolicies = 0=1103749707
msRTCSIP-PrimaryHomeServer = "defaultPrimaryHomeServer"
msRTCSIP-PrimaryUserAddress = "sip:" & accountName & "@" & mdwDomainDn
msRTCSIP-DeploymentLocator = SRV:
msRTCSIP-ArchivingEnabled = 0
4. get-csuser -identity "test" >> result...