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
Created [04/10/2021_19:05] Initial Script Creating
186
-
Updated [05/10/2021_08:30] Spit into more functions
187
-
Updated [08/10/2021_20:51] Getting ready to upload
188
-
Updated [14/10/2021_19:31] Added PSDrive Script
189
-
Updated [13/11/2021_16:30] Added Function Script
190
-
191
-
.PRIVATEDATA
192
-
193
-
#>
194
-
195
-
196
-
197
-
198
-
199
-
200
-
201
-
202
-
203
-
<#
204
-
.SYNOPSIS
205
-
Adds a named command or script block to the PSConfigFile configuration, to be executed automatically when the config is invoked.
206
-
207
-
.DESCRIPTION
208
-
Use this function to store custom commands or script blocks in your configuration file. These commands will be executed every time the config file is invoked using Invoke-PSConfigFile. This is useful for automating environment setup, running startup tasks, or ensuring certain commands always run in your PowerShell environment.
209
-
210
-
.PARAMETERScriptBlockName
211
-
The unique name to assign to the script block. This name is used to identify and manage the command within the config file.
212
-
213
-
.PARAMETERScriptBlock
214
-
The PowerShell command(s) or script block to be executed. Provide as a string. Example: "Get-ChildItem C:\\Logs | Out-File C:\\log.txt"
215
-
216
-
.PARAMETERForce
217
-
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.
Created [04/10/2021_19:05] Initial Script Creating
342
-
Updated [05/10/2021_08:30] Spit into more functions
343
-
Updated [08/10/2021_20:51] Getting ready to upload
344
-
Updated [14/10/2021_19:31] Added PSDrive Script
345
-
Updated [13/11/2021_16:30] Added Function Script
346
-
347
-
.PRIVATEDATA
348
-
349
-
#>
350
-
351
-
352
-
353
-
354
-
355
-
356
-
357
-
358
-
359
-
<#
360
-
.SYNOPSIS
361
-
Adds a named command or script block to the PSConfigFile configuration, to be executed automatically when the config is invoked.
362
-
363
-
.DESCRIPTION
364
-
Use this function to store custom commands or script blocks in your configuration file. These commands will be executed every time the config file is invoked using Invoke-PSConfigFile. This is useful for automating environment setup, running startup tasks, or ensuring certain commands always run in your PowerShell environment.
365
-
366
-
.PARAMETERScriptBlockName
367
-
The unique name to assign to the script block. This name is used to identify and manage the command within the config file.
368
-
369
-
.PARAMETERScriptBlock
370
-
The PowerShell command(s) or script block to be executed. Provide as a string. Example: "Get-ChildItem C:\\Logs | Out-File C:\\log.txt"
371
-
372
-
.PARAMETERForce
373
-
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.
0 commit comments