Posts

  • Development

    Get the Current Script Directory in PowerShell, VBScript and Batch

    |

    |

    Overview This post shows how to quickly get the current script directory using PowerShell, VBScript and Batch – the most commonly used scripting languages for Windows. The scripts I write usually read in other files or call other scripts. In order for these scripts to run from any location – such as a UNC path…

    (Read more…)


  • UTF-8 and UTF-16 Text Encoding Detection Library

    |

    |

    Overview This post shows how to detect UTF-8 and UTF-16 text and presents a fully functional C++ and C# library that can be used to help with the detection. I recently had to upgrade the text file handling feature of AutoIt to better handle text files where no byte order mark (BOM) was present. The…

    (Read more…)


  • Mass Redistribute Packages in ConfigMgr 2012

    |

    |

    , ,

    Overview Recently I came across an issue with System Center Configuration Manager (ConfigMgr) 2012 where a large number of packages and applications had failed to be distributed to a new Distribution Point (DP). There were many thousands of packages in the environment and a few hundred were showing in the error state in the console.…

    (Read more…)


  • Detect an SSD Disk Using a Script

    |

    |

    Overview A common request when creating automated desktop builds or custom maintenance tools is the ability detect if the main system drive is an SSD disk or not. This information can be used to configure a system in a particular way. For example, to run (or not run) certain maintenance tasks or to optimally configure…

    (Read more…)


  • GImageX v2.1.0 Released for Windows 8.1

    |

    |

    GImageX v2.1.0 has been released. GImageX is a graphical user interface for the ImageX tool from the Windows Assessment and Deployment Kit (Windows ADK). ImageX is used to capture and apply WIM images for Windows deployments. GImageX uses the supported Microsoft WIMGAPI API for working with WIM files. Previous versions of GImageX were compiled for the…

    (Read more…)


  • Configuring an AirPort Extreme for NAT Only Mode

    |

    |

    Overview This post will show how you can use an configure an AirPort Extreme for NAT only mode so that you can allow an additional DHCP server on your network to handle IP address allocation. The instructions are for the AirPort Extreme in the Time Capsule, but I believe this should be the same for…

    (Read more…)


  • Website Server Rebuild Diary

    |

    |

    Overview Not a usual scripting or deployment post this time – this is a website server rebuild diary. I wanted to make a quick post to document a server rebuild and to log the sort of work that goes into maintaining this and the www.autoitscript.com site. Even small (ish) sites can be quite a bit…

    (Read more…)


  • Using Custom XML and Config Files with USMT and ConfigMgr

    |

    |

    Overview Using USMT In System Center Configuration Manager (SCCM / ConfigMgr)  when performing an Operating System Deployment (OSD) can be a bit of a chore. The built in Task Sequence actions available for capturing and restoring user state only allow you to perform a very basic migration. Most of the time USMT requires quite a…

    (Read more…)


  • Create a USMT Package in ConfigMgr

    |

    |

    Overview In System Center Configuration Manager (SCCM / ConfigMgr)  when performing an Operating System Deployment (OSD) there is usually some form of user data and settings migration. This is often performed using the Microsoft User State Migration Toolkit (USMT). The first step in using USMT is to create the USMT tool ConfigMgr package. This post…

    (Read more…)


  • Create a Windows 7 BitLocker Partition in ConfigMgr

    |

    |

    Overview In System Center Configuration Manager (SCCM / ConfigMgr)  something I’ve done a few times is to create a BitLocker partition for Windows 7 during an Operating System Deployment (OSD) Task Sequence. I’ve seen the method used here a few times before but I wanted to document it for myself so that I can use…

    (Read more…)