CFF KB - Carrz-Fox-Fire Promotions Knowledge Base
CFF KB is all about 1 thing: The Sharing of Knowledge and the Power we gain from it.Knowledge Base
- Breadrumbs:
Import-ExchangeCertificate : The term 'Import-ExchangeCertificate' is not recognized as the name of a cmdlet, function, script file, or operable program.
- Article ID:
4247 - Date Created
Tuesday, May 3, 2022 - Last Updated
Tuesday, May 3, 2022 - This Article Has been Viewed
624 times - Short Desc
The term 'Import-ExchangeCertificate' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. - Details
When running the PowerShell command to import a certificate for Exchange Server you may encounter the following error.
Import-ExchangeCertificate : The term 'Import-ExchangeCertificate' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. - Recreate Issue
The following PowerShell script results in the above error.
PS G:\SSL> Import-ExchangeCertificate -FileData ([System.IO.File]::ReadAllBytes('g:\SSL\6-27-2022.pfx'))
-Password (ConvertTo-SecureString -String 'P*ssWoRd' -AsPlainText -Force) - Resolve Issue
The reason the script will not work in PowerShell is by design.
The script will need to be run from the Exchange Server, using the
[Exchange Management Shell],
located in the Start Menu under
[Microsoft Exchange Server V#]
[PS] C:\Windows\system32>Import-ExchangeCertificate -FileData ([System.IO.File]::ReadAllBytes('g:\SSL\6-27-2022.pfx'))
-Password (ConvertTo-SecureString -String 'P*ssWoRd' -AsPlainText -Force)
Share With Friends (Updated 6-8-2010)
Recent Articles
All Topics
- Coming Soon - Knowledge Exchange
Trending Articles
- Microsoft VBScript runtime error '800a0046' Permission denied FileSystemObject 24695
- Microsoft OLE DB Provider for SQL Server error '80040e57' String or binary data would be truncated. or The field is too small to accept the amount of data you attempted to add. Try inserting or pasting less data. 21297
- ADODB.Parameters error '800a0e7c' Parameter object is improperly defined 19545
- After Effects warning: Audio conforming failed for the following file .cfa. Perhaps due to disk space 17785
- The backup set holds a backup of a database other than the existing 16826