{"id":14064290,"url":"https://github.com/jdhitsolutions/PSSessionExport","last_synced_at":"2025-07-29T17:33:16.125Z","repository":{"id":145020928,"uuid":"351812715","full_name":"jdhitsolutions/PSSessionExport","owner":"jdhitsolutions","description":"A PowerShell proof-of-concept module to export and import a PowerShell console session.","archived":false,"fork":false,"pushed_at":"2022-07-18T15:16:50.000Z","size":1136,"stargazers_count":11,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-11-21T03:39:40.228Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PowerShell","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jdhitsolutions.png","metadata":{"files":{"readme":"README.md","changelog":"changelog.md","contributing":null,"funding":null,"license":"License.txt","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-26T14:40:05.000Z","updated_at":"2023-03-02T10:42:01.000Z","dependencies_parsed_at":"2023-05-02T05:02:58.403Z","dependency_job_id":null,"html_url":"https://github.com/jdhitsolutions/PSSessionExport","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdhitsolutions%2FPSSessionExport","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdhitsolutions%2FPSSessionExport/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdhitsolutions%2FPSSessionExport/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdhitsolutions%2FPSSessionExport/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jdhitsolutions","download_url":"https://codeload.github.com/jdhitsolutions/PSSessionExport/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228032926,"owners_count":17858918,"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-08-13T07:03:47.817Z","updated_at":"2024-12-04T02:31:35.273Z","avatar_url":"https://github.com/jdhitsolutions.png","language":"PowerShell","funding_links":[],"categories":["PowerShell"],"sub_categories":[],"readme":"# PSSessionExport\n\nThis is a demonstration module created in response to an Iron Scripter PowerShell [Challenge](https://ironscripter.us/a-powershell-session-challenge-2/). The goal is to export as much of a PowerShell working console session to a file and then import the saved data in a new PowerShell console session. It is unlikely to reach 100% compatibility, but this module tries to get as close as possible.\n\nIt is assumed you will be exporting and importing into the same PowerShell major version, i.e 5 or 7. If you attempt to import across versions, you will get an error.\n\n## Export\n\nYou can export the current session to an XML file. You will have to specify if you want to include exporting existing PSSessions and/or CimSessions.\n\n![Export session](images/export.png)\n\nIn a new PowerShell session, you can get information about the export.\n\n![Get export information](images/get.png)\n\nThe module includes functions to import individual items such as Aliases or PSDrives, but it is expected you will import the entire session.\n\n![Import a session](images/import.png)\n\nAdditional background information on this module can be found at \u003chttps://jdhitsolutions.com/blog/powershell/8252/answering-the-powershell-export-challenge/\u003e.\n\n## To Do\n\nThe project isn't 100% complete. These items should be addressed:\n\n- PSReadline Options and keyhandlers\n- CIMSession Options\n- PowerShell 7 Experimental Features\n- Export custom format data. This should be added from module imports. But there may be stand-alone formats.\n- Export custom type. Maybe use the [PSTypeExtensionTools](https://github.com/jdhitsolutions/PSTypeExtensionTools) module and let the user specify what type extensions to export. Anything that was extended by a module should be already be taken care of.\n- Help documentation\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjdhitsolutions%2FPSSessionExport","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjdhitsolutions%2FPSSessionExport","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjdhitsolutions%2FPSSessionExport/lists"}