# Devenv works in CMD but not in jenkins - The license for Visual Studio has expired. The evaluation period for this product has ended

**URL:** <https://community.jenkins.io/t/devenv-works-in-cmd-but-not-in-jenkins-the-license-for-visual-studio-has-expired-the-evaluation-period-for-this-product-has-ended/1618>\
**Category:** Ask a question\
**Tags:** question\
**Created:** [February 23, 2022, 7:15am UTC](https://community.jenkins.io/t/devenv-works-in-cmd-but-not-in-jenkins-the-license-for-visual-studio-has-expired-the-evaluation-period-for-this-product-has-ended/1618 "2022-02-23T07:15:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ksvijay413](https://avatars.discourse-cdn.com/v4/letter/k/a88e57/32.png) [@ksvijay413](https://community.jenkins.io/u/ksvijay413)\
**Post date:** [February 23, 2022, 7:15am UTC](https://community.jenkins.io/t/devenv-works-in-cmd-but-not-in-jenkins-the-license-for-visual-studio-has-expired-the-evaluation-period-for-this-product-has-ended/1618/1 "2022-02-23T07:15:20Z")

</div>

I am using devenv to create ispac file for SSIS. I am able to create SSIS package from windows CMD, but if i use a same command in jenkins it is saying license expired.

Microsoft Visual Studio 2017 Version 15.0.28307.1800. Copyright (C) Microsoft Corp. All rights reserved. The license for Visual Studio has expired. The evaluation period for this product has ended.

“C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\[devenv.com](http://devenv.com)” “E:\Program Files\Jenkins.jenkins\workspace\ETL\_solution\_Load\ETL\_Load.sln” /rebuild Development /Project “E:\Program Files\Jenkins.jenkins\workspace\ETL\_solution\_Load\ETL\_Load\EDW\_SOLM\_Load.dtproj” /projectconfig Development

Microsoft Visual Studio 2017 Version 15.0.28307.1800.  
Copyright (C) Microsoft Corp. All rights reserved.

The license for Visual Studio has expired.

The evaluation period for this product has ended.

Need help

---

<div class="post-metadata">

**Author:** ![halkeye](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/halkeye/32/8_2.png) [@halkeye](https://community.jenkins.io/u/halkeye)\
**Post date:** [February 23, 2022, 7:21pm UTC](https://community.jenkins.io/t/devenv-works-in-cmd-but-not-in-jenkins-the-license-for-visual-studio-has-expired-the-evaluation-period-for-this-product-has-ended/1618/2 "2022-02-23T19:21:24Z")

</div>

As a very highlevel general topic for these kinds of things.

“How do I compare environments”. I’m a linux guy, so I can’t help too much in windows, but I would recommend running `whoami` or [How do I get the current username in Windows PowerShell? - Stack Overflow](https://stackoverflow.com/questions/2085744/how-do-i-get-the-current-username-in-windows-powershell) to find out what user jenkins is running as. Then run `set` to print out your environmental variables, and see whats different.

> [@ksvijay413](#):
>
> I am able to create SSIS package from windows CMD, but if i use a same command in jenkins it is saying license expired.

My guess is that its a different user, different env variable, or different registry key, but i don’t know enough to direct you more than that.
