{"id":18653901,"url":"https://github.com/powershellcrack/mdttssimulator","last_synced_at":"2025-05-12T12:42:19.340Z","repository":{"id":111449949,"uuid":"349415240","full_name":"PowerShellCrack/MDTTSSimulator","owner":"PowerShellCrack","description":"Test PowerShell scripts with a task sequence environment","archived":false,"fork":false,"pushed_at":"2025-02-08T22:58:37.000Z","size":426,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-31T22:11:13.643Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PowerShellCrack.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-03-19T12:27:56.000Z","updated_at":"2025-02-08T22:58:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"f5f561d8-9648-4271-9d1e-c469bc2ce8c5","html_url":"https://github.com/PowerShellCrack/MDTTSSimulator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PowerShellCrack%2FMDTTSSimulator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PowerShellCrack%2FMDTTSSimulator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PowerShellCrack%2FMDTTSSimulator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PowerShellCrack%2FMDTTSSimulator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PowerShellCrack","download_url":"https://codeload.github.com/PowerShellCrack/MDTTSSimulator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253742098,"owners_count":21956956,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T07:13:28.208Z","updated_at":"2025-05-12T12:42:19.327Z","avatar_url":"https://github.com/PowerShellCrack.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MDTTSSimulator\n\nTest MDT task sequence environment items from desktop without launching a deployment\n\n## Install it\n\n1. Install [ADK](https://docs.microsoft.com/en-us/windows-hardware/get-started/adk-install)\n2. Install [MDT](https://www.microsoft.com/en-us/download/details.aspx?id=54259)\n3. Run SetupMDTSimulator.cmd\n    - Answer a few questions\n4. Run MDT Simulator from desktop shortcut\n5. Once session window is open (Powershell/ISE/Code). You need to run the `C:\\MDTSimluator\\TSEnv.ps1` script.\n\n\u003e TIP: Best if ran as elevated Administrator.\n\n## Tested Deployment Shares\n\n- MDT (this is by default)\n- PSD (You must add PSD modules to C:\\MDTSimulator\\Modules folder)\n\n## Simulated Testing\n\n**For MDT:** Add rules to the [customsettings.ini](CustomSettings.mdtsample.ini), then relaunch the simulator\n\n**For PSD:** Within the session window running the simulator, additional rules can be loaded:\n\n```powershell\n#Enable Debugging \n$PSDDebug = $true\n\n#EXAMPLE: Additional rules can be loaded\nInvoke-PSDRules -FilePath '\\\\\u003cSERVER\u003e\\\u003cMDTSHARE\u003e\\Control\\CustomSettings.ini' -MappingFile 'C:\\MDTSimulator\\Modules\\PSDGather\\ZTIGather.xml'\n\n#EXAMPLE: Launch the new PSDWizard\nShow-PSDWizard -ResourcePath '\\\\\u003cSERVER\u003e\\\u003cMDTSHARE\u003e\\Scripts\\PSDWizardNew' -Language en-US -Theme Dark -ScriptPath '\\\\\u003cSERVER\u003e\\\u003cMDTSHARE\u003e\\Scripts' -Verbose\n```\n\n## What does it do?\n\nThe _SetupMDTSimulator.cmd_ script:\n\n- Copies required files from MDT distribution folder into a C:\\MDTSimulator\n- Copies CustomSettings.ini from deploymentshare to C:\\MDTSimulator\n- Generates the TS.xml file based on input\n- Generates a batch script that will call a powershell script to start TS engine\n- Creates a desktop shortcut\n\n## Known Issues\n\n- Simulator must run in elevated mode; Desktop shortcut is configured to run as Administrator already\n- Running this within Powershell 7 does not work. It won't load the tasksequence bootstrap modules properly.\n- Simulator may fail if set to VSCode (Visual Studio Code) and Powershell 7 is the extension; it must launch with Powershell 5 to work\n- If your deploymentshare CustomSettings.ini is not valid, it may not launch correctly. Overwrite using the sample provided then relaunch\n- Only the session windows that is open will have the TS environment loaded; if closed, it will kill the simulation\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpowershellcrack%2Fmdttssimulator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpowershellcrack%2Fmdttssimulator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpowershellcrack%2Fmdttssimulator/lists"}