Skip to content

Commit 76c1921

Browse files
committed
new
1 parent dfce854 commit 76c1921

70 files changed

Lines changed: 30293 additions & 23 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Issues.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@ body {
4141

4242
---
4343

44-
*Updated: Tuesday, March 3, 2026 12:24:06 PM UTC*
44+
*Updated: Tuesday, March 3, 2026 1:06:02 PM UTC*

Issues.xlsx

0 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 13:23:49Z
6+
# Generated on: 2026-03-03 14:04:51Z
77
#
88

99
@{

Output/0.1.40/PSConfigFile.psm1

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ Export-ModuleMember -Function Add-FunctionToPSConfigFile
425425
# Author: Pierre Smit
426426
# Company: Private
427427
# CreatedOn: 11/26/2024 11:46:09 AM
428-
# ModifiedOn: 3/3/2026 1:18:39 PM
428+
# ModifiedOn: 3/3/2026 2:02:45 PM
429429
# Synopsis: Adds a default start-up location (folder or PSDrive) to the PSConfigFile configuration.
430430
#############################################
431431

@@ -434,29 +434,32 @@ Export-ModuleMember -Function Add-FunctionToPSConfigFile
434434
Adds a default start-up location (folder or PSDrive) to the PSConfigFile configuration.
435435
436436
.DESCRIPTION
437-
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.
437+
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.
438438
439-
.PARAMETER LocationType
440-
Specifies the type of location to add. Accepts 'PSDrive' for a PowerShell drive or 'Folder' for a filesystem path.
439+
.PARAMETER PSDriveName
440+
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.
441441
442-
.PARAMETER Path
443-
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.
442+
.PARAMETER FolderPath
443+
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.
444444
445445
.PARAMETER Force
446446
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.
447447
448448
.EXAMPLE
449-
Add-LocationToPSConfigFile -LocationType PSDrive -Path temp
449+
Add-LocationToPSConfigFile -PSDriveName temp
450450
Sets the default location to the 'temp' PSDrive when the config is invoked.
451451
452452
.EXAMPLE
453-
Add-LocationToPSConfigFile -LocationType Folder -Path c:\temp
454-
Sets the default location to the 'c:\temp' folder when the config is invoked.
453+
Add-LocationToPSConfigFile -FolderPath C:\temp
454+
Sets the default location to the 'C:\temp' folder when the config is invoked.
455455
456456
.NOTES
457457
Author: Pierre Smit
458458
Website: https://smitpi.github.io/PSConfigFile
459459
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.
460+
461+
.LINK
462+
https://smitpi.github.io/PSConfigFile/Add-LocationToPSConfigFile
460463
#>
461464

462465
function Add-LocationToPSConfigFile {
@@ -470,7 +473,7 @@ function Add-LocationToPSConfigFile {
470473
)
471474
try {
472475
$confile = Get-Item $PSConfigFile -ErrorAction stop
473-
} catch {
476+
} catch {
474477
if ($IsWindows) {
475478
Add-Type -AssemblyName System.Windows.Forms
476479
$FileBrowser = New-Object System.Windows.Forms.OpenFileDialog -Property @{ Filter = 'XML | *.xml' }

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 13:23:49Z
6+
# Generated on: 2026-03-03 14:04:51Z
77
#
88

99
@{

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 13:23:51Z"
4+
"Date": "2026-03-03 14:04:52Z"
55
}

docs/docs/PSConfigFile/Add-LocationToPSConfigFile.md

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,27 +31,29 @@ This cmdlet has the following aliases,
3131

3232
## DESCRIPTION
3333

34-
Use this function to specify a default working location for your PowerShell session, either as a folder path or a PSDrive.
34+
Specifies a default working location for your PowerShell session, either as a folder path or a PSDrive.
3535
When the config file is invoked using Invoke-PSConfigFile, your session will automatically change to this location.
36-
This is useful for streamlining your workflow and ensuring you always start in the correct directory or drive.
36+
This streamlines your workflow and ensures you always start in the correct directory or drive.
3737

3838
## EXAMPLES
3939

4040
### EXAMPLE 1
4141

42-
Add-LocationToPSConfigFile -LocationType PSDrive -Path temp
42+
Add-LocationToPSConfigFile -PSDriveName temp
4343
Sets the default location to the 'temp' PSDrive when the config is invoked.
4444

4545
### EXAMPLE 2
4646

47-
Add-LocationToPSConfigFile -LocationType Folder -Path c:\temp
48-
Sets the default location to the 'c:\temp' folder when the config is invoked.
47+
Add-LocationToPSConfigFile -FolderPath C:\temp
48+
Sets the default location to the 'C:\temp' folder when the config is invoked.
4949

5050
## PARAMETERS
5151

5252
### -FolderPath
5353

54-
{{ Fill FolderPath Description }}
54+
The path to the folder to set as the default location.
55+
Must be a valid directory.
56+
Use this parameter if you want to set a filesystem folder as the start-up location.
5557

5658
```yaml
5759
Type: DirectoryInfo
@@ -94,7 +96,9 @@ HelpMessage: ''
9496
9597
### -PSDriveName
9698
97-
{{ Fill PSDriveName Description }}
99+
The name of the PowerShell drive to set as the default location.
100+
Must be a valid PSDrive.
101+
Use this parameter if you want to set a PSDrive as the start-up location.
98102
99103
```yaml
100104
Type: String
@@ -134,5 +138,4 @@ Use this to ensure your PowerShell session always starts in the correct director
134138
135139
## RELATED LINKS
136140
137-
{{ Fill in the related links here }}
138-
141+
- [](https://smitpi.github.io/PSConfigFile/Add-LocationToPSConfigFile)

0 commit comments

Comments
 (0)