• [Script of May 28] Add Custom Field to Folder Content Type in SharePoint 2010 List/Document Library

    Script Download: CustomFieldToFolderContentType.zip
    http://gallery.technet.microsoft.com/scriptcenter/Add-Custom-Field-to-Folder-a4f5cf20

    This script can be used to add a custom Field/Column to the Folder Content Type of a List or Document Library. This script also has the functionality to remove the Fields and also to list all the Fields in the Folder Content type for a List or Document Library.

    The Folder Content Type is sealed by default. We cannot customize it by adding any custom fields from the UI to the default Folder content type. Only way to do is going programmatic way. In real world, not all the SharePoint users are programmers. This PowerShell script enables the SharePoint users/administrators to simply run the script to accomplish the same.

    image image
    image

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

  • [Script of Apr. 30] Install .NET Framework 3.5 in Windows 8 with a script (PowerShell)

    Script Download:Install.NetFrameWork3.5(PowerShell).zip
    http://gallery.technet.microsoft.com/scriptcenter/Install-NET-Framework-35-f791c035

    This Script demo shows how to install .NET Framework 3.5 in Windows 8.

    Many customers need to enable .NET Framework 3.5. And this is discussed a lot.

    image image
    image

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

  • [Script of May 8] Display what OU the objects belong to (PowerShell)

    Script Download: ADAccountBelongsTo.zip
    http://gallery.technet.microsoft.com/scriptcenter/Display-what-OU-the-5e9e19e0/

    This PowerShell Script shows what OU the objects belong to. 

    Many users have ever asked is there any way to list what OU the objects belong to. If we provide a script can do it, obviously this could be done by scripting.​  

    image image
    image

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

  • [Script of May 27] Change Windows Store apps default installation location in Windows 8 (PowerShell)

    Script Download: ChangeDefaultInstallation.zip
    http://gallery.technet.microsoft.com/scriptcenter/Change-Windows-Store-apps-465af642

    The script shows how to change Windows Store apps default installation location in Windows 8.

    As we all know, ​ Windows Store apps default installation location is in driver C. But sometimes the driver C may be full, if we still want to install some big app and that seems impossible. So I think we can change the default Installation Location to ignore this problem.

    image image
    image

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

  • [Script of May 17] Guest user permission check for multiple databases per security best practices

    Script Download: GuestUserCheck.zip
    http://gallery.technet.microsoft.com/scriptcenter/Guest-user-permission-ac9eecdb

    This T-SQL sample script checks permissions for guest user in all databases. This script applies to system and to user databases.

    Knowing about guest user in Sql server is a frequent security requirement. This can also be a source of confusion since many a times guest user is disabled in Sql Server msdb's Sql server and results in issues indicated in below mentioned KB. 

    Some forums for such requirements are below:
    http://social.msdn.microsoft.com/Forums/en-US/sqldatabaseengine/thread/04940880-85c4-419a-a859-8a6bd58a18f0 

    Such a script should also help in below mentioned KB (KB has script for single database):
    http://support.microsoft.com/kb/2539091

    You should not disable the guest user in the msdb database in SQL Server 

    Script does below:

    • Script checks that all databases (except msdb) do not have any permission per security best practice.
    • Script checks that msdb database has Connect permission for guest user.
    • Script runs in Sql 2005/2008/2008R2/2012.

     

    image image
    image

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