Transcript.txt
**********************
PowerShell transcript start Start time: 20220323141305 Username: LAP70231629\Gebruiker RunAs User: LAP70231629\Gebruiker Configuration Name: Machine: LAP70231629 (Microsoft Windows NT 10.0.18363.0) Host Application: C:\Program Files\PowerShell\7\pwsh.dll -WorkingDirectory ~ Process ID: 11200 PSVersion: 7.2.1 PSEdition: Core GitCommitId: 7.2.1 OS: Microsoft Windows 10.0.18363 Platform: Win32NT PSCompatibleVersions: 1.0, 2.0, 3.0, 4.0, 5.0, 5.1.10032.0, 6.0.0, 6.1.0, 6.2.0, 7.0.0, 7.1.0, 7.2.1 PSRemotingProtocolVersion: 2.3 SerializationVersion: 1.1.0.1 WSManStackVersion: 3.0 ********************** WARNING: For better obscurity, use a secure string for input. PS C:\Users\Gebruiker\Scripts\HiddenString> TerminatingError(MyScript): "Cannot process argument transformation on parameter 'Object'. Cannot convert value "System.Object[]" to type "HiddenString". Error: "Cannot convert argument "Characters", with value: "System.Object[]", for "Add" to type "System.Char[]": "Cannot convert value "Unsecure plain text password" to type "System.Char". Error: "String must be exactly one character long."""" >> TerminatingError(MyScript): "Cannot process argument transformation on parameter 'Object'. Cannot convert value "System.Object[]" to type "HiddenString". Error: "Cannot convert argument "Characters", with value: "System.Object[]", for "Add" to type "System.Char[]": "Cannot convert value "Unsecure plain text password" to type "System.Char". Error: "String must be exactly one character long."""" [-] Join-Object.General usage.Hidden parameter 11ms (10ms|1ms) FormatException: String must be exactly one character long. PSInvalidCastException: Cannot convert value "Unsecure plain text password" to type "System.Char". Error: "String must be exactly one character long." MethodException: Cannot convert argument "Characters", with value: "System.Object[]", for "Add" to type "System.Char[]": "Cannot convert value "Unsecure plain text password" to type "System.Char". Error: "String must be exactly one character long."" PSInvalidCastException: Cannot convert value "System.Object[]" to type "HiddenString". Error: "Cannot convert argument "Characters", with value: "System.Object[]", for "Add" to type "System.Char[]": "Cannot convert value "Unsecure plain text password" to type "System.Char". Error: "String must be exactly one character long.""" ArgumentTransformationMetadataException: Cannot convert value "System.Object[]" to type "HiddenString". Error: "Cannot convert argument "Characters", with value: "System.Object[]", for "Add" to type "System.Char[]": "Cannot convert value "Unsecure plain text password" to type "System.Char". Error: "String must be exactly one character long.""" ParameterBindingArgumentTransformationException: Cannot process argument transformation on parameter 'Object'. Cannot convert value "System.Object[]" to type "HiddenString". Error: "Cannot convert argument "Characters", with value: "System.Object[]", for "Add" to type "System.Char[]": "Cannot convert value "Unsecure plain text password" to type "System.Char". Error: "String must be exactly one character long.""" at <ScriptBlock>, C:\Users\Gebruiker\Scripts\HiddenString\HiddenString.Tests.ps1:41 Tests completed in 66ms Tests Passed: 0, Failed: 1, Skipped: 0 NotRun: 0 PS C:\Users\Gebruiker\Scripts\HiddenString> $P = [HiddenString]'Unsecure plain text password' WARNING: For better obscurity, use a secure string for input. PS C:\Users\Gebruiker\Scripts\HiddenString> $P = [HiddenString]'Unsecure plain text password', $True WARNING: For better obscurity, use a secure string for input. PS C:\Users\Gebruiker\Scripts\HiddenString> $P = [HiddenString]'Unsecure plain text password', $False WARNING: For better obscurity, use a secure string for input. PS C:\Users\Gebruiker\Scripts\HiddenString> $P = [HiddenString]('Unsecure plain text password', $False) WARNING: For better obscurity, use a secure string for input. InvalidArgument: Cannot convert value "System.Object[]" to type "HiddenString". Error: "Cannot convert argument "Characters", with value: "System.Object[]", for "Add" to type "System.Char[]": "Cannot convert value "Unsecure plain text password" to type "System.Char". Error: "String must be exactly one character long.""" InvalidArgument: Cannot convert value "System.Object[]" to type "HiddenString". Error: "Cannot convert argument "Characters", with value: "System.Object[]", for "Add" to type "System.Char[]": "Cannot convert value "Unsecure plain text password" to type "System.Char". Error: "String must be exactly one character long.""" PS C:\Users\Gebruiker\Scripts\HiddenString> $P = [HiddenString]('Unsecure plain text password', $True) WARNING: For better obscurity, use a secure string for input. InvalidArgument: Cannot convert value "System.Object[]" to type "HiddenString". Error: "Cannot convert argument "Characters", with value: "System.Object[]", for "Add" to type "System.Char[]": "Cannot convert value "Unsecure plain text password" to type "System.Char". Error: "String must be exactly one character long.""" InvalidArgument: Cannot convert value "System.Object[]" to type "HiddenString". Error: "Cannot convert argument "Characters", with value: "System.Object[]", for "Add" to type "System.Char[]": "Cannot convert value "Unsecure plain text password" to type "System.Char". Error: "String must be exactly one character long.""" PS C:\Users\Gebruiker\Scripts\HiddenString> $P = [HiddenString]::new('Unsecure plain text password', $True) PS C:\Users\Gebruiker\Scripts\HiddenString> $p HiddenString PS C:\Users\Gebruiker\Scripts\HiddenString> $Confidential = 'Confidential Information' PS C:\Users\Gebruiker\Scripts\HiddenString> $SecureString = [SecureString]::new() PS C:\Users\Gebruiker\Scripts\HiddenString> foreach ($Character in [Char[]]$Confidential) { $SecureString.AppendChar($Character) } PS C:\Users\Gebruiker\Scripts\HiddenString> $Base64 = [Convert]::ToBase64String(([regex]::matches(($SecureString |ConvertFrom-SecureString), '.{2}')).foreach{ [byte]"0x$_" }) PS C:\Users\Gebruiker\Scripts\HiddenString> Write-Host 'Base64:' $Base64 Base64: AQAAANCMnd8BFdERjHoAwE/Cl+sBAAAAVNHJrsxJcEyIKLld+U44qAAAAAACAAAAAAAQZgAAAAEAACAAAADqwdt1qzSssx5XE2hpZvh5oCa+BIeVFxdr7Vh+WZD3agAAAAAOgAAAAAIAACAAAADX9hdq/I+w5SBhSQ3/odPZKivZFLz9k+6TWqfvWyfEJkAAAAAc7hal4f9BoPLGtlQOc1uqKYKN9q6+3UYD9p2N5WgIrLKXtHNILjFhQ3kKGWxwQ3h5q8nf2e5fL1ndGfozJhrgQAAAAE3K+DiW3fWi2zwhRfuwLMJjeQDbmCBVaAxhe9BAZZgqmnu/mWy6vBC9DSXPmVDSl06kQ13kL+mh1v+rWvDImh8= PS C:\Users\Gebruiker\Scripts\HiddenString> new-guid Guid ---- 56de5284-3332-4f60-a5c7-3bf18ec8ab1b PS C:\Users\Gebruiker\Scripts\HiddenString> $Confidential = 'oy2i5gnhyvclu5mty67q2ryuojypkrjetk2bfn7a6ppnoe' PS C:\Users\Gebruiker\Scripts\HiddenString> $SecureString = [SecureString]::new() PS C:\Users\Gebruiker\Scripts\HiddenString> foreach ($Character in [Char[]]$Confidential) { $SecureString.AppendChar($Character) } PS C:\Users\Gebruiker\Scripts\HiddenString> $Base64 = [Convert]::ToBase64String(([regex]::matches(($SecureString |ConvertFrom-SecureString), '.{2}')).foreach{ [byte]"0x$_" }) PS C:\Users\Gebruiker\Scripts\HiddenString> Write-Host 'Base64:' $Base64 Base64: AQAAANCMnd8BFdERjHoAwE/Cl+sBAAAAVNHJrsxJcEyIKLld+U44qAAAAAACAAAAAAAQZgAAAAEAACAAAACLfN/SFcMkB3B3npO8K4cm/1n5NO7FBvgBR4sE427MYgAAAAAOgAAAAAIAACAAAAC6buF68Ptl4lfGdDRgtT+9SpX3j61s+P8THhsNW1PCd2AAAABDH4yOIKXVOOn6VJqwenKXiC+jgQYQR3e25RmtZRONu+w/AdjQG8mYvDldGDy7iMC6VL+Y+HarVoNd0P7L4WPbKTP/NSTO6J1/7MF42/yPlodmi3Wv6YCsecVg+5MaVVZAAAAADPCDD61hc0QhW5ndN5N26KG/pqYPqFJGJrX5P9tlvyfpiTyDj5yc3B1XMxKlApTL0G3AVK4T7xmJHrMLXbzzvA== PS C:\Users\Gebruiker\Scripts\HiddenString> $Base64 |Copy Copy-Item: Cannot find path 'C:\Users\Gebruiker\Scripts\HiddenString\AQAAANCMnd8BFdERjHoAwE\Cl+sBAAAAVNHJrsxJcEyIKLld+U44qAAAAAACAAAAAAAQZgAAAAEAACAAAACLfN\SFcMkB3B3npO8K4cm\1n5NO7FBvgBR4sE427MYgAAAAAOgAAAAAIAACAAAAC6buF68Ptl4lfGdDRgtT+9SpX3j61s+P8THhsNW1PCd2AAAABDH4yOIKXVOOn6VJqwenKXiC+jgQYQR3e25RmtZRONu+w\AdjQG8mYvDldGDy7iMC6VL+Y+HarVoNd0P7L4WPbKTP\NSTO6J1\7MF42\yPlodmi3Wv6YCsecVg+5MaVVZAAAAADPCDD61hc0QhW5ndN5N26KG\pqYPqFJGJrX5P9tlvyfpiTyDj5yc3B1XMxKlApTL0G3AVK4T7xmJHrMLXbzzvA==' because it does not exist. Copy-Item: Cannot find path 'C:\Users\Gebruiker\Scripts\HiddenString\AQAAANCMnd8BFdERjHoAwE\Cl+sBAAAAVNHJrsxJcEyIKLld+U44qAAAAAACAAAAAAAQZgAAAAEAACAAAACLfN\SFcMkB3B3npO8K4cm\1n5NO7FBvgBR4sE427MYgAAAAAOgAAAAAIAACAAAAC6buF68Ptl4lfGdDRgtT+9SpX3j61s+P8THhsNW1PCd2AAAABDH4yOIKXVOOn6VJqwenKXiC+jgQYQR3e25RmtZRONu+w\AdjQG8mYvDldGDy7iMC6VL+Y+HarVoNd0P7L4WPbKTP\NSTO6J1\7MF42\yPlodmi3Wv6YCsecVg+5MaVVZAAAAADPCDD61hc0QhW5ndN5N26KG\pqYPqFJGJrX5P9tlvyfpiTyDj5yc3B1XMxKlApTL0G3AVK4T7xmJHrMLXbzzvA==' because it does not exist. PS C:\Users\Gebruiker\Scripts\HiddenString> $Base64 |Clip PS C:\Users\Gebruiker\Scripts\HiddenString> $Base64 = 'AQAAANCMnd8BFdERjHoAwE/Cl+sBAAAAVNHJrsxJcEyIKLld+U44qAAAAAACAAAAAAAQZgAAAAEAACAAAACLfN/SFcMkB3B3npO8K4cm/1n5NO7FBvgBR4sE427MYgAAAAAOgAAAAAIAACAAAAC6buF68Ptl4lfGdDRgtT+9SpX3j61s+P8THhsNW1PCd2AAAABDH4yOIKXVOOn6VJqwenKXiC+jgQYQR3e25RmtZRONu+w/AdjQG8mYvDldGDy7iMC6VL+Y+HarVoNd0P7L4WPbKTP/NSTO6J1/7MF42/yPlodmi3Wv6YCsecVg+5MaVVZAAAAADPCDD61hc0QhW5ndN5N26KG/pqYPqFJGJrX5P9tlvyfpiTyDj5yc3B1XMxKlApTL0G3AVK4T7xmJHrMLXbzzvA==' PS C:\Users\Gebruiker\Scripts\HiddenString> $NuGetApiKey = [HiddenString]::New([System.Convert]::FromBase64String($Base64), $True) PS C:\Users\Gebruiker\Scripts\HiddenString> Publish-Script -Path .\HiddenString.ps1 -NuGetApiKey $NuGetApiKey -Verbose VERBOSE: Acquiring providers for assembly: C:\program files\powershell\7\Modules\PackageManagement\coreclr\netstandard2.0\Microsoft.PackageManagement.CoreProviders.dll VERBOSE: Acquiring providers for assembly: C:\program files\powershell\7\Modules\PackageManagement\coreclr\netstandard2.0\Microsoft.PackageManagement.MetaProvider.PowerShell.dll VERBOSE: Acquiring providers for assembly: C:\program files\powershell\7\Modules\PackageManagement\coreclr\netstandard2.0\Microsoft.PackageManagement.NuGetProvider.dll VERBOSE: Acquiring providers for assembly: C:\program files\powershell\7\Modules\PackageManagement\coreclr\netstandard2.0\Microsoft.PackageManagement.ArchiverProviders.dll NuGet.exe is required to continue This version of PowerShellGet requires minimum version '4.1.0' of NuGet.exe to publish an item to the NuGet-based repositories. NuGet.exe must be available in 'C:\ProgramData\Microsoft\Windows\PowerShell\PowerShellGet\' or 'C:\Users\Gebruiker\AppData\Local\Microsoft\Windows\PowerShell\PowerShellGet\', or under one of the paths specified in PATH environment variable value. NuGet.exe can be downloaded from https://aka.ms/psget-nugetexe. For more information, see https://aka.ms/installing-powershellget . Do you want PowerShellGet to install the latest version of NuGet.exe now? &Yes &No &Suspend Y VERBOSE: Installing NuGet.exe. VERBOSE: GET with 0-byte payload VERBOSE: received 7034784-byte response of content type application/x-msdownload VERBOSE: Repository details, Name = 'PSGallery', Location = 'https://www.powershellgallery.com/api/v2'; IsTrusted = 'False'; IsRegistered = 'True'. VERBOSE: Repository details, Name = 'PSGallery', Location = 'https://www.powershellgallery.com/api/v2'; IsTrusted = 'False'; IsRegistered = 'True'. VERBOSE: Publish Location:'https://www.powershellgallery.com/api/v2/package/'. VERBOSE: Repository details, Name = 'PSGallery', Location = 'https://www.powershellgallery.com/api/v2'; IsTrusted = 'False'; IsRegistered = 'True'. VERBOSE: Using the provider 'PowerShellGet' for searching packages. VERBOSE: Using the specified source names : 'PSGallery'. VERBOSE: Getting the provider object for the PackageManagement Provider 'NuGet'. VERBOSE: The specified Location is 'https://www.powershellgallery.com/api/v2' and PackageManagementProvider is 'NuGet'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='HiddenString'' for ''. VERBOSE: Total package yield:'0' for the specified package 'HiddenString'. VERBOSE: Repository details, Name = 'PSGallery', Location = 'https://www.powershellgallery.com/api/v2'; IsTrusted = 'False'; IsRegistered = 'True'. VERBOSE: Using the provider 'PowerShellGet' for searching packages. VERBOSE: Using the specified source names : 'PSGallery'. VERBOSE: Getting the provider object for the PackageManagement Provider 'NuGet'. VERBOSE: The specified Location is 'https://www.powershellgallery.com/api/v2/items/psscript' and PackageManagementProvider is 'NuGet'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/items/psscript/FindPackagesById()?id='HiddenString'' for ''. VERBOSE: Total package yield:'0' for the specified package 'HiddenString'. VERBOSE: Performing the operation "Publish-Script" on target "Version '0.0.3' of script 'HiddenString'". VERBOSE: Calling Publish-PSArtifactUtility VERBOSE: Calling New-NuspecFile VERBOSE: Calling New-NugetPackage VERBOSE: Calling C:\Users\Gebruiker\AppData\Local\Microsoft\Windows\PowerShell\PowerShellGet\NuGet.exe pack "C:\Users\Gebruiker\AppData\Local\Temp\1308738280\HiddenString\HiddenString.nuspec" -outputdirectory "C:\Users\Gebruiker\AppData\Local\Temp\1308738280\HiddenString" -noninteractive VERBOSE: C:\Users\Gebruiker\AppData\Local\Microsoft\Windows\PowerShell\PowerShellGet\NuGet.exe output: VERBOSE: Attempting to build package from 'HiddenString.nuspec'. VERBOSE: WARNING: NU5110: The script file 'HiddenString.ps1' is outside the 'tools' folder and hence will not be executed during installation of this package. Move it into the 'tools' folder. VERBOSE: WARNING: NU5111: The script file 'HiddenString.ps1' is not recognized by NuGet and hence will not be executed during installation of this package. Rename it to install.ps1, uninstall.ps1 or init.ps1 and place it directly under 'tools'. VERBOSE: Successfully created package 'C:\Users\Gebruiker\AppData\Local\Temp\1308738280\HiddenString\HiddenString.0.0.3.nupkg'. VERBOSE: VERBOSE: finished running C:\Users\Gebruiker\AppData\Local\Microsoft\Windows\PowerShell\PowerShellGet\NuGet.exe with exit code 0 VERBOSE: Created Nuget Package C:\Users\Gebruiker\AppData\Local\Temp\1308738280\HiddenString\HiddenString.0.0.3.nupkg VERBOSE: Successfully created nuget package at C:\Users\Gebruiker\AppData\Local\Temp\1308738280\HiddenString\HiddenString.0.0.3.nupkg VERBOSE: Calling Publish-NugetPackage -NupkgPath C:\Users\Gebruiker\AppData\Local\Temp\1308738280\HiddenString\HiddenString.0.0.3.nupkg -Destination https://www.powershellgallery.com/api/v2/package/ -NugetExePath C:\Users\Gebruiker\AppData\Local\Microsoft\Windows\PowerShell\PowerShellGet\NuGet.exe -UseDotnetCli:False PS C:\Users\Gebruiker\Scripts\HiddenString> TerminatingError(): "nuget.exe failed to push Statuscode van antwoord geeft geen succes aan: 403 (The specified API key is invalid, has expired, or does not have permission to access the specified package.). " >> TerminatingError(Publish-PSArtifactUtility): "The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: Failed to publish script 'HiddenString': 'nuget.exe failed to push Statuscode van antwoord geeft geen succes aan: 403 (The specified API key is invalid, has expired, or does not have permission to access the specified package.). '." >> TerminatingError(Publish-PSArtifactUtility): "The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: Failed to publish script 'HiddenString': 'nuget.exe failed to push Statuscode van antwoord geeft geen succes aan: 403 (The specified API key is invalid, has expired, or does not have permission to access the specified package.). '." PS C:\Users\Gebruiker\Scripts\HiddenString> TerminatingError(Publish-PSArtifactUtility): "The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: Failed to publish script 'HiddenString': 'nuget.exe failed to push Statuscode van antwoord geeft geen succes aan: 403 (The specified API key is invalid, has expired, or does not have permission to access the specified package.). '." >> TerminatingError(Publish-PSArtifactUtility): "The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: Failed to publish script 'HiddenString': 'nuget.exe failed to push Statuscode van antwoord geeft geen succes aan: 403 (The specified API key is invalid, has expired, or does not have permission to access the specified package.). '." The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: Failed to publish script 'HiddenString': 'nuget.exe failed to push Statuscode van antwoord geeft geen succes aan: 403 (The specified API key is invalid, has expired, or does not have permission to access the specified package.). '. Write-Error: Failed to publish script 'HiddenString': 'nuget.exe failed to push Statuscode van antwoord geeft geen succes aan: 403 (The specified API key is invalid, has expired, or does not have permission to access the specified package.). '. PS C:\Users\Gebruiker\Scripts\HiddenString> $Base64 = 'AQAAANCMnd8BFdERjHoAwE/Cl+sBAAAAVNHJrsxJcEyIKLld+U44qAAAAAACAAAAAAAQZgAAAAEAACAAAACLfN/SFcMkB3B3npO8K4cm/1n5NO7FBvgBR4sE427MYgAAAAAOgAAAAAIAACAAAAC6buF68Ptl4lfGdDRgtT+9SpX3j61s+P8THhsNW1PCd2AAAABDH4yOIKXVOOn6VJqwenKXiC+jgQYQR3e25RmtZRONu+w/AdjQG8mYvDldGDy7iMC6VL+Y+HarVoNd0P7L4WPbKTP/NSTO6J1/7MF42/yPlodmi3Wv6YCsecVg+5MaVVZAAAAADPCDD61hc0QhW5ndN5N26KG/pqYPqFJGJrX5P9tlvyfpiTyDj5yc3B1XMxKlApTL0G3AVK4T7xmJHrMLXbzzvA==' PS C:\Users\Gebruiker\Scripts\HiddenString> $NuGetApiKey = [HiddenString]::New([System.Convert]::FromBase64String($Base64), $True) PS C:\Users\Gebruiker\Scripts\HiddenString> $NuGetApiKey HiddenString PS C:\Users\Gebruiker\Scripts\HiddenString> $Confidential = 'oy2c2eslloxsolmddxgaljf5vyzcb6runm5tmgnyeczs44' PS C:\Users\Gebruiker\Scripts\HiddenString> $SecureString = [SecureString]::new() PS C:\Users\Gebruiker\Scripts\HiddenString> foreach ($Character in [Char[]]$Confidential) { $SecureString.AppendChar($Character) } PS C:\Users\Gebruiker\Scripts\HiddenString> $Base64 = [Convert]::ToBase64String(([regex]::matches(($SecureString |ConvertFrom-SecureString), '.{2}')).foreach{ [byte]"0x$_" }) PS C:\Users\Gebruiker\Scripts\HiddenString> Write-Host 'Base64:' $Base64 Base64: AQAAANCMnd8BFdERjHoAwE/Cl+sBAAAAVNHJrsxJcEyIKLld+U44qAAAAAACAAAAAAAQZgAAAAEAACAAAAAAKwxMPh1RjAhxUwMtaCP3HvyAwEpIAIzaMwBChvvA/wAAAAAOgAAAAAIAACAAAAAZo9FTonR2BPDrNzALJ1D91D+/3Tt/XfD/SGJlPjYfzGAAAADcfSRdYmN0n1KeasSF0JzhswkqZOMc2VVmMvLMplDlMxFUrEW9GXQRM7611WPwvWT8Bm6s1iAER3jspRDJtY+0lOlQcxpdA3HWbFdtezJTzrgiOMOzREnPrzKCwwnOQfdAAAAA4ffh/1+bgmHpmZQATfClyfK9e9icYcuQ+bxsUK9w2i6mzmiT6ogQ9sJO3L+WyvuIM7mk9Id3qdx4YmsPAXazug== PS C:\Users\Gebruiker\Scripts\HiddenString> $Base64 |Clip PS C:\Users\Gebruiker\Scripts\HiddenString> Publish-Script -Path .\HiddenString.ps1 -NuGetApiKey $NuGetApiKey -Verbose VERBOSE: Repository details, Name = 'PSGallery', Location = 'https://www.powershellgallery.com/api/v2'; IsTrusted = 'False'; IsRegistered = 'True'. VERBOSE: Repository details, Name = 'PSGallery', Location = 'https://www.powershellgallery.com/api/v2'; IsTrusted = 'False'; IsRegistered = 'True'. VERBOSE: Publish Location:'https://www.powershellgallery.com/api/v2/package/'. PS C:\Users\Gebruiker\Scripts\HiddenString> TerminatingError(): "The pipeline has been stopped." >> TerminatingError(Test-ScriptFileInfo): "PSScriptInfo is not specified in the script file 'C:\Users\Gebruiker\Scripts\HiddenString\HiddenString.ps1'. You can use the Update-ScriptFileInfo with -Force or New-ScriptFileInfo cmdlet to add the PSScriptInfo to the script file." Test-ScriptFileInfo: PSScriptInfo is not specified in the script file 'C:\Users\Gebruiker\Scripts\HiddenString\HiddenString.ps1'. You can use the Update-ScriptFileInfo with -Force or New-ScriptFileInfo cmdlet to add the PSScriptInfo to the script file. Test-ScriptFileInfo: PSScriptInfo is not specified in the script file 'C:\Users\Gebruiker\Scripts\HiddenString\HiddenString.ps1'. You can use the Update-ScriptFileInfo with -Force or New-ScriptFileInfo cmdlet to add the PSScriptInfo to the script file. PS C:\Users\Gebruiker\Scripts\HiddenString> TerminatingError(Get-Command): "Cannot validate argument on parameter 'Name'. The argument is null, empty, or an element of the argument collection contains a null value. Supply a collection that does not contain any null values and then try the command again." PS C:\Users\Gebruiker\Scripts\HiddenString> .\Publish.ps1 VERBOSE: Repository details, Name = 'PSGallery', Location = 'https://www.powershellgallery.com/api/v2'; IsTrusted = 'False'; IsRegistered = 'True'. VERBOSE: Repository details, Name = 'PSGallery', Location = 'https://www.powershellgallery.com/api/v2'; IsTrusted = 'False'; IsRegistered = 'True'. VERBOSE: Publish Location:'https://www.powershellgallery.com/api/v2/package/'. VERBOSE: Loading module from path 'C:\Users\Gebruiker\Scripts\HiddenString\HiddenString.ps1'. VERBOSE: Module 'HiddenString' was found in 'C:\Users\Gebruiker\Scripts\HiddenString'. |