• [Script of Aug. 30] Get or Remove forwarding address for Exchange 2010

    Script Download: OSCforwardingAddress(PowerShell).zip
    http://gallery.technet.microsoft.com/scriptcenter/Get-or-Remove-forwarding-9943efc6

    This PowerShell script sample shows get or remove forwarding address for Exchange 2010.

    In most exchange environment, the administrator will set forwarding and redirecting on some users. But when we need to remove those old accounts that have not been used, we should first find how many mailboxes had set the forwarding address to those old accounts. As it is a property in Get-Mailbox, we can use a script to list those mailbox names, then we can remove those relationship as well.

    image image
    image

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

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

    Script Download: CheckBackupToSingleFile.zip
    http://gallery.technet.microsoft.com/scriptcenter/Check-database-backups-4d65f7c2

    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

  • [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. 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