Skip to content

Commit dfce854

Browse files
committed
ss
1 parent 3fb2d01 commit dfce854

File tree

12 files changed

+209
-179
lines changed

12 files changed

+209
-179
lines changed

Issues.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ body {
3838
| External Help | Set-PSConfigFileExecution | Did not create the .md file |
3939
| External Help | Update-PSConfigFileCredentials | Did not create the .md file |
4040
| | | |
41-
| Not Copied | Show-PSConfigFile | <= |
4241

4342
---
4443

45-
*Updated: Tuesday, March 3, 2026 9:13:40 AM UTC*
44+
*Updated: Tuesday, March 3, 2026 12:24:06 PM UTC*

Issues.xlsx

-34 Bytes
Binary file not shown.

Output/0.1.40/PSConfigFile.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# Generated by: Pierre Smit
55
#
6-
# Generated on: 2026-03-03 10:13:39Z
6+
# Generated on: 2026-03-03 13:23:49Z
77
#
88

99
@{

Output/0.1.40/PSConfigFile.psm1

Lines changed: 172 additions & 132 deletions
Large diffs are not rendered by default.

Output/0.1.40/en-US/about_PSConfigFile.help.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ Functions in this module:
2222
New-PSConfigFile -- Creates a new PSConfigFile XML configuration file to store your PowerShell environment settings.
2323
Remove-ConfigFromPSConfigFile -- Removes a specific item (variable, drive, function, command, credential, default, or location) from the PSConfigFile configuration.
2424
Set-PSConfigFileExecution -- Configures your PowerShell profile or a module to automatically execute your PSConfigFile configuration at startup.
25-
Show-PSConfigFile -- Display what's configured in the config file.
2625
Update-PSConfigFileCredentials -- Updates or renews credentials and encryption certificates stored in your PSConfigFile configuration.
2726

2827
SEE ALSO

PSConfigFile/PSConfigFile.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# Generated by: Pierre Smit
55
#
6-
# Generated on: 2026-03-03 10:13:39Z
6+
# Generated on: 2026-03-03 13:23:49Z
77
#
88

99
@{

PSConfigFile/Public/Add-LocationToPSConfigFile.ps1

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,6 @@ Updated [13/11/2021_16:30] Added Function Script
3838

3939

4040

41-
42-
43-
44-
45-
46-
47-
48-
4941
<#
5042
5143
.DESCRIPTION
@@ -60,29 +52,32 @@ Add a start-up location to the config file
6052
Adds a default start-up location (folder or PSDrive) to the PSConfigFile configuration.
6153
6254
.DESCRIPTION
63-
Use this function to specify a default working location for your PowerShell session, either as a folder path or a PSDrive. When the config file is invoked using Invoke-PSConfigFile, your session will automatically change to this location. This is useful for streamlining your workflow and ensuring you always start in the correct directory or drive.
55+
Specifies a default working location for your PowerShell session, either as a folder path or a PSDrive. When the config file is invoked using Invoke-PSConfigFile, your session will automatically change to this location. This streamlines your workflow and ensures you always start in the correct directory or drive.
6456
65-
.PARAMETER LocationType
66-
Specifies the type of location to add. Accepts 'PSDrive' for a PowerShell drive or 'Folder' for a filesystem path.
57+
.PARAMETER PSDriveName
58+
The name of the PowerShell drive to set as the default location. Must be a valid PSDrive. Use this parameter if you want to set a PSDrive as the start-up location.
6759
68-
.PARAMETER Path
69-
The path to the folder or the name of the PSDrive to set as the default location. Must exist as a valid path or drive.
60+
.PARAMETER FolderPath
61+
The path to the folder to set as the default location. Must be a valid directory. Use this parameter if you want to set a filesystem folder as the start-up location.
7062
7163
.PARAMETER Force
7264
If specified, the config file will be deleted before saving the new one. If not specified and a config file exists, it will be renamed as a backup before saving the new version.
7365
7466
.EXAMPLE
75-
Add-LocationToPSConfigFile -LocationType PSDrive -Path temp
67+
Add-LocationToPSConfigFile -PSDriveName temp
7668
Sets the default location to the 'temp' PSDrive when the config is invoked.
7769
7870
.EXAMPLE
79-
Add-LocationToPSConfigFile -LocationType Folder -Path c:\temp
80-
Sets the default location to the 'c:\temp' folder when the config is invoked.
71+
Add-LocationToPSConfigFile -FolderPath C:\temp
72+
Sets the default location to the 'C:\temp' folder when the config is invoked.
8173
8274
.NOTES
8375
Author: Pierre Smit
8476
Website: https://smitpi.github.io/PSConfigFile
8577
This function is part of the PSConfigFile module for managing PowerShell configuration automation. Use this to ensure your PowerShell session always starts in the correct directory or drive.
78+
79+
.LINK
80+
https://smitpi.github.io/PSConfigFile/Add-LocationToPSConfigFile
8681
#>
8782

8883
function Add-LocationToPSConfigFile {
@@ -96,7 +91,7 @@ function Add-LocationToPSConfigFile {
9691
)
9792
try {
9893
$confile = Get-Item $PSConfigFile -ErrorAction stop
99-
} catch {
94+
} catch {
10095
if ($IsWindows) {
10196
Add-Type -AssemblyName System.Windows.Forms
10297
$FileBrowser = New-Object System.Windows.Forms.OpenFileDialog -Property @{ Filter = 'XML | *.xml' }

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,5 +60,4 @@ You can execute this config automatically when your profile loads, or manually a
6060
- [`New-PSConfigFile`](https://smitpi.github.io/PSConfigFile/New-PSConfigFile) -- Creates a new PSConfigFile XML configuration file to store your PowerShell environment settings.
6161
- [`Remove-ConfigFromPSConfigFile`](https://smitpi.github.io/PSConfigFile/Remove-ConfigFromPSConfigFile) -- Removes a specific item (variable, drive, function, command, credential, default, or location) from the PSConfigFile configuration.
6262
- [`Set-PSConfigFileExecution`](https://smitpi.github.io/PSConfigFile/Set-PSConfigFileExecution) -- Configures your PowerShell profile or a module to automatically execute your PSConfigFile configuration at startup.
63-
- [`Show-PSConfigFile`](https://smitpi.github.io/PSConfigFile/Show-PSConfigFile) -- Display what's configured in the config file.
6463
- [`Update-PSConfigFileCredentials`](https://smitpi.github.io/PSConfigFile/Update-PSConfigFileCredentials) -- Updates or renews credentials and encryption certificates stored in your PSConfigFile configuration.

Version.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"version": "0.1.40",
33
"Author": "Pierre Smit",
4-
"Date": "2026-03-03 10:13:39Z"
4+
"Date": "2026-03-03 13:23:51Z"
55
}

docs/docs/PSConfigFile/Add-CredentialToPSConfigFile.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Securely saves a credential to the PSConfigFile configuration using a self-signe
2020
### __AllParameterSets
2121

2222
```
23-
Add-CredentialToPSConfigFile [[-Name] <string>] [[-Credential] <pscredential>] [-Force]
23+
Add-CredentialToPSConfigFile [[-Name] <string>] [[-Credential] <string>] [-Force]
2424
[<CommonParameters>]
2525
```
2626

@@ -54,10 +54,10 @@ Saves a credential named 'AdminUser', overwriting the config file if it exists.
5454
### -Credential
5555

5656
The PowerShell credential object to be securely stored.
57-
Use Get-Credential to create this object.
57+
Use Get-Credential to create this object first.
5858

5959
```yaml
60-
Type: PSCredential
60+
Type: String
6161
DefaultValue: ''
6262
SupportsWildcards: false
6363
Aliases: []

0 commit comments

Comments
 (0)