• [Script of Aug. 22] Get the Total Number of Printers Hosted on a Print Server (PowerShell)

    Script Download: GetTheCountOfPrintersHostedOntheServer(PowerShell).zip
    http://gallery.technet.microsoft.com/scriptcenter/Get-the-Total-Number-of-f7fba679

    This sample can help you to get the total number of the printers hosted on your print Server by using PowerShell.

    It is important to note that the primary limitation of the print server in this configuration is related to remote management and not the result of constraints imposed by the print server hardware or core spooler component. Specifically, when you are viewing and sorting columns in the Printers and Faxes folder, the Server may begin to experience delays if it is hosting more than 1,500 printers. You can run this script to get the total number of the printers hosted on your print Server.

    image image
    image

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

  • [Script of Aug. 23] Start or display stopped Lync services in Lync topology

    Script Download: StartLyncServicesInTopology.zip
    http://gallery.technet.microsoft.com/scriptcenter/Start-or-display-stopped-38d59352

    This script can help system administrators to start all the Lync Server services for each computer in current topology automatically.

    System administrators may encounter that Lync servers are not working properly due to required services startup failure. We can create PowerShell script to help them start these services automatically.

    image image
    image

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

  • [Script of Aug. 26] Use the .NET Framework 2.0 to resolve "404.17 - Not Found" issues

    Script Download: ChangeLyncAppPoolsVersion.zip
    http://gallery.technet.microsoft.com/scriptcenter/Use-the-NET-Framework-20-c1064cdb

    This sample automatically resolve “404.17 - Not Found” issue which is described in KB2777747 by using Powershell script language.

    By default, the .NET Framework Version setting is v4.0 for the Lync Server 2010 application pools when you install Lync Server 2010 on a Windows Server 2012-based computer. However, the Lync Server 2010 web services use the Microsoft .NET Framework 2.0.  In this scenario, you may receive an error message that resembles the following:
    “404.17 - Not Found” The requested content appears to be script and will not be served by the static file handler.
    To resolve this issue, configure all the Lync Server 2010 application pools to use the .NET Framework 2.0.

    image image
    image

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

  • [Script of Aug. 27] Check database backups appended to existing backup devices problems (T-SQL)

    Script Download: CheckBackuptoSingleFile.zip
    http://gallery.technet.microsoft.com/scriptcenter/Check-SQL-Server-database-e88b0cf5

    The backup history for SQL Server database indicates that backups are getting appended to existing backup devices. This increases the risk of losing all the backups when the backup device gets damaged. Also the performance of backups and restoring operations might be degraded when several backups are appended to one another on the same backup device that resides on a remote server and accessed over the network. Review the backup history information stored in msdb database and configure your backup scripts or solution to store backups in individual backup devices.

    This script can be used to detect the database backups appended to existing backup devices problems.

    image image
    image

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

  • [Script of Aug. 28] Check database backups appended to existing backup devices problems (PowerShell)

    Script Download: CheckBackuptoSingleFile.zip
    http://gallery.technet.microsoft.com/scriptcenter/Check-database-backups-a38c64a7

    The backup history for SQL Server database indicates that backups are getting appended to existing backup devices. This increases the risk of losing all the backups when the backup device gets damaged. Also the performance of backups and restoring operations might be degraded when several backups are appended to one another on the same backup device that resides on a remote server and accessed over the network. Review the backup history information stored in msdb database and configure your backup scripts or solution to store backups in individual backup devices.

    We can use Get-OSCBackupToSingleFile to identify the database backups appended to existing backup devices and then list the affected databases. By default, this script uses Windows Authentication to connect to your SQL Server. If you want to use SQL Server Authentication, just uncomment some code in this script.

    image image
    image

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