• [Script of Apr. 30] How to add application installation condition (Query WMI) in SCCM 2012 SP1

    Script Download: 

    The script is available for download in Microsoft Script Browser for Windows PowerShell ISE. You need to install the Script Browser application first, and search for the script sample title.

    This scripts shows how to add an application installation condition (Query WMI) in System Center 2012 Configuration Manager SP1.

    Suppose you are a SCCM administrator of a large company, you need to deploy software to devices provided by different vendors. You can add conditions to a task sequence step to make sure applications are deployed to the right devices. But a task sequence may contain multiple steps requiring to add conditions; it’s not easy to find the steps in task sequence editor. So you want to use a script to ease your work.

    image image
     image

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

  • [Script of Apr. 29] How to Document a Task Sequence in System Center 2012 Configuration Manager SP1

    Script Download: 

    The script is available for download in Microsoft Script Browser for Windows PowerShell ISE. You need to install the Script Browser application first, and search for the script sample title.

    This script can document a Task Sequence in System Center 2012 Configuration Manager SP1.

    Currently, you can create many task sequences to deploy multiple Operating Systems. Then you can modify these task sequences to add additional steps or conditions to provide a better deployment experience. After that you want to document the details of these task sequences. These documentations are part of standard operating procedures (SOPs).

    image image
     image

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

  • [Script of Apr. 28] How to get user's password expiration date without using AD cmdLets

    Script Download: 

    The script is available for download in Microsoft Script Browser for Windows PowerShell ISE. You need to install the Script Browser application first, and search for the script sample title.

    This Script shows how to get a user password expiration date in Active Directory.

    Sometime users want to know when their password will expire. This script is to get the date without Active Directory Cmdlet.

    image image
     image

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

  • [Script of Apr. 25] Script for NAV 3-tier troubleshooting (PowerShell)

    Script Download: 

    The script is available for download in Microsoft Script Browser for Windows PowerShell ISE. You need to install the Script Browser application first, and search for the script sample title.

    This PowerShell script is designed to help troubleshooting Dynamics NAV 3-tier installations by extracting the information that is typically used, rather than looking around in Active Directory to find it manually.

    Installing NAV in a 3-tier configuration requires updates to Active Directory. If client connections fail, then often the cause is some missing or wrong Active Directory settings. This script is designed to extract the most likely areas where the problem is.

    image image
     image

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

  • [Script of Apr. 24] Script to fix issues described in KB947222 (PowerShell)

    Script Download: 

    The script is available for download in Microsoft Script Browser for Windows PowerShell ISE. You need to install the Script Browser application first, and search for the script sample title.


    This Windows PowerShell script will modify the file permission.

    When user redirect the Documents folders to network share, the folders name changes back to My Documents as shown in the following figure. This issue can be fixed by denying Read permission to the administrator for the Desktop.ini files on the server. But the customers need to perform steps one by one. It would be great if we have a script to automate this task.

    image image
     image

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