• [Script of Nov.8] How to force automatic restarts after finish installing updates (PowerShell)

    Script Download: ForceAutomaticRestarts(PowerShell).zip
    http://gallery.technet.microsoft.com/scriptcenter/How-to-force-automatic-195fbe07

    This script can help to force automatic restarts to finish installing important updates.

    Whenever after updates, the server does not reboot immediately. However if we remote into the server we will receive a notice that you have to restart the computer in three days. If the restart does not occur in three days, the computer displays a 15-minute countdown and then automatically restarts. By default, this automatic restart is delayed if the computer is locked, and the countdown will begin the next time that you sign in to the computer.

    This script can help to force automatic restarts to finish installing important updates.

    image image
    image

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

  • [Script of Nov.11] Copy Files with version and metadata using PowerShell

    Script Download: ListLibrary_ExportImport.zip
    http://gallery.technet.microsoft.com/scriptcenter/Copy-Files-with-version-f2af7001

    This script can copy a List / Library from one web to another web while maintaining versions and metadata.

    In a real world, a lot of people ask copying just one List / Library from one web to another web while retaining versions, security info and metadata; this script would help to facilitate that.

     

    image image
    image

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

  • [Script of Nov.12] How to force automatic restarts after finish installing updates (VBScript)

    Script Download: ForceAutomaticRestarts(VBScript).zip
    http://gallery.technet.microsoft.com/scriptcenter/How-to-force-automatic-c5cb6a06/

    This VBScript can help to force automatic restarts to finish installing important updates.

    Whenever after updates, the server does not reboot immediately. However if we remote into the server we will receive a notice that you have to restart the computer in three days. If the restart does not occur in three days, the computer displays a 15-minute countdown and then automatically restarts. By default, this automatic restart is delayed if the computer is locked, and the countdown will begin the next time that you sign in to the computer.

    This script can help to force automatic restarts to finish installing important updates. 

    image image
    image

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

  • [Script of Nov.13] Check instantaneous and historical wait types (T-SQL)

    Script Download: Wait.zip
    http://gallery.technet.microsoft.com/scriptcenter/Check-instantaneous-and-3a2ed244

    This script will check wait types and related information. It waits for a minute and then collects historical and instantaneous wait on the server. You can run this script and troubleshoot based on the results.

    You can use this script for troubleshooting when you want to check wait in SQL Server. 

    image image
    image

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

  • [Script of Nov.14] Checking For Protected ACLs in Active Directory (PowerShell)

    Script Download: 21766.zip
    http://gallery.technet.microsoft.com/scriptcenter/Checking-For-Protected-ddfaddbf

    This script demo shows how to get protected ACL from a specified base scope.

    Exchange Server setup grants permissions to various groups at various places in the domain and configuration contexts of Active Directory. Since Exchange relies on these permissions in order for everything to work properly, from time to time we see cases where something is not working, and we eventually track it down to the fact that an object has been set to NOT inherit permissions from its parent. This is called a protected ACL, because it is protected from inheriting permissions from the parent. 

    image image
    image

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