question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Remove artificial restriction on length of inline PowerShell scripts.

See original GitHub issue

Currently, inline PowerShell scripts are limited to 500 characters ("maxLength": "500"). Please remove this restriction so longer inline scripts can be used.

https://github.com/Microsoft/vsts-tasks/blob/b5eed6e36281234f3bd920ff7eeaa81c508596d7/Tasks/powerShell/task.json#L83

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
PatrizioRcommented, Aug 10, 2017

As a workaround: You can change the inline task length for tfs online with F12 Developer Tools: image

To something like: image

I tried myself and it’s working

Read more comments on GitHub >

github_iconTop Results From Across the Web

Increase the size of inline powershell script #3447 - GitHub
If the max length limitation is removed, then the glaring limitation is the editor experience is bad. The task UI isn't designed to...
Read more >
PowerShell Build Task: Remove character limit from inline ...
As the title says, remove it! 513 characters is not enough. Even for basic scripts. FYI: PowerShell task version is 1.2.3 and the...
Read more >
15 Ways to Bypass the PowerShell Execution Policy - NetSPI
Bypassing the PowerShell Execution Policy · 1. Paste the Script into an Interactive PowerShell Console · 2. Echo the Script and Pipe it...
Read more >
PowerShell@2 - PowerShell v2 task | Microsoft Learn
The maximum supported inline script length is 32766 characters. Use a script from a file if you want to use a longer script....
Read more >
Unblock-File (Microsoft.PowerShell.Utility)
It unblocks PowerShell script files that were downloaded from the internet so you can run them, even when the PowerShell execution policy is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found