In this tutorial, I will show you how to Update JS Link of Site in SharePoint 2013 with Powershell. First Open your SharePoint site and create a list from the Tasks template shown on the below picture:

1Name it My Tasks


And then, you’ll get the tasks list as shown on the below picture:


Now, copy the URL of the list. We will need it in the next step.
Note: Please note that we require %20 also to denote the space character.

After that, copy HelloWorld.js. Create a HelloWorld.js file and copy it to the Site Assets library.

Now, open the PowerShell ISE editor and write the following code:

Change the Server URL appropriately and run the code. If the code is executed with success, you’ll get your page updated. You can verify the page update by opening the page in edit mode. go to the web part properties and you’ll see that the JavaScript link was updated there.

This concludes the JavaScript Link updating using PowerShell.

Please note that the popular way of update is using CSOM code. in this way we can use a similar code base for each SharePoint On-Premise and on-line.

SharePoint 2013 Hosting Recommendation’s SharePoint 2013 Hosting solution offers a comprehensive feature set that is easy-to-use for new users, yet powerful enough for the most demanding web developer expert. Hosted SharePoint Foundation 2013 is the premiere web-based collaboration and productivity enhancement tool on the market today. With SharePoint 2013 Foundation, you can quickly access and manage documents and information anytime, anywhere though a Web browser in a secure and user friendly way. SharePoint hosting services start at only at €9.99/mo, allowing you to take advantage of the robust feature set for a small business price. offers a variety of hosted SharePoint Foundation 2013 plans as well as dedicated SharePoint 2013 Foundation options.