Browse by Tags

Related Posts
  • Blog Post: Command Line Timestamp

    I often write little batch scripts, sometimes just as a way to save a lengthy command line. Frequently I also want to output the result to a file and give it a unique (and meaningful) filename. However the built-in %date% and %time% variables expand to the unuseful "Fri 01/04/2008" and "15:35:51.14"...
  • Blog Post: Bitsadmin script

    Attached is a script that I wrote to automate downloading a large file (e.g., ISO, WIM) by using BITS. There are variables at the start that need to be updated with the URL from which to download the file(s), and then the file name(s). If only one file is needed, remove the strFile2 variable as well...
  • Blog Post: Running netsh in ConfigMgr task sequence on x64 client

    In deploying Windows 7 x64 via a ConfigMgr 2007 SP2 task sequence I have a custom script to change the TCP Global Receive Window Auto-Tuning Level. The command that is executed via the script is: cmd /c netsh interface tcp set global autotuning=highlyrestricted This unfortunately returned the following...
  • Blog Post: Scripts for WSUS Import/Export

    The WSUS Deployment Guide has good general guidance on how to export/import content and metadata to a disconnected network. Here are some quick scripts that I whipped up to ease the process, as it's something that you'll probably want to do regularly. WsusContentBackup.cmd WsusContent.bks is required...
  • Blog Post: How to restore from the OS backup

    A customer requirement for a recent pilot project was to migrate user workstations to Vista for only a few weeks; we have to restore to the previous OS at the end of the pilot. There are other scenarios in which you'd need to restore a system using the fat WIM captured with the MDT Backup script in your...