Project

PSPublishModule

Build, test, version, sign, and publish PowerShell modules with reusable PowerForge pipelines.

Stars 48
Forks 16
PowerShell Gallery downloads 17,213
Release v3.0.186
Language: C# Updated: 2026-11-04
Command

Update-ManagedScriptFileInfo

Module
PSPublishModule
Inputs
None

Updates PSResourceGet-compatible PSScriptInfo metadata in an existing script file.

Syntax

Update-ManagedScriptFileInfo
[-Author <String>]
[-CompanyName <String>]
[-Copyright <String>]
[-Description <String>]
[-ExternalModuleDependencies <String[]>]
[-ExternalScriptDependencies <String[]>]
[-Guid <Guid>]
[-IconUri <String>]
[-LicenseUri <String>]
[-Path] <String>
[-PrivateData <String>]
[-ProjectUri <String>]
[-ReleaseNotes <String>]
[-RemoveSignature]
[-RequiredModules <Hashtable[]>]
[-RequiredScripts <String[]>]
[-Tags <String[]>]
[-Version <String>]
[<CommonParameters>]
#
Parameter set: All Parameter Sets

Examples

Example 1

Update-ManagedScriptFileInfo -Path 'C:\Path'

Parameters

-Author String optional
Script author.
-CompanyName String optional
Company name.
Copyright text.
-Description String optional
Script description stored in comment-based help.
-ExternalModuleDependencies String[] optional
External module dependencies.
-ExternalScriptDependencies String[] optional
External script dependencies.
-Guid Guid optional
Script metadata GUID.
-IconUri String optional
Icon URI.
-LicenseUri String optional
License URI.
-Path String requiredposition: 0
Path to the script file.
-PrivateData String optional
Private data text.
-ProjectUri String optional
Project URI.
-ReleaseNotes String optional
Release notes text.
-RemoveSignature SwitchParameter optional
Remove an existing Authenticode signature block from the script body.
-RequiredModules Hashtable[] optional
Required modules as PSResourceGet-style hashtables.
-RequiredScripts String[] optional
Required script dependencies.
-Tags String[] optional
Search tags.
-Version String optional
Script version.

Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see about_CommonParameters.