- Joined
- Sep 3, 2018
- Messages
- 1
- Reaction score
- 0
Hi.
Powershell script:
taskkill /FI "WINDOWTITLE eq 3CX*" /F
del "C:\users\$env:USERNAME\AppData\Roaming\3CXPhone for Windows\3CX*"
Copy-Item -path "\\share_path\$env:USERNAME.xml" "C:\users\$env:USERNAME\AppData\Roaming\3CXPhone for Windows"
ren "C:\users\$env:USERNAME\AppData\Roaming\3CXPhone for Windows\$env:USERNAME.xml" 3CXPhone.xml
On share you must create username.xml.
Open config file with notepad and change next text
<AuthID>#######</AuthID>
<VMAILPIN>####</VMAILPIN>
<ProvisionedID>#####################</ProvisionedID>
<DisplayName>#######</DisplayName>
<ProfileName>#######</ProfileName>
Save to username.xml.
The username must be the same as the AD.
Add script to User Configuration>policies>windows settings>scripts>logon.
Best regards
Powershell script:
taskkill /FI "WINDOWTITLE eq 3CX*" /F
del "C:\users\$env:USERNAME\AppData\Roaming\3CXPhone for Windows\3CX*"
Copy-Item -path "\\share_path\$env:USERNAME.xml" "C:\users\$env:USERNAME\AppData\Roaming\3CXPhone for Windows"
ren "C:\users\$env:USERNAME\AppData\Roaming\3CXPhone for Windows\$env:USERNAME.xml" 3CXPhone.xml
On share you must create username.xml.
Open config file with notepad and change next text
<AuthID>#######</AuthID>
<VMAILPIN>####</VMAILPIN>
<ProvisionedID>#####################</ProvisionedID>
<DisplayName>#######</DisplayName>
<ProfileName>#######</ProfileName>
Save to username.xml.
The username must be the same as the AD.
Add script to User Configuration>policies>windows settings>scripts>logon.
Best regards