• [Script of Jan. 3] Disable turn off this device to save power for NIC Power Management (PowerShell)

    Script Download: DisableNetworkAdapterPnPCapabilities.zip
    http://gallery.technet.microsoft.com/Disable-turn-off-this-f74e9e4a

    This PowerShell Script illustrates how to disable "turn off this device to save power" feature in Power Management.

    Many users want to disable the option in network device called: The computer turn off this device to save power. Now, this script can help users to disable "turn off this device to save power" feature in Power Management of all physical network adapters.

    image image
     image

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

  • [Script of May 10] Get logins, databases users/roles and object level permission (T-SQL)

    Script Download: LoginUserRolePermission.zip
    http://gallery.technet.microsoft.com/scriptcenter/Get-logins-databases-816f66b2/

    This script contains three code parts, one to get the result of server level logins and related roles, one to get the result of user databases’ users and related roles, one to get the result of object level permission of specific database.

    This script can be used to get the following results:

    • Server level logins and related roles
    • User databases users and related roles
    • Object level permission of specific database

     

    image image
    image

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

  • [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 Nov 2nd] Generate report of user mailbox’s size for Exchange 2010

    Script Download: CompareMailboxSize.zip
    http://gallery.technet.microsoft.com/scriptcenter/Generate-report-of-user-e4e9afca 

    This script could be used to export mailboxes’ information to a CSV file, including SamAccountName, DisplayName, TotalItemSize. Based on these CSV files, script will also generate a report about the variation tendency of user mailbox.

    IT Administrators may care about the size of user’s mailbox.  It’s good for admins to log this size information every day, and create report when admins want to check the variation tendency of use rmailbox.

     

    image image
    image image

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

  • [Script Of Sep. 18] Add the "Pin to Start Screen" context menu item to all files in Windows 8.1

    Sep.
    18
    image
    image

    Script Download:  
    The script is available for download from http://gallery.technet.microsoft.com/Add-the-Pin-to-Start-1c0156a3.  You can also use  Microsoft Script Browser for Windows PowerShell ISE to download the sample with one button click from within your scripting environment. 

    This PowerShell script sample shows how to add the "Pin to Start Screen" context menu item to all files in Windows 8.1

    With Windows 8.1, Microsoft has restricted access to the 'Pin to Start Screen' menu command for 3rd party apps. The same thing could be implemented in Windows 8. Any app was able to pin itself to the Start Screen, but not so in Windows 8.1. So this script can get the "Pin to Start Screen" context menu item unlocked for every file, and every file system object in Explorer.

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