OneScript Team Blog

A world of automation script samples based on IT Pros' real-world tasks
  • What’s New in Script Browser & Script Analyzer 1.2

    The Script Browser and Script Analyzer apps have received nearly 15,000 downloads since they were released half a month ago.  Microsoft PowerShell MVPs provided numerous suggestions to help us improve the apps.   Based on what we have learnt in the past two weeks, today we bring to you the 1.2 update of Script Browser and Script Analyzer.  The team is committed to making the apps useful. Your feedback is very important to us.

    Download Script Browser & Script Analyzer 1.2
    (If you have already installed an earlier version of Script Browser & Script Analyzer, you will get an update notification when you launch Windows PowerShell ISE.)

     

    1. A standalone desktop version of Script Browser

    image 

    In this release, we provide a new standalone desktop version of Script Brower so that non-PowerShell scripters, e.g. SQL/VBS scripters, can also benefit from the browser.

    You can easily configure the Script Browser desktop app and the Script Browser PowerShell ISE plugin to share the favorite samples and downloaded samples.

     

    2. New Cmdlets to manually load Script Browser / Script Analyzer when you need them

    In the past releases, the Script Browser and Script Analyzer plugins are turned on automatically when you start Windows PowerShell ISE.  In this release, you can choose to manually load Script Browser and Script Analyzer into ISE when you need them.  Here is how to do it.

    First, you need to uncheck the following ‘Allow the installer to update Windows PowerShell ISE profile’ option when you install the 1.2 update.  In this way, the Script Browser and Script Analyzer will not be loaded automatically when you start ISE.

    image

    Next, when you need Script Browser / Script Analyzer in the ISE, you can type the following cmdlets to load them:

    • Enable-ScriptBrowser
    • Enable-ScriptAnalyzer

    When you do not need them, you can type these cmdlets:

    • Disable-ScriptBrowser
    • Disable-ScriptAnalyzer

    We even provided a cmdlet for starting the desktop version of Script Browser:

    • Start-ScriptBrowserDesktop

     

    3. Largely improved Script Analyzer rules

    In this release, we figured out a new solution to largely improve the speedof Script Analyzer. 

    We have also fixed all Script Analyzer issues that users have reported.  Please continue sharing your feedback with us.

     

    4. Bug Fixes

    a) Improve the startup speed of Script Browser and Script Analyzer

    b) Fixed a sample rating display issue

     

    We sincerely suggest you give the new Script Browser & Script Analyzer a try (click here to download). If you love what you see in Script Browser & Script Analyzer, please recommend it to your friends and colleagues. If you encounter any problems or have any suggestions for us, please contact us at onescript@microsoft.com. Your precious opinions and comments are more than welcome.

  • Install Script Browser & Script Analyzer from PowerShellGet of WMF 5.0

    The PowerShell team has recently announced PowerShellGet, a new way to discover, install and update PowerShell modules, in the Windows Management Framework 5.0 Preview.   In this blog, you will learn how to install Script Browser & Script Analyzer through the PowerShellGet.

    First, you need to download and install Windows Management Framework 5.0 Preview.

    Next, launch Windows PowerShell ISE, and type the following command into the PowerShell console.  The installation does not require administrator permission because it installs the apps to your current user profile.

    Install-Module ScriptBrowser –Scope CurrentUser

    image

    After the installation, you can enable Script Browser / Script Analyzer in the PowerShell ISE by entering the following cmdlets:

    • Enable-ScriptBrowser
    • Enable-ScriptAnalyzer

    image

   Script of the Day

  • [Script of May 20] How to get mount point volume list from a specified physical path

    Script Download:  
    The script is available for download in Microsoft Script Browser for Windows PowerShell ISE. You need to install the Script Browser application first, and search for the script sample title.

    This PowerShell script sample shows how to list all volume mount points in Windows.

    Some users need a script to list volume point mounts which are created in Disk Management. Otherwise, users need to manually get them from Disk Management one by one. So this script sample can easily help users to do it.

    image image
     image

    You can find more All-In-One Script Framework script samples at http://aka.ms/onescriptingallery

  • [Script of May 19] How to add a site list to Enterprise Mode in Internet Explorer 11

    Script Download:  
    The script is available for download in Microsoft Script Browser for Windows PowerShell ISE. You need to install the Script Browser application first, and search for the script sample title.

    This script sample shows how to add a site list to Enterprise Mode. 

    Enterprise Mode is a new feature in Internet Explorer that allows businesses to use old web applications in modern versions of IE. It is a compatibility mode that runs on Internet Explorer 11 on Windows 8.1. In a way, if we want to open multiple sites as Enterprise Mode, we have to set it manually. Actually we can add multiple sites to your Enterprise Mode site list by creating a XML file of problematic sites, and with use this script to add site list to Enterprise Mode.

    image image
     image

    You can find more All-In-One Script Framework script samples at http://aka.ms/onescriptingallery

  • [Script of May 27] How to export multiple Visio pages to png file(VBA)

    Script Download:  
    The script is available for download in Microsoft Script Browser for Windows PowerShell ISE. You need to install the Script Browser application first, and search for the script sample title.

    This VBA sample shows how to convert Visio page file to .png file.

    Many companies generate technical visuals in Microsoft Visio and would like to be able to share this information on their corporate sites. The problem, however, is that most users would not be able to view the visuals in this format. One of the ways of solving this problem is converting Visio diagrams to a more universal format like PNG.  But doing it manually would be time consuming, this sample can help us to batch convert Visio files, it would be very convenient.

    image image
     image

    You can find more All-In-One Script Framework script samples at http://aka.ms/onescriptingallery

  • [Script of May 6] Find user logon duration (VBScript)

    Script Download:  
    The script is available for download in Microsoft Script Browser for Windows PowerShell ISE. You need to install the Script Browser application first, and search for the script sample title.

    This script could be used to collect user logon duration from multiple computers. You can also use the data to generate a report. The user logon duration calculation is based on the general algorithm, Logon duration = Logoff date time - Logon date time.

    In a real world, IT Administrators may need to collect user logon duration from multiple computers. User logon duration data can be useful when IT Administrators are troubleshooting some issues.

    image image
     image

    You can find more All-In-One Script Framework script samples at http://aka.ms/onescriptingallery

  • [Script of May 9] Modify Mailbox Folder Permission in Microsoft Exchange 2010 (PowerShell)

    Script Download:  
    The script is available for download in Microsoft Script Browser for Windows PowerShell ISE. You need to install the Script Browser application first, and search for the script sample title.

    This script could be used to modify mailbox folder permission in Microsoft Exchange 2010. You can use this script to export mailbox folder permission of specified mailboxes. You can use this script to set the mailbox folder permission also.

    In a real world, IT administrators may need to know users’ mailbox folder permissions from time to time. This is because mailbox folder permissions may be misconfigured by users. With help of this script, IT administrators could review the permissions in a single untied view. If IT administrators find the permission of some mailboxes are not correct, they can also try to fix the permission for these mailboxes based on this file.

    image image
     image

    You can find more All-In-One Script Framework script samples at http://aka.ms/onescriptingallery