web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Get User's [MachineName] with javascript or any client-side method.

(0) ShareShare
ReportReport
Posted on by 475

 Good day everyone.

I've searching around but i still can't manage to get the machine name of a user using the CRM web application, our company has a IFD deployment, and i need to keep track of the logged user and the machine name where the user is logged. but i don't know how to achieve to goal of getting the user's machine name and send it on the save action of a record,

Has anyone faced that requirement before?i used the code snippet below to give a try, it's the only thing i've found so far but it just throw me a "Automation Server can't create object" even if i set the security of the iexplorer to the lowest setting.

i tried using this code in the onload event of an opportunity just to give a try.


        function create()
        {
           var net = new ActiveXObject("wscript.network");
           alert(net.UserDomain+': '+net.ComputerName);
        }

        create();

 

Has anyone any other way to achiveve this?
  Any help, idea, tip or trick would be greatly appreciated!

Thanks in advance!

 

 

*This post is locked for comments

I have the same question (0)
  • Enrique Garza Profile Picture
    475 on at
    Re: Get User's [MachineName] with javascript or any client-side method.

     Just in case someone get into this thread looking for a solution.

    The code snippet that i posted is ok, but a little more Internet explorer configuration was needed in order to get the rights to execute it from crm.

     

    On the client computer, u need to configure in Internet explorer >>tools>>internet options>>Security

     1)First , be sure that the crm site is in the trusted sites.

    2)Then go to Custom level and ENABLE this option: "Initialize and script ActiveX controls not marked as safe for scripting"

     

    Once done the script should work correctly and get you the machine name of the client, so u can manage to save it in the form or do whatever u want from there.

     

    Hope it helps.

    Cya!

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Community Member Profile Picture

Community Member 2

#2
Christoph Pock Profile Picture

Christoph Pock 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans