Solved

Automate Computer Name in SharePoint form field

Posted on 2011-03-18
4
837 Views
Last Modified: 2012-05-11
Is there any way I can retrieve the computer name when a user submits a form in SharePoint?  This is for an IT HelpDesk site, so when a user reports an issue, it would be great to have an automated way to retrieve the computer name from where they submit.
Another alternative (with many holes) is to create a shortcut on all desktops that includes the name of the computer in the link, such as: http://sharepoint/site/lists/listname/inputform.aspx?ComputerName=ABCDE.  Is there an easy way to generate this link on a computer without manual input?
Thanks,
Troy B.
0
Comment
Question by:troybruning
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 14

Accepted Solution

by:
GeorgeGergues earned 250 total points
ID: 35167326
that is a browser security limitation .

I would think you should not relax your IE security to do this.

There are better ways to do that if you use the Sessions and Context object

this.Context.Request.UserHostName

Open in new window


Best of luck
0
 
LVL 11

Assisted Solution

by:FastFngrz
FastFngrz earned 250 total points
ID: 35171778
Using sharepoint designer, you could likely create an aspx page with server side code that could read the hostname (which is part of the http query) and then redirect to your form. You'll need to open web.config to allow your executable to run from whatever site/folder/library you put your aspx in.
0
 

Author Closing Comment

by:troybruning
ID: 35194233
Thanks for the responses.  I'm not programmer-savvy enough to use these solutions, but hopefully they will be useful to others.
0
 

Author Comment

by:troybruning
ID: 35224534
I was able to stumble upon a solution for our organization.  We use another web-based app from a partner that requires a small application be installed for controls on their website.  I noticed when going to their site that our computer names were in the URL, so I borrowed thier ASP page code and, by using the same application, was able to forward from another web page to our SharePoint site with the computer name in the URL....  Difficult to explain in writing, but it worked out well for us.
Troy B.
0

Featured Post

Office 365 Training for Admins - 7 Day Trial

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For SharePoint sites, particularly public-facing ones, there are times when adding JavaScript, Meta Tags, CSS Styles or other content to the page <head> section is more practical than modifying master pages.  For instance, you could add the jQuery l…
I thought I'd write this up for anyone who has a request to create an anonymous whistle-blower-type submission form created using SharePoint 2010 (this would probably work the same for 2013). It's not 100% fool-proof but it's as close as you can get…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

628 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question