[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["難以理解","hardToUnderstand","thumb-down"],["資訊或程式碼範例有誤","incorrectInformationOrSampleCode","thumb-down"],["缺少我需要的資訊/範例","missingTheInformationSamplesINeed","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-09-04 (世界標準時間)。"],[],[],null,["# Using the Windows discovery tool\n================================\n\n| This release of Migrate to Containers includes a new tool, called the *fit assessment* tool, that replaces the existing Windows discovery tool. See [Using the fit assessment tool](/migrate/containers/docs/fit-assessment) for more information.\n\nMigrate to Containers provides a self-service tool that you run on a Windows VM\nworkload to determine the workload's fit for migration to a container.\n\nThe tool outputs a zip file that indicates whether or not the Windows VM is a\npotential fit for migration. The name of the file indicates the results:\n\n- `info-`\u003cvar translate=\"no\"\u003ehostname\u003c/var\u003e`-`\u003cvar translate=\"no\"\u003etimestamp\u003c/var\u003e`.zip` indicates that the VM is a potential fit to be migrated.\n- `info-`\u003cvar translate=\"no\"\u003ehostname\u003c/var\u003e`-`\u003cvar translate=\"no\"\u003etimestamp\u003c/var\u003e`-`**NOFIT**`.zip` indicates that the VM is not fit to be migrated. Typically a NOFIT results from a missing or incorrect version of IIS.\n\nHow the tool works\n------------------\n\nBecause Migrate to Containers requires Windows VMs to run Microsoft IIS 7 or higher,\nthe discovery tool collects IIS and general system information.\n\nPrerequisites\n-------------\n\nTo run the Windows discovery tool:\n\n- You must have a 64-bit version of Windows.\n- You must be an administrator on the Windows VM.\n\nDownloading and running the tool\n--------------------------------\n\nThe tool is packaged as a single .exe file. You must download the tool before you can execute it.\n\n**To evaluate a VM**:\n\n1. Log in to your VM.\n\n2. Create a directory for the tool:\n\n ```text\n \u003e mkdir m4a \n \u003e cd m4a\n ```\n3. Download the tool to the VM from \u003chttps://storage.googleapis.com/anthos-migrate-release/v1.9.0/windows/amd64/collect_info.exe\u003e.\n\n4. Run the tool on the VM as an administrator:\n\n You can either right click on the tool in the File Manager and select **Run as Administrator**,\n or open a PowerShell command window as an administrator: \n\n ```scdoc\n \u003e collect_info.exe\n ```\n\n The tool outputs a zip file named `info-`\u003cvar translate=\"no\"\u003ehostname\u003c/var\u003e`-`\u003cvar translate=\"no\"\u003etimestamp\u003c/var\u003e`.zip`\n or `info-`\u003cvar translate=\"no\"\u003ehostname\u003c/var\u003e`-`\u003cvar translate=\"no\"\u003etimestamp\u003c/var\u003e`-NOFIT.zip` to the\n current directory.\n\n The timestamp is in the format `YYYMMDDhhmmss`.\n See [Output zip file format](#output_zip_file_format) for a description of the zip file.\n\n You can optionally use the `-o` option to specify the path to the output directory. For example: \n\n ```scdoc\n \u003e collect_info.exe -o /home/mydir\n ```\n\n To see help information, use: \n\n ```scdoc\n \u003e collect_info.exe -h\n ```\n\nOutput zip file format\n----------------------\n\nThe output zip file contains:\n\n- A log file named `log.log`.\n- A file named `collect_info_version.txt` containing the version of the tool.\n- Directories containing information about the system:\n - `computer_info`\n - `iis`\n - `gac`\n - `odbc`\n\nThe contents of each directory are described below.\n\n### The computer_info directory\n\nThe `computer_info` directory contains:\n\n### The iis directory\n\nThe `iis` directory contains information about IIS, sites and .NET configurations,\nand additional selected information that might help us to understand the applications.\n| **Note:** If IIS is not installed on the VM then this directory is empty.\n\nThe directory contains following files:\n\n#### Handling secrets in the iis directory\n\nCopies of config files and directories (IIS, global .NET, and sites) might contain secrets. These files include `applicationHost.config` and `web.config`.\n\nThe `collect_info.exe` tool filters passwords from\n[connection strings](https://docs.microsoft.com/en-us/dotnet/framework/data/adonet/connection-strings)\nin those files ([.NET 3.5+ format](https://www.connectionstrings.com/store-connection-string-in-webconfig/)).\nEvery password is replaced with `***`. You can remove and filter any additional\nsensitive information manually from the output zip file.\n\n### The gac directory\n\nThe `gac` directory contains information of the .NET [Global Assembly Cache](https://docs.microsoft.com/en-us/dotnet/framework/app-domains/gac):\n\n### The odbc directory\n\nThe `odbc` directory contains information of the ODBC [DSNs](https://support.microsoft.com/en-us/help/966849/what-is-a-dsn-data-source-name) and installed drivers:\n\n#### Handling secrets in the odbc directory\n\nODBC DSNs might contain secrets. The `collect_info.exe` tool filters out passwords from the exported .reg files. You can remove and filter any additional sensitive information manually from the output zip file.\n\nWhat's next\n-----------\n\n- [Setting up Migrate to Containers](/migrate/containers/docs/setting-up-overview)"]]