In order to use the EmailVerify.NET Windows PowerShell built-in support, it is necessary to install the component snap-in into the system and add it to the PowerShell sessions. All of the functionalities provided by this snap-in and the cmdlet it provides are implemented via the assembly EmailVerify.PSSnapIn.dll, located in the same installation directory of the main component assembly, EmailVerify.dll. The default assembly directory for the component downloadable package is \Assembly.
Snap-in installation
To install the snap-in, please follow these steps:
- Open a new Windows PowerShell session.


If you are running under Windows Vista operating system or later please ensure you opened the session using administrative credentials (Run as Administrator) because the installation procedure requires access to the HKLM registry hive. - Issue the following commands, in order to set up the path to the InstallUtil.exe tool, part of the .NET framework:
Please note there should be no visible output.Set up the path to the InstallUtil.exe tool
Copy Code$frameworkPath = [Runtime.InteropServices.RuntimeEnvironment]::GetRuntimeDirectory()
$installUtil = [IO.Path]::Combine($frameworkPath, 'InstallUtil.exe')
- Locate your EmailVerify.NET \Assembly installation folder and use it in the following command, replacing PATH_TO_EMAIL_VERIFY with its value:
The program should output some lines of text, similar to the ones visible in the following screenshot:Run InstallUtil against the EmailVerify.NET PowerShell snap-in
Copy Code&$installUtil 'PATH_TO_EMAIL_VERIFY\EmailVerify.PSSnapIn.dll'
Add the installed snap-in to a PowerShell session
After the snap-in is correctly installed, you can use EmailVerify.NET's features in every PowerShell sessions; to actually use it you should, however, add the snap-in to the current session.
To add the snap-in to the current PowerShell session, please issue the following command:
| Add the EmailVerify.NET snap-in to the current PowerShell session | Copy Code |
|---|---|
| Add-PSSnapin EmailVerify.NET | |
Please note there should not be visible output.
From this point on, the Verify-EmailAddress cmdlet is ready to be used.
![]() |
Snap-in addition can be automated by inserting the snap-in into the profile file for the current user. Doing so will allow you to use the snap-in without the need for re-registratrion each time you launch PowerShell. See here for additional information about PowerShell profiles. |

