• [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.7] Check pre-requisite fixes on a system for SQL Server 2012 AlwaysOn(PowerShell)

    Script Download: CheckPre-requisiteFixesSQLServer2012AlwaysOn.zip
    http://gallery.technet.microsoft.com/scriptcenter/Check-pre-requisite-fixes-d5843842

    This sample script checks pre-requisite fixes for AlwaysOn in SQL Server 2012. These fixes are publicly documented in http://technet.microsoft.com/en-us/library/ff878487.aspx (Prerequisites, Restrictions, and Recommendations for AlwaysOn Availability Groups (SQL Server)), in section “Windows Hotfixes that Support AlwaysOn Availability Groups (Windows System)”.

    Installing prerequisite fixes is not checked during configuration of SQL Server AlwaysOn, however may result in unexpected issues later.

    image image
    image

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

  • [Script of Nov.6] Automatic Email Notification to Administrator about Inactive Accounts in AD

    Script Download: AutomaticEmail(PowerShell).zip
    http://gallery.technet.microsoft.com/scriptcenter/Automatic-Email-Notificatio-31e71980

    The goal of this script is to automatic email notification to Administrator about Inactive accounts in Active Directory.

    For management administrators always intend to identify the inactive user/computer accounts that have not logged on the domain for a certain period of time, then they could determine to disable, delete or remove these accounts. Rather than administrator manually finding out inactive accounts when he needed, automatically generating an inactive user/computer accounts report and sending a email notification to administrator would be much better.

    image image
    image

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

  • [Script of Nov.5] Script to check and delete all users delegated permission (PowerShell)

    Script Download: RemoveDelegatedPermission.zip
    http://gallery.technet.microsoft.com/scriptcenter/Script-to-check-and-delete-94c6c6e6

    The script helps us to check and delete all delegated permission of the user.

    As we know, there isn't a delete delegated permission wizard in Windows Server. If we want to delete all delegated permission and restore users' permission to default, we have to use ADUC and other tools such as Dsrevoke to check and delete each user's permission manually. Once we have the script, we could reduce a lot of work.

    image image
    image

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

  • [Script of Nov.4] Set PictureUrl as default unless another picture is present (PowerShell)

    Script Download: SetSPUserPicture.zip
    http://gallery.technet.microsoft.com/scriptcenter/Set-PictureUrl-as-default-9e0123ca

    This script shows how to Set PictureUrl as default unless another picture is present.

    This script will set a default picture for the PictureUrl in a list where all user information are stored .If users don't specify a picture, the default picture will be used.

    image image
    image

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