• [Script of Nov 22nd] Set DNS Server Search Order for Multiple Computers in an Organizational Unit

    Script Download: SetDNSServerSearchOrder.zip
    http://gallery.technet.microsoft.com/scriptcenter/Set-DNS-Server-Search-6a3e3ede 

    This script allows you to retrieve or set DNS server search order for multiple computers that belongs to one organizational unit. It will only modify the DNS server search order for the network adaptors with static DNS server search order.

    When you replace an old DNS server by a new one, IT administrators often want to retrieve a list of computers that are using old DNS server. After getting the list of these servers, IT administrators also need to replace the old DNS server search order with the new one.

     

    image image
    image image

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

  • [Script of Nov 23rd] How to verify if an OU exists (VBScript)

    Script Download: VBSFindOU.zip
    http://gallery.technet.microsoft.com/scriptcenter/How-to-verify-if-an-OU-b0317c33 

    This VBScript illustrates how to check or verify if an Active Directory (AD) Organizational Unit (OU) exists

    If we bind to a particular OU that does not exist using VBScript, the script terminates with object not found exception. Using this sample script we can verify the existence of required OU before we perform some operation on respective OU

     

    image image
    image image

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

  • [Script of Nov 26th] List Unused Content Databases using PowerShell

    Script Download: ListUnusedContentDatabases.zip
    http://gallery.technet.microsoft.com/scriptcenter/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 image

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

  • [Script of Nov 27th] Set User Profile Picture in Microsoft SharePoint Server 2010

    Script Download: SetOSCSPUserPicture.zip
    http://gallery.technet.microsoft.com/scriptcenter/Set-User-Profile-Picture-1cdbe171

    This script changes user profile picture in Microsoft SharePoint Server 2010. It finds user profile pictures from specified picture library. After finding the pictures, it uses User Profile Manager to change PictureUrl property for each user who has user profile.

    Under some circumstances, administrators may manage user pictures manually without enabling User Profile Synchronization Service. It indicates that the pictures will not be imported from external systems. They need to find a way to help HR specialist to import user profile picture for each user.

     

    image image
    image image

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

  • [Script of Nov 28th] Update Users Display Name after Enabling Forms-based Authentication (FBA) in SPS

    Script Download: UpdateFBAUserDisplayname.zip
    http://gallery.technet.microsoft.com/scriptcenter/Update-Users-Display-Name-f32f5a52 

    This script updates users display name after enabling Forms-based authentication (FBA) in Microsoft SharePoint Server 2010.

    After enabling form-based authentication, you may want to change users display name to friendly ones.  Nowadays, you may notice that some display names are showed in this form, i:0#.f|membership|username. Suppose you need to manage a large number of site collections with FBA enabled, change display names will be a time-consuming task for you.

     

    image image
    image image

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