[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 984
  • Last Modified:

Changing default URL for Sharepoint 2010 breaks alert email links...

I changed the sharepoint url from http://{servername} to http://sharepoint/

This broke our email alerts and when lists get updated, no emails get sent out to the "assigned" users.  

If I re-add http://{servername} as an internal url in the alternate access mappings, the emails will then go out, but the link in them are incorrect.  they all point to http://{servername} instead of the new default url I assigned of http://sharepoint.

Any thoughts on what is set wrong and how to fix it?
0
ausman89
Asked:
ausman89
  • 6
  • 5
1 Solution
 
Justin SmithSr. System EngineerCommented:
You can update URL's in alerts using the Admin Tool kit

http://technet.microsoft.com/en-us/library/cc508851.aspx
0
 
ausman89Author Commented:
I couldn't get that to work.

I also tried this:
http://technet.microsoft.com/en-us/library/cc508980.aspx 
It didnt work either.  I created the ps1 file, ran it in the sharepoint shell and immediately ran the next command, but this is the error message I get:

PS C:\Users\administrator.MIDWEST> cd c:/
PS C:\> ./Invoke-AlertFixup.ps1
PS C:\> Invoke-AlertFixup -site http://sharepoint -oldurl http://rds
The term 'Invoke-AlertFixup' is not recognized as the name of a cmdlet, functio
n, script file, or operable program. Check the spelling of the name, or if a pa
th was included, verify that the path is correct and try again.
At line:1 char:18
+ Invoke-AlertFixup <<<<  -site http://sharepoint -oldurl http://rds
    + CategoryInfo          : ObjectNotFound: (Invoke-AlertFixup:String) [], C
   ommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException


Suggestion [3,General]: The command Invoke-AlertFixup was not found, but does ex
ist in the current location. Windows PowerShell doesn't load commands from the c
urrent location by default. If you trust this command, instead type ".\Invoke-Al
ertFixup". See "get-help about_Command_Precedence" for more details.
PS C:\>
0
 
Justin SmithSr. System EngineerCommented:
I'm assuming you need to dot source the ps1 file.  You do this by running ". .\invoke-alertfixup.ps1", then running your command.

You installed the admin kit and it didn't work?
0
Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

 
ausman89Author Commented:
I still cant get the ps1 file to work.

I did install the admin kit.
I tried running the following command and it keeps saying it's invalid:
stsadm -o updatealert -url http://sharepoint -oldurl http://rds

Am I missing something or doing it wrong?  Do I need to restart anything after installing the admin kit?
0
 
Justin SmithSr. System EngineerCommented:
the PowerShell commands are what you need to use, as I think the stsadm commands have been removed in 2010.

Can you post a screenshot of your powershelll windows after trying?
0
 
ausman89Author Commented:
which command do I want to try again?
0
 
Justin SmithSr. System EngineerCommented:
". .\invoke-alertfixup.ps1", then running your invoke-alertfixup command.
0
 
ausman89Author Commented:
sharepoint powershell "invoke-alertfixup" error
0
 
Justin SmithSr. System EngineerCommented:
Ok, you took my response literal.

First line, type . .\invoke-alertfixup.ps1 then press enter
Second line, type invoke-alertfixup -url http://sharepoint -oldurl http://rds then press enter
0
 
ausman89Author Commented:
son of a mother duck!
I've done this over and over in 100 different ways, quotes included, excluded, etc. and nothing ever worked...until now.  It worked just now though!!!

I just got an email alert through and the links work!!!  

Thank you so much for fixing my stupidity.
0
 
Justin SmithSr. System EngineerCommented:
LOL.  Glad it worked out.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 6
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now