Skip to main content
Question

Lync 14.0.7

  • April 4, 2014
  • 27 replies
  • 71 views

Forum|alt.badge.img+4

I am trying to create a package for Lync 14.0.7 using composer Normal Snapshot option. However, it always capture my username(sip id) which i don't want it to capture. I want that it should include the server details required for manual configuration. Please suggest !!

27 replies

Forum|alt.badge.img+12
  • Contributor
  • April 4, 2014

why not just package the APP? unless you need to capture configuration settings outside of the Default, dont see the point.


jhbush
Forum|alt.badge.img+27
  • Esteemed Contributor
  • April 4, 2014

/url">@sumit.batra][/url I would suggest just running the installer you can download from MS volume licensing. Then you can use @talkingmoose][/url setup scripts and daemons located here [https://gist.github.com/talkingmoose Additional information here https://github.com/talkingmoose/LyncSetup


Forum|alt.badge.img+7
  • Contributor
  • April 4, 2014

I just throw the .pkg up and then use a altered version of @talkingmoose setup scripts to deploy user information. I don't generally try to use Composer if the standard. .pgk can just be used.


scottb
Forum|alt.badge.img+18
  • Valued Contributor
  • April 4, 2014

Speaking of Lync... I see 14.0.8 or whatever it was supposed to be never got released in March. Still doesn't work right with 10.9.x...


bentoms
Forum|alt.badge.img+35
  • Hall of Fame
  • April 4, 2014

Hi guys,

We use the PKG, & a similar launcher to @talkingmoose's.

But, if all your worrying about is the server settings... You can use MCX or a plist as per; http://technet.microsoft.com/en-us/library/jj945442(v=office.14).aspx.aspx)


bentoms
Forum|alt.badge.img+35
  • Hall of Fame
  • April 4, 2014

Hi guys,

We use the PKG, & a similar launcher to @talkingmoose's.

But, if all your worrying about is the server settings... You can use MCX or a plist as per; http://technet.microsoft.com/en-us/library/jj945442(v=office.14).aspx.aspx)


mm2270
Forum|alt.badge.img+24
  • Legendary Contributor
  • April 4, 2014

New release timeframe for Lync 14.0.8 is this month, so we expect to see it soon. We'd better see it soon or our MS reps are never going to hear the end of it.


Forum|alt.badge.img+4
  • Author
  • Contributor
  • April 7, 2014

Thanks for the reply.. Since i am quite new to Casper & Mac world so i really do not know how to use scripts/plists.

I want to configure / set the server settings after installing the Lync package but not really sure how to achieve this. Do i package it along with Lync or we use some script to copy the plist to each Mac thru policy /configuration profile in casper. Any step by step doc /link would be really helpful.


jhbush
Forum|alt.badge.img+27
  • Esteemed Contributor
  • April 7, 2014

@sumit.batra this should provide you with enough information to get started. https://github.com/talkingmoose/LyncSetup


Forum|alt.badge.img+4
  • Author
  • Contributor
  • April 8, 2014

i have checked this link & only need the MicrosoftLyncRegistrationDB.plist from this. Can you please guide me how do i deploy this PLIST to multiple Macs from casper. Is there a way to include it into a working Lync package or set dependency so that as soon bas Lync package is installed this PLIST is copied to the machine ?

My only requirement is to configure manual server settings for Lync when i deploy Lync on Mac thru Casper.


jhbush
Forum|alt.badge.img+27
  • Esteemed Contributor
  • April 9, 2014

@sumit.batra I deploy it using Composer. You can just use the generic Lync installer from Microsoft and bundle the config DMG/PKG along with it.
external image link


Forum|alt.badge.img+10
  • Contributor
  • July 22, 2014

@talkingmoose thank you for sharing the LyncSetup script.

@jhbush1973 thank you for sharing your knowledge and your input on various posts on the subject.

@talkingmoose & @jhbush1973, I'm hoping you can help with the following:

On Lync 14.0.9 and trying to setup a policy, when using the script and the other plist files, everything seems to work fine, except that the e-mail address is not populating when opening Lync.

@jhbush1973, I created the DMG/PKG with the same permissions as you indicated on your 4/9/14 post.

The MS Lync log file is blank.

Also, @talkingmoose, how and where is the portion below incorporated

"The script file must be executable on each machine:

sudo chmod +x /Library/talkingmoose/Scripts/LyncSetup-1.2.sh"

Thank you both for input and reply.

If anybody else wants to contribute/share info, that would be appreciate it too.


talkingmoose
Forum|alt.badge.img+36
  • Community Manager
  • July 23, 2014

@lsmc08

You're welcome! :-D

First, if the log file found in the user's home folder at ~/Library/Logs/LyncSetup.log is empty then the script may not even be running. At very minimum it should be showing the version of the script when you open the file. You need to make the script "executable". This means you're adding a hidden flag to the text file to tell the operating system you want to treat it as a script rather than a plain text file.

