Forum Discussion
SharePoint page to display Computer Information
Is it possible to have a sharepoint page display computer information on the page from the users device (Machine name, ip, logged in user, OS Version etc)? I have a powershell script that can get this information however I've not found a way i can run this on the page when it opens. Any help would be apricated.
thanks
3 Replies
- PankajBadoniIron Contributor
Hi cumpleby,
Getting detailed information about a user’s computer—like the machine name, OS version, or machine logged-in account—directly from a web browser is pretty limited, and that’s by design. Browsers are built to protect user privacy, so they block websites from accessing sensitive system details that could be misused.
That said, you can still collect some basic environment info, like the user’s browser type, IP address, and screen resolution. PowerApps or SPFx with JavaScript can help you display that kind of data on a SharePoint page—but anything deeper than that (like machine-level details) just isn’t accessible from the browser for security reasons.
- cumplebyCopper Contributor
Hi, If ive collected that data into a HTML page is there anyway i can link that into a SharePoint webpage? Thanks
- PankajBadoniIron Contributor
Hi cumpleby,
You can build an SPFx (SharePoint Framework) web part to embed the desired functionality using HTML and JavaScript.
If you're looking for a starting point, you can also check out a sample from the link below:
https://github.com/pnp/sp-dev-fx-webparts/tree/main/samples/react-script-editor