I'm new to creating an external site, but between my client's IT guy and me, we managed to create and external site and we can access it by entering the ip address.

For example if ip= the URL is then

I want to run powershell scripts on this site - but get error:

Get-SPSite: Cannot find an SPSite object with Id or URL

So I assume I must change the ip rather to something else. Please guide me on how to do that? Or can I use the IP address in my Powershell commands, but then what cause the error?

  • Are you running the script on the server itself or on another computer? Commented Aug 8, 2018 at 19:32
  • I'm running it on the server itself
    – Heste
    Commented Aug 9, 2018 at 5:31

1 Answer 1


i am not sure if you can get it by IP or not? But one thing i am thinking you can access the site collection by ID.

Get-Spsite | Select URL, ID

This will give you the ID of the site collection, then you can run the following to get the site collection

Get-SPSite fr98we20-0dcd-560f-b44f-791fef2d034d4

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.