If you're packaging with Composer just select the script and adjust the permissions in the lower right corner of Composer to enable the "X" items. "X" = "executable". See Jason's screen shot in his message.

Also, you can test just the email portion of the script by itself to make sure it's working:

  1. Log in to a Mac bound to Active Directory using an Active Directory account.
  2. Open the Terminal application found in /Applications/Utilities.
  3. Run this command (copy and paste it into Terminal) replacing TALKINGMOOSE with your Active Directory NetBIOS domain name and replacing MMOOSE with the name of an Active Directory user: ``` dscl "/Active Directory/TALKINGMOOSE/All Domains/" -read /Users/MMOOSE EMailAddress | awk 'BEGIN {FS=" "} {print $2}' ```

Do you receive the correct email address for the user this way?


Forum|alt.badge.img+10
  • Contributor
  • July 23, 2014

@talkingmoose

Thank you for your reply and input here.

Yes, you are right - the script is not even running, as it does not show the version of the script when I open the file.

As for the executable part, pardon my shortcomings here... I did the composer part as Jason's and still it does not work.

I even followed and created your whole LyncSetup.sh manually and outside of Casper/Composer... made sure the 3 items needed had full rights at all levels...and still the script seems not to be working/executing.

As for testing the e-mail output portion in Terminal, yes, when I replace the domain and the user profile name info accordingly, I do receive the correct e-mail address.

What am I doing wrong... what am I missing?

Thanks again for your help.


talkingmoose
Forum|alt.badge.img+36
  • Community Manager
  • July 24, 2014

@lsmc08

The launchd plist file in /Library/LaunchAgents calls the script whenever a user logs in.

  • Verify it's in the correct folder.
  • Verify it has correct ownership and permissions to run (compare it to other launch agent permissions in the same folder).
  • Verify the path to the script inside the plist file is correct as well. Remember, paths to folders/files are case sensitive.

Forum|alt.badge.img+10
  • Valued Contributor
  • July 24, 2014

Hola!

Very helpful script, @talkingmoose, thanks so much.

Question: In our organization, user's log into Lync with their email address in both the Email Address and User ID fields. Should modifying this line:

defaults write $HOME/Library/Preferences/com.microsoft.Lync UserIDMRU '( { LogonName = '$USERNAME'; UserID = '"$EMAILADDRESS"'; } )'

to this:

defaults write $HOME/Library/Preferences/com.microsoft.Lync UserIDMRU '( { LogonName = '$EMAILADDRESS'; UserID = '"$EMAILADDRESS"'; } )'

work?

I'm obviously a scripting novice…

Thanks for any help.


talkingmoose
Forum|alt.badge.img+36
  • Community Manager
  • July 24, 2014

@tuinte

Your change should work just fine from what I see here.

Technically, you're probably using a User Prinicipal Name (UPN), which looks like an email address. To simplify things, your Active Directory administrators have ensured they're the same, which is nice.


Forum|alt.badge.img+10
  • Contributor
  • July 24, 2014

@talkingmoose

Thank you for your reply.

I took a new computer and decided to work the whole process new from scratch.

I verified all the steps were correct as you indicated above... and holly cow, it worked this time.

I then went back to the old computer and verified the work/steps... and I couldn't believe it... when deploying, one of my permission was wrong. I swear I've triple checked that - wanted to hit myself in the head for that silly mistake!

Thanks again for your help and input. Thank you also for the overall assistance you provide to the community here!


Forum|alt.badge.img+10
  • Contributor
  • July 24, 2014

@tuinte

Hello, did that modification work successfully for you?

In our organization here, I think we will be using the same format.

Let me know if you got this portion to work.

Thank you.


Forum|alt.badge.img+10
  • Valued Contributor
  • July 25, 2014

Hey, @lsmc08][/url. What I posted above didn't work, but changing it to this did:

defaults write $HOME/Library/Preferences/com.microsoft.Lync UserIDMRU '( { LogonName = '"$EMAILADDRESS"'; UserID = '"$EMAILADDRESS"'; } )'

EDIT: Also, 14.0.9 is out, so I'm using that installer.


Forum|alt.badge.img+10
  • Contributor
  • July 25, 2014

Hello @tuinte, thank you for sharing - that worked for me too.

Have a great weekend!


talkingmoose
Forum|alt.badge.img+36
  • Community Manager
  • July 26, 2014

@lsmc08 and @tuinte

Big smile here!


Forum|alt.badge.img+10
  • Contributor
  • July 28, 2014

@talkingmoose

Thank you - appreciate the good vibe!


Forum|alt.badge.img+10
  • Contributor
  • July 28, 2014

@tuinte

Thanks - I'm using that same version too.


Forum|alt.badge.img+11
  • Contributor
  • March 12, 2015

Is there anyway to change the script to use automatic configuration instead of the manual configuration? I want this option just in case our internal or external servers change.

Thanks