none
Project Server 2010 PowerShell Get-SPProjectWebInstance Url Alternate Access Mapping RRS feed

  • Question

  • I have a Project Server instance created and I can access it via http://servername/pwa.

    I have Alternate Access Mapping configured so I can also access it via http://servername.somedomain.com/pwa

    All works fine from the browser.

    However, I have custom C# code which makes a PowerShell call to Get-SPProjectWebInstance.  It works fine if I use just the http://servername/pwa url to access, however it fails when using the http://servername.somedomain.com/pwa.

    This is also reproducible from the command line as well.

    I'm hoping I have missed a configuration step since changing the code isn't an option at this point.

    Is it possible to configure the server so that Get-SPProjectWebInstance will work with multiple alternate access mapped urls?

    Monday, August 5, 2013 5:04 PM

All replies

  • Which address is set as Default? NetBIOS or FQDN?.  You problem need to set FQDN as default.


    Hrishi Deshpande – Senior Consultant DeltaBahn
    Blog | < | LinkedIn

    Please click Mark As Answer; if a post solves your problem or Vote As Helpful if a post has been useful to you.This can be beneficial to other community members reading the thread.

    Monday, August 5, 2013 6:32 PM
    Moderator
  • Thank you - that helps.  If I set the default as the FQDN, then the powershell command works with the FQDN, but it doesn't work with the short URL.  I'm wondering if it will be possible for both of them to work?
    Monday, August 5, 2013 7:56 PM
  • I don't think so you could do that. Also using NetBIOS not an good idea, since in the future you could potentially change the server due to some reason, you never know. Using FQDN is the best option.


    Hrishi Deshpande – Senior Consultant DeltaBahn
    Blog | < | LinkedIn

    Please click Mark As Answer; if a post solves your problem or Vote As Helpful if a post has been useful to you.This can be beneficial to other community members reading the thread.

    Monday, August 5, 2013 10:01 PM
    Moderator
  • Have you tried a simple IISReset ?

    Not sure about the best practices but you can use a Binding on IIS...

    Hope I help.

    Thanks

    Monday, August 5, 2013 10:05 PM