Simple question... how do I get the machine name off of the SPContext object.
Tell me more
×
SharePoint Stack Exchange is a question and answer site for
SharePoint enthusiasts. It's 100% free, no registration required.
|
|
Maybe SPServer.Local is what you are looking for... |
|||
|
|
|
I'm not sure why you would use SPContext for that - perhaps you are looking for this instead: Environment.MachineName |
|||
|
|
|
POSH Scripts to get you server info (Get-SPServer has other params - check for unique server) $myserver = Get-SPServer $myserver | select-object * |
|||
|