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

Announcements

No record found.

News and Announcements icon
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

     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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
JS-09031509-0 Profile Picture

JS-09031509-0 3

#2
AS-17030037-0 Profile Picture

AS-17030037-0 2

#2
Mark Eckert Profile Picture

Mark Eckert 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans