GetSID - get unique Windows ID

Gets a Window's system SID (unique computer ID)
Updated 27 Jul 2007

No License

GETSID scans the Windows registry for the SID data, and returns it if found. This is useful in cases where you wish to limit or change functionality for specific computers, and need an identifying ID. It is also a simple example of accessing Window's registry.

GETSID is equivalent to Microsoft's PsGetSid utility (

GETSID requires Microsoft Windows and works on Matlab 6 and up.

Cite As

Yair Altman (2024). GetSID - get unique Windows ID (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R12
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Programmatic Model Editing in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes