• [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 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 21st] Change window border,desktop icon spacing,desktop background color and wallpaper of Windows

    Script Download: ChangeDesktopIconSize.zip
    http://gallery.technet.microsoft.com/scriptcenter/Change-window-borderdesktop-609a6fb2

    This sample demonstrates how to change the window border, desktop icon spacing, desktop background color, and wallpaper by using PowerShell script. This script completes the tasks by using P/Invoke to call Windows API functions.

    IT administrators can use this script to adjust desktop appearance for a group of computers to keep a consistent user experience.

     

    image image
    image image

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

  • [Script of Nov 20th] Synchronizes configurations on RADIUS proxy servers (VBScript)

    Script Download: SyncNPSConfiguration.zip
    http://gallery.technet.microsoft.com/scriptcenter/Synchronizes-configurations-983962bf

    This script synchronizes the NPS configuration of different NPS proxy servers that are located in the same domain.

    In some scenarios, you may deploy multiple RADIUS servers instead of one central RADIUS server and other servers that act as proxy servers. However, it is difficult to ensure the consistency of the configurations of multiple RADIUS proxy servers. IT Administrators have to use the "netsh nps export" command to export a configuration file, and then use the "netsh nps import" command to import it to other NPS servers manually. There is no automatic way to synchronize the servers.

     

    image image
    image image

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

  • [Script of Nov 19th] Reset Offline Files Cache and Database in Windows

    Script Download: ReinitializeOfflineFilesCacheAndDatabase.zip
    http://gallery.technet.microsoft.com/scriptcenter/Reset-Offline-Files-Cache-83249475 

    This script resets offline files cache and database. You can use this script to reset offline files cache and database on a local computer or against remote computers. Workgroup computers are also supported.

    On a Windows Vista-based or Windows 7-based client computer, you can still access offline files even though the file server is removed from the network. On a Windows XP-based client computer, sometimes the offline files cache and database may be corrupted. If multiple computers have this problem, Help desk need a script to reset offline files cache and database on multiple machines.

     

    image image
    image image

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