The ControlPoint snap-in contains the cmdlets needed to run a ControlPoint action.
You can either:
·load the snap-in every time you open PowerShell, or
·add the snap-in to your PowerShell profile so it will automatically load the cmdlets whenever PowerShell opens.
Refer to the msdn article on Windows PowerShell Profiles (see msdn.microsoft.com/en-us/library/bb613488(VS.85).aspx for details on creating a PowerShell profile.
Loading the ControlPoint snap-in
To load the ControlPoint snap-in:
|
Line |
Command |
Description |
|---|---|---|
|
1 |
SharePoint 2013 environment C:\Windows\Microsoft.NET\Framework64\v4.0.30319\ NOTE: These are the Windows default directories. The location of the .exe file may be different in your environment. |
Maps an alias to an install utility that ships with the .NET Framework. |
|
2 |
cd C:\Program Files\Metalogix\ControlPoint\Support\PowerShell |
Navigates to the directory containing the xcPowerShell.dll file that contains the ControlPoint cmdlets. |
|
3 |
installutil xcPowerShell.dll |
Uses the install utility to load xcPowerShell.dll into Powershell |
|
4 |
Add-PSSnapin xcSnapin |
Adds the snap-in containing all of the ControlPoint cmdlets. |
Below is an example of the lines of text above in the PowerShell profile.
Below is an example of a PowerShell session with the ControlPoint Cmdlets successfully loaded.