Getting windows user name using javascript in Microsof edge browser - Microsoft Community


hi,

i working in internet application.below technologies using in project:

angularjs , no server side framework.

below client requirement:

there login page.when user load login page http://mytime.com:8000 want auto populate windows user(loged in user name) name in user name text box in login page.

in ie 11 browser doing getting windows username using javascript below:

var objuserinfo = new activexobject("wscript.network"); var uname = objuserinfo.username;

the above code working in ie 11 not working in microsoft edge browser in window 10.

please me how can achieve above requirement in edge browser in window 10

moved from:  windows / windows 10 / windows settings / pc

hi suresh,

based on description provided, query needs posted on our msdn forum better assistance. have members can advise appropriate resolution concern. here's link.

should need further assistance or have other concerns, feel free share thoughts us. you're welcome in our community.



Microsoft Edge / All other issues / Windows 10



Comments

Popular posts from this blog

Getting ErrorCode: 120018 when trying to access Microsoft account - Microsoft Community

The message was sent to a distribution list ‎(DL)‎ - Microsoft Community

Activation Error 0x8004FE93 - Microsoft Community