{"id":159700,"date":"2022-09-26T09:53:27","date_gmt":"2022-09-26T09:53:27","guid":{"rendered":"\/knowledge\/forums\/topic\/discovery-subscription-license-command-line-options\/"},"modified":"2024-01-18T06:39:31","modified_gmt":"2024-01-18T06:39:31","slug":"discovery-subscription-license-command-line-options","status":"publish","type":"topic","link":"https:\/\/innovationspace.ansys.com\/knowledge\/forums\/topic\/discovery-subscription-license-command-line-options\/","title":{"rendered":"Discovery Subscription license &#8211; Command line options"},"content":{"rendered":"<p>Through Windows Command prompt, you can execute different commands associated with subscription licensing like activating, deactivating, viewing licenses, etc. Please find below the steps to execute these commands:<\/p>\n<p>1.\u00a0\u00a0\u00a0\u00a0Launch\u00a0the Windows Command Prompt from the start menu by typing &#8220;cmd&#8221;.\u00a0 Right click the Command Prompt application and select Run as Administrator.<\/p>\n<p>2.\u00a0\u00a0\u00a0\u00a0In the command prompt, type in:<\/p>\n<p><strong>For version 2021R1 and later:<\/strong><\/p>\n<p>cd\u00a0C:\\Program Files\\ANSYS Inc\\v211\\licensingclient\\winx64<\/p>\n<p><strong>For older versions:<\/strong><\/p>\n<p>cd C:\\Program Files\\ANSYS Inc\\Shared Files\\Licensing\\winx64<\/p>\n<p>(this is the default installation directory of Discovery products. If you have installed it at a different location, enter the appropriate path where\u00a0ansysls_client.exe is present)<\/p>\n<p>3.\u00a0\u00a0\u00a0\u00a0Once in that directory, run the following commands:<\/p>\n<p><strong>Activate license<\/strong>:<\/p>\n<p>ansysls_client.exe -ActivateLicenseEntitlement &lt; ActivationID &gt;<\/p>\n<p>This command can be used to activate license on your machine. In above command, replace &lt; ActivationID &gt; with your activation id. You can find the activation id in the txt file that you receive or from your <a href=\"https:\/\/myaccount.ansys.com\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Discovery Account page<\/a>\u00a0under Manage Subscriptions section.<\/p>\n<p><strong>Deactivate\u00a0<\/strong><strong>license<\/strong><strong>:<\/strong><\/p>\n<p>ansysls_client.exe -DeactivateAllEntitlements<\/p>\n<p>This command deactivates all the active licenses assigned to you. After deactivating licenses, you will be prompted to sign in when you launch any Discovery product. The license can also be deactivated by clicking &#8220;Release&#8221; button under license details\u00a0from your\u00a0<a href=\"https:\/\/myaccount.ansys.com\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Discovery Account page<\/a>\u00a0under Manage Subscriptions section.<\/p>\n<p><strong>Refresh licenses:<\/strong><\/p>\n<p>ansysls_client.exe -RefreshLicenseEntitlements<\/p>\n<p>This command refreshes license subscriptions\u00a0on that machine. If Discovery products are not launched for more than a month, execute this command to refresh the license.<\/p>\n<p><strong>Get Device ID:<\/strong><\/p>\n<p>ansysls_client.exe -GetDeviceId<\/p>\n<p>This command returns the subscription device ID for the current\u00a0system and user. You can also view the device ID\u00a0from your\u00a0<a href=\"https:\/\/myaccount.ansys.com\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Discovery Account page<\/a>\u00a0under Manage Subscriptions section and the subscription license activated on that machine.<\/p>\n<p><strong>Show licenses:<\/strong><\/p>\n<p>ansysls_client.exe -ShowLicenseEntitlements<\/p>\n<p>This command returns the list of all active\u00a0subscription licenses for this system along with its start and end dates.<\/p>\n","protected":false},"template":"","class_list":["post-159700","topic","type-topic","status-publish","hentry","topic-tag-installation","topic-tag-installation-faq"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_wp_page_template":["default"],"_bbp_last_active_time":["09-13-2022  20:20:16"],"_bbp_forum_id":["159546"],"_btv_view_count":["5093"],"siebel_km_number":["2056178"],"family":["Discovery Products"],"application_name":["installation"],"product_version":["2021R1"],"_edit_lock":["1705560884:2"],"_edit_last":["2"],"_bbp_topic_id":["159700"],"_yoast_wpseo_content_score":["30"],"_yoast_wpseo_estimated-reading-time-minutes":["2"],"_application_name":["field_64a80903c8e15"],"_family":["field_64a809229a857"],"_siebel_km_number":["field_63ecbffce60db"],"salesforce_km_number":[""],"_salesforce_km_number":["field_63ecc018e60dc"],"km_published_date":[""],"_km_published_date":["field_64c77704499dd"],"_product_version":["field_64c776cb4fd2e"],"filter_by_optics_product":["Lumerical"],"_filter_by_optics_product":["field_64fb192ba3121"],"_yoast_wpseo_wordproof_timestamp":[""],"_bbp_likes_count":["1"]},"test":"articlesansys-com"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/knowledge\/wp-json\/wp\/v2\/topics\/159700","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/innovationspace.ansys.com\/knowledge\/wp-json\/wp\/v2\/topics"}],"about":[{"href":"https:\/\/innovationspace.ansys.com\/knowledge\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/innovationspace.ansys.com\/knowledge\/wp-json\/wp\/v2\/topics\/159700\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/knowledge\/wp-json\/wp\/v2\/media?parent=159700"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}