ausman89
asked on
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?
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?
ASKER
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.MID WEST> 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:\>
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.MID
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)
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:\>
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?
You installed the admin kit and it didn't work?
ASKER
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?
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?
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?
Can you post a screenshot of your powershelll windows after trying?
ASKER
which command do I want to try again?
". .\invoke-alertfixup.ps1", then running your invoke-alertfixup command.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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.
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.
LOL. Glad it worked out.
http://technet.microsoft.com/en-us/library/cc508851.aspx