{"id":21809880,"url":"https://github.com/smitpi/psconfigfile","last_synced_at":"2025-10-11T17:13:03.457Z","repository":{"id":46027624,"uuid":"415118055","full_name":"smitpi/PSConfigFile","owner":"smitpi","description":"Creates a Config file with Variables, PSDrives, Credentials, Shortcuts(Functions), PSDefaultParameters and a Starting location. You can then execute this config when your profile is loaded, or you can run it manually at any time. And all of the variables, psdrives credentials ext. are then available in your session. This way you can quickly and easily switch between \"environment setups\"","archived":false,"fork":false,"pushed_at":"2022-12-06T19:37:07.000Z","size":7516,"stargazers_count":2,"open_issues_count":4,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-05-23T00:31:18.205Z","etag":null,"topics":["powershell","powershell-module"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/smitpi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-10-08T20:24:35.000Z","updated_at":"2023-12-15T08:35:43.000Z","dependencies_parsed_at":"2023-01-23T15:00:39.543Z","dependency_job_id":null,"html_url":"https://github.com/smitpi/PSConfigFile","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/smitpi%2FPSConfigFile","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smitpi%2FPSConfigFile/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smitpi%2FPSConfigFile/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smitpi%2FPSConfigFile/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/smitpi","download_url":"https://codeload.github.com/smitpi/PSConfigFile/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244767542,"owners_count":20507110,"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":["powershell","powershell-module"],"created_at":"2024-11-27T13:28:56.603Z","updated_at":"2025-10-11T17:12:58.413Z","avatar_url":"https://github.com/smitpi.png","language":"PowerShell","readme":"# PSConfigFile\n \n## Description\nCreates a Config file with Variables, PSDrives, Credentials, Shortcuts(Functions), PSDefaultParameters and a Starting location. You can then execute this config when your profile is loaded, or you can run it manually at any time. And all of the variables, psdrives credentials ext. are then available in your session. This way you can quickly and easily switch between \"environment setups\"\n \n## Getting Started\n- Install from PowerShell Gallery [PS Gallery](https://www.powershellgallery.com/packages/PSConfigFile)\n```\nInstall-Module -Name PSConfigFile -Verbose\n```\n- or run this script to install from GitHub [GitHub Repo](https://github.com/smitpi/PSConfigFile)\n```\n$CurrentLocation = Get-Item .\n$ModuleDestination = (Join-Path (Get-Item (Join-Path (Get-Item $profile).Directory 'Modules')).FullName -ChildPath PSConfigFile)\ngit clone --depth 1 https://github.com/smitpi/PSConfigFile $ModuleDestination 2\u003e\u00261 | Write-Host -ForegroundColor Yellow\nSet-Location $ModuleDestination\ngit filter-branch --prune-empty --subdirectory-filter Output HEAD 2\u003e\u00261 | Write-Host -ForegroundColor Yellow\nSet-Location $CurrentLocation\n```\n- Then import the module into your session\n```\nImport-Module PSConfigFile -Verbose -Force\n```\n- or run these commands for more help and details.\n```\nGet-Command -Module PSConfigFile\nGet-Help about_PSConfigFile\n```\nDocumentation can be found at: [Github_Pages](https://smitpi.github.io/PSConfigFile)\n \n## Functions\n- [`Add-CommandToPSConfigFile`](https://smitpi.github.io/PSConfigFile/Add-CommandToPSConfigFile) -- Adds a command or script block to the config file, to be executed every time the invoke function is called.\n- [`Add-CredentialToPSConfigFile`](https://smitpi.github.io/PSConfigFile/Add-CredentialToPSConfigFile) -- Creates a self signed cert, then uses it to securely save a credential to the config file.\n- [`Add-FunctionToPSConfigFile`](https://smitpi.github.io/PSConfigFile/Add-FunctionToPSConfigFile) -- Creates Shortcuts (Functions) to commands or script blocks\n- [`Add-LocationToPSConfigFile`](https://smitpi.github.io/PSConfigFile/Add-LocationToPSConfigFile) -- Adds default location to the config file.\n- [`Add-PSDefaultParameterToPSConfigFile`](https://smitpi.github.io/PSConfigFile/Add-PSDefaultParameterToPSConfigFile) -- Add PSDefaultParameterValues to the config file\n- [`Add-PSDriveToPSConfigFile`](https://smitpi.github.io/PSConfigFile/Add-PSDriveToPSConfigFile) -- Add PSDrive to the config file.\n- [`Add-VariableToPSConfigFile`](https://smitpi.github.io/PSConfigFile/Add-VariableToPSConfigFile) -- Adds variable to the config file.\n- [`Export-PSConfigFilePFX`](https://smitpi.github.io/PSConfigFile/Export-PSConfigFilePFX) -- Export the PFX file for credentials.\n- [`Import-PSConfigFilePFX`](https://smitpi.github.io/PSConfigFile/Import-PSConfigFilePFX) -- Import the PFX file for credentials\n- [`Invoke-PSConfigFile`](https://smitpi.github.io/PSConfigFile/Invoke-PSConfigFile) -- Executes the config from the json file.\n- [`New-PSConfigFile`](https://smitpi.github.io/PSConfigFile/New-PSConfigFile) -- Creates a new config file\n- [`Remove-ConfigFromPSConfigFile`](https://smitpi.github.io/PSConfigFile/Remove-ConfigFromPSConfigFile) -- Removes a item from the config file.\n- [`Set-PSConfigFileExecution`](https://smitpi.github.io/PSConfigFile/Set-PSConfigFileExecution) -- Adds functionality to add the execution to your profile.\n- [`Show-PSConfigFile`](https://smitpi.github.io/PSConfigFile/Show-PSConfigFile) -- Display what's configured in the config file.\n- [`Update-CredentialsInPSConfigFile`](https://smitpi.github.io/PSConfigFile/Update-CredentialsInPSConfigFile) -- Allows you to renew the certificate or saved passwords.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmitpi%2Fpsconfigfile","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmitpi%2Fpsconfigfile","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmitpi%2Fpsconfigfile/lists"}