Microsoft All-In-One Script Framework Sample Release on December 11th

We have released100 script samples!  There is customer evidence behind every script sample.  The team closely monitors the entire TechNet forum platform, and customers’ support calls to Microsoft, and create automation script to ease those frequently asked IT tasks.   We wish that the samples will save your time.

Today, Microsoft All-In-One Script Framework is updated with over 30 new script samples.   In this blog, we introduce 14 of them, including 3 Windows 8 script samples; 1 Windows Server 2012 sample, 2 Office 365 ones, 1 Lync sample, 3 Office samples, and 4 SharePoint scripts.  The scripts are written for solving frequently asked IT tasks that our team observed in the TechNet forums and Microsoft Support Incidents.  Many customers are asking about these IT scenarios.

 

Windows 8 Script Samples

image

Create a Shutdown/Restart/Logoff Windows 8 Tile for the Start menu (PowerShell)

Download: CreateWindowsTile.zip
Details: https://gallery.technet.microsoft.com/scriptcenter/Create-a-ShutdownRestartLog-37c8111d

This script sample has been the most popular script on TechNet Script Repository.

image

Description: This PowerShell script shows how to create a Shutdown, Restart or Logoff Windows 8 tile for the Start menu.

User Scenarios: In Windows 8, without a Start button, properly shutting down or rebooting Windows can be a bit of a chore. Many users want to shut down or reboot Windows in just one click. This script enables users to click on a tile to shut down, reboot or log off Windows on the Start menu.

Acknowledgement: Thanks Anders Wang for the script idea and composing the script sample.  Thanks Nishant Kumar Singh for reviewing the sample to ensure its quality.

 

Script to create a Windows 8 Switch User Tile for the Start menu (PowerShell)

Download: CreateSwitchUserWindowsTile.zip
Details: https://gallery.technet.microsoft.com/scriptcenter/Script-to-create-a-Windows-2b03ac8c

image

Description: This PowerShell Script shows how to create a Windows 8 Switch User tile for the Start menu.

User Scenarios: Properly switching users in Windows 8 without a Start button can be a bit of a chore. Many users may want to switch users in just one click. This script enables users to click a tile to switch user on the Start menu.

Acknowledgement: Thanks Anders Wang for the script idea and composing the script sample.

 

Script to create a Windows 8 Hibernation Tile for the Start menu (PowerShell)

Download: CreateHibernationWindowsTile.zip
Details: https://gallery.technet.microsoft.com/scriptcenter/Script-to-create-a-ce24bd63

image

Description: This PowerShell Script shows how to create a Windows 8 Hibernation tile for the Start menu.

User Scenarios: Properly hibernating Windows 8 without a Start button can be a bit of a chore. Many users may want to hibernate Windows in just one click. This script enables users to click a tile to hibernate Windows on the Start menu.

Acknowledgement: Thanks Anders Wang for the script idea and composing the script sample.

 

Windows Server 2012 Script Samples

 

Switch between Server Core to Server GUI in Windows Server 2012

Download: SwitchGUIServerCORE.zip
Details: https://gallery.technet.microsoft.com/scriptcenter/Switch-between-Windows-9680265d

Description: This script sample can be used to switch a full installation of a Server Graphic User Interface (GUI) mode to Server Core mode in Windows Server 2012. Additionally, this script enables you to convert Server Core mode to Server GUI mode.

User Scenarios: After you setup Windows Server 2012, IT administrators may have to convert Server 2012 to Server Core mode for some security reasons.  Also, it is more convenient for administrators to change some configurations when using GUI mode.  To perform this action, use the following script sample.

Acknowledgement: Thanks Edward Qi for collecting the script idea and composing the script sample.   Thanks Christopher Norris for ensuring its quality.

 

Office 365 Script Samples

image

Configuring a Windows PowerShell Profile for Office 365 Exchange Online

Download: SetOffice365PowerShellProfile .zip
Details: https://gallery.technet.microsoft.com/scriptcenter/Configuring-a-Windows-faecf7cb

Description: This script can configure a Windows PowerShell profile for Office 365 Exchange Online. It appends the Connect-OSCExchangeOnline and Disconnect-OSCExchangeOnline functions to your Windows PowerShell profile. Afterward, you can use these two functions directly without remembering New-PSSession and its parameters.

User Scenarios: Currently, Office 365 Exchange Online administrators use the New-PSSession function to connect Windows PowerShell to Office 365. Some administrators feel that it is difficult to remember all the parameters clearly. It is better to use a Windows PowerShell profile to store the two functions and help administrators use Office 365 more easily.

Acknowledgement: Thanks Dan Rowley for submitting the script idea and ensuring the script quality. Thanks Greg Gu for composing the script sample.

 

Add Birthday or Anniversary Reminders in Office 365 Exchange Online

Download: AddOSCEXOAppointment.zip
Details: https://gallery.technet.microsoft.com/scriptcenter/Add-Birthday-or-Anniversary-e111b73d

Description: This script creates birthday or anniversary reminders for your contacts. This script also enables you to import a comma-separated values (CSV) file for creating the reminders. Additionally, you can use this script to search a contact folder to find contacts that have birthdays and anniversaries, and then create the reminders.

User Scenarios: Microsoft Outlook has a feature that enables you to “Add a birthday or anniversary for a contact.” However, this feature is not available in the Outlook Web App (OWA). Therefore, in order to add birthday or anniversary reminders in OWA, you must find a workaround.

Acknowledgement: Thanks Greg Gu for submitting the script idea, and composing the sample.  Thanks David Los (PM from Exchange Online) for ensuring its quality.

 

Lync Script Samples

image

Find Users with Specific Features Enabled in Microsoft Lync Server 2010

Download: SearchOSCCSUser.zip
Details: https://gallery.technet.microsoft.com/scriptcenter/ScriptFind-Users-with-fa3d97ea

Description: This script finds users with specific features enabled in Microsoft Lync Server 2010. Features of following policies which defined in user scope are supported by this script.

  • Voice Policy
  • Conferencing Policy
  • Pin Policy
  • ExternalAccess Policy
  • Location Policy
  • Client Policy
  • ClientVersion Policy
  • Presence Policy
  • Mobility Policy
  • Archiving Policy

User Scenarios: Microsoft Lync Server 2010 provides a lot of policies to allow IT administrators to control the features which could be used by end users. Currently, if administrators want to know the list of users who are allowed to use some features, they have to find these policies by using Where-Object cmdlet first. After that they need to prepare a filter script manually by using the policy names. It’s a time consuming job if there are a lot of policies in the organization. Also some administrators want to maintain this kind of list for compliance purpose.

Acknowledgement: Thanks Kelly Huang  for submitting the script idea. Thanks Greg Gu for writing the script sample. Thanks Christopher Tart for reviewing it and ensuring its quality.

 

Office Script Samples

image

Remove Notes Pages in PowerPoint (PowerShell)

Download: RemoveNotesInPowerPoint.zip
Details: https://gallery.technet.microsoft.com/scriptcenter/Remove-Notes-Pages-in-e5d722da

Description: This PowerShell script will remove all the notes pages form specified PowerPoint files.

User Scenarios: In PowerPoint, people often use the notes function to record additional information. When these documents are shared, you may want to remove notes before sharing the document. Instead of removing the notes one by one, you can remove all the notes using the script.

Acknowledgement: Thanks Cristin Yan for submitting the script topic.  Thanks Anders Wang for composing the sample.  Thanks Shiv Khare for sharing his expertise to review it before the sample is published.

 

Convert PowerPoint Presentation to Word Document (PowerShell)

Download: ConvertPowerPointToWordDocument.zip
Details: https://gallery.technet.microsoft.com/scriptcenter/Convert-PowerPoint-d65f3a82

Description: This PowerShell script sample illustrates how to convert PowerPoint presentations to Word documents. Additionally, script will maintain the original format, layout for presentation and reduce the output file size. Supported version is PowerPoint 2010.

User Scenarios: Converting PowerPoint presentations to Word documents is a frequently asked question in many public forums.

Acknowledgement: Thanks Zhiliang Zhou for collecting the script idea. Thanks Pranav Wagh for sharing his expertise in Office to ensure the sample quality.  Thanks Anders Wang for writing the sample.

 

Modify Picture Compression Resolution Settings in PowerPoint 2007 (PowerShell)

Download: ModifyPictureCompressionResolutionSetting.zip
Details: https://gallery.technet.microsoft.com/scriptcenter/Modify-Picture-Compression-e669d72e

Description: This PowerShell script demo illustrates how to modify picture compression resolution settings in PowerPoint 2007.

User Scenarios: This question is asked by users in the TechNet forum. They just want to pre-configure picture compression in PowerPoint 2007.

Acknowledgement: Thanks Zhiliang Zhou for the script idea.  Thanks Anders Wang for writing the sample.  Thanks Pranav Wagh for ensuring its quality.

 

SharePoint Script Samples

image

 

Manage Managed Metadata Terms in Microsoft SharePoint Server 2010

Download: ManageTaxonomy.zip
Details: https://gallery.technet.microsoft.com/scriptcenter/Manage-Managed-Metadata-9c42efef

Description: This script can manage managed metadata terms in Microsoft SharePoint Server 2010. You can use this script to get terms, add terms or remove terms.

User Scenarios: In a real world, a lot of people ask the possibility of managing managed metadata terms by using Windows PowerShell. Since administrators need to manage lot of terms, they really need to find a script to reduce their workload.

Acknowledgement: Thanks Simon Huang for the script idea. Thanks Greg Gu for writing the sample. Thanks Stephen Woodard for review it.

 

Start a SharePoint Designer Workflow on Multiple List Items

Download: StartWorkflow.zip
Details: https://gallery.technet.microsoft.com/scriptcenter/Start-a-Workflow-on-120bffe5

Description: This script can start a SharePoint Designer workflow on Multiple List Items in Microsoft SharePoint Server 2010.

User Scenarios: In a real world, you may need to start a workflow on multiple list items. It will be a heavy task if you do it manually, so you are looking for a script to complete this task.

Acknowledgement: Thanks Simon Huang for the script idea. Thanks Greg Gu for writing the sample. Thanks Stephen Woodard for review it.

 

List Unused Content Databases using PowerShell

Download: ListUnusedContentDatabases.zip
Details: https://gallery.technet.microsoft.com/scriptcenter/List-Unused-Content-c078e894

Description: 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.

User Scenarios: 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.

Acknowledgement: Thanks Wenxuan Fan for the script idea. Thanks Bing Zhao for writing the sample. Thanks Sojesh Sreelayam for review it.

 

Set User Profile Picture in Microsoft SharePoint Server 2010

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

Description: 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.

User Scenarios: 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.

Acknowledgement: Thanks Wenxuan Fan for the script idea. Thanks Greg Gu for writing the sample. Thanks Shaleen Thapa for review it.