Downloading and installing SMLets

SMLets are a set of PowerShell cmdlets (pronounced as command-lets) to do administrative tasks and automate things in Service Manager. By using the different cmdlets in SMLets you can do things that you are unable to do from the console and create some very powerful scripts. This makes the SMLets a vital part of any Service Manager administrator's toolbox.

There are in fact an official Service Manager PowerShell module included in the product, and even if it's becoming better and better, the SMLets still offers more powerful capabilities.

Note

Please note that SMLets is a community-driven open source project and is not officially supported by Microsoft. Members of the Service Manager product group was the original creators for SMLets and have done almost all the development.

Getting ready

Make sure that you have local administrator rights on the Service Manager management server in order to install the SMLets.

How to do it...

To download and install SMLets, follow these steps:

  1. Open your favorite browser and go to http://smlets.codeplex.com.
  2. Click on the large purple Download button on the right-hand side of the site and select a folder to save the file to.
  3. Once the download is completed, locate the SMLets.msi file, right-click on it, and select Properties. Now click on the Unblock button in the lower-right-hand side of the Properties dialog. Click on OK. This step might not apply to your environment depending on your current security settings.
  4. Log on to your Service Manager management server and copy the SMLets.msi file there.
  5. Double-click on the SMLets.msi file to start the installation.
  6. On the first page of the installation wizard, click on Next.
  7. Check the checkbox to agree on the license agreement and click on Next, followed by Next and Install.
  8. Once the installation is done, click on the Finish button.

How it works...

The SMLets should now be installed on your Service Manager management server and you are now ready to use the cmdlets.

Note

In order to use the SMLets you might have to change your PowerShell Execution policy settings. To do so, start a PowerShell prompt with administrator rights and run this command: Set-ExecutionPolicy remotesigned

To confirm the installation, follow these steps:

  1. Open a PowerShell prompt and import the SMLets module by running this command:
          Import-Module SMLets 
    
  2. Once the SMLets module are imported, run this command to verify that it's working:
          Get-SMLetsVersion 
    

If everything is working correctly, you should see some information regarding the SMLets version, as shown in the following screenshot:

How it works...

There's more...

SMLets will be used in several of the upcoming recipes in this chapter, so we won't be giving any examples on how to use SMLets in this particular recipe.

See also

http://smlets.codeplex.com

Please see the recipes Using SMLets to delete a work item and Autoclosing resolved Incidents with SMLets  and a custom workflow in this chapter for examples of how to use SMLets.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.222.80.122