You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Output/0.1.40/en-US/about_PSConfigFile.help.txt
-1Lines changed: 0 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,6 @@ Functions in this module:
22
22
New-PSConfigFile -- Creates a new PSConfigFile XML configuration file to store your PowerShell environment settings.
23
23
Remove-ConfigFromPSConfigFile -- Removes a specific item (variable, drive, function, command, credential, default, or location) from the PSConfigFile configuration.
24
24
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.
26
25
Update-PSConfigFileCredentials -- Updates or renews credentials and encryption certificates stored in your PSConfigFile configuration.
Copy file name to clipboardExpand all lines: PSConfigFile/Public/Add-LocationToPSConfigFile.ps1
+12-17Lines changed: 12 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -38,14 +38,6 @@ Updated [13/11/2021_16:30] Added Function Script
38
38
39
39
40
40
41
-
42
-
43
-
44
-
45
-
46
-
47
-
48
-
49
41
<#
50
42
51
43
.DESCRIPTION
@@ -60,29 +52,32 @@ Add a start-up location to the config file
60
52
Adds a default start-up location (folder or PSDrive) to the PSConfigFile configuration.
61
53
62
54
.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.
64
56
65
-
.PARAMETERLocationType
66
-
Specifies the type of location to add. Accepts 'PSDrive' for a PowerShell drive or 'Folder' for a filesystem path.
57
+
.PARAMETERPSDriveName
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.
67
59
68
-
.PARAMETERPath
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
+
.PARAMETERFolderPath
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.
70
62
71
63
.PARAMETERForce
72
64
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.
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.
81
73
82
74
.NOTES
83
75
Author: Pierre Smit
84
76
Website: https://smitpi.github.io/PSConfigFile
85
77
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.
Copy file name to clipboardExpand all lines: README.md
-1Lines changed: 0 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -60,5 +60,4 @@ You can execute this config automatically when your profile loads, or manually a
60
60
-[`New-PSConfigFile`](https://smitpi.github.io/PSConfigFile/New-PSConfigFile) -- Creates a new PSConfigFile XML configuration file to store your PowerShell environment settings.
61
61
-[`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.
62
62
-[`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.
64
63
-[`Update-PSConfigFileCredentials`](https://smitpi.github.io/PSConfigFile/Update-PSConfigFileCredentials) -- Updates or renews credentials and encryption certificates stored in your PSConfigFile configuration.
0 commit comments