• [Script of Sep. 9] Backup a Farm excluding a web application using PowerShell

    Script Download: BackupSPFarmExcludingWebApps.zip
    http://gallery.technet.microsoft.com/Backup-a-Farm-excluding-a-c971864d

    This script performs a Full Backup for all components (as mentioned below) of SharePoint Farm except Web Applications.
    Components which would be backed up:

    • Farm Solutions
    • InfoPath Forms Services
    • SharePoint Server State Service / SharePoint Server State Service Proxy
    • Microsoft SharePoint Foundation User Code
    • Global Search Settings
    • Application Registry Service
    • Farm Shared Services
    • Service Applications / Service Applications Proxies

    In a real world, customers would like to have an ability to backup entire SharePoint farm except web applications as web applications could be backed up separately or using other backup utilities like DPM etc.

    image image
    image

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

  • [Script of Sep. 10] Start User Profile Synchronization through PowerShell

    Script Download: UPASync-2010.zip
    http://gallery.technet.microsoft.com/Start-User-Profile-4a6a82a9

    This script can be used to automate the user profile synchronization for the default User Profile Service Application. 

    It can be used to schedule the user profile sync operation or start it after a farm restore operation.

    image image
    image

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

  • [Script of Sep. 11] Create SharePoint Groups with Group Members in Microsoft SharePoint Server 2010

    Script Download: NewOSCSPSiteGroup.zip
    http://gallery.technet.microsoft.com/Create-SharePoint-Groups-29637f98

    This script can create SharePoint groups with group members in Microsoft SharePoint Server 2010.

    In a real world, you may need to create a lot of SharePoint groups and add many users to this group for some reasons. If there are lots of users, it will be a lot of work for IT Administrators, so they need a script to help them complete this task.

    image image
    image

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

  • [Script of Sep. 12] Script to fix issues described in KB2027593

    Script Download: DeleteEvilPrintQueueRegKey.zip
    http://gallery.technet.microsoft.com/Script-to-fix-issues-1763321b

    This sample can help you resolve the issue “The new printer status is Offline after you delete a print queue and then restart a Windows-based computer” described in KB2027593. It demonstrates how to list printers, print queues and how to delete evil registry key for print queue by using PowerShell script. This script completes the tasks by using registry and WMI Win32_Printer class.

    Consider the following scenario:

    • You delete a print queue while it is in an Offline status.
    • You add a new print queue that has the same name as the old print queue.
    • You restart the computer.

    In this scenario, the status of the new print queue is displayed as Offline. To solve this issue, you can use this script to get and remove evil registry key which cause the problem after you delete a print queue but before you add a new print queue of the same name.

    image image
    image

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

  • [Script of Sep. 13] List Unused Content Databases using PowerShell

    Script Download: ListUnusedContentDatabases.zip
    http://gallery.technet.microsoft.com/List-Unused-Content-c078e894

    This script can be used to list your unused SharePoint content databases. It can also be used to list used content databases or all content databases.

    By default, we can use Get-SPContentDatabase to retrieve SharePoint content databases. But this can only list the database that’s status is Ready. The content database cannot be listed if its status is Offline.

    image image
    image

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