Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion start-core.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ param(
)
Set-StrictMode -Version Latest
$script:Branch = 'Dev'
$ToolkitVersion = "2.6.0 (Build 5)"
$ToolkitVersion = "Work In Progress"
$GitHubRepoRawBase = @{
Dev = "https://raw.githubusercontent.com/Magnetarman/WinToolkit/refs/heads/Dev"
main = "https://raw.githubusercontent.com/Magnetarman/WinToolkit/refs/heads/main"
Expand Down Expand Up @@ -1778,6 +1778,10 @@ function Install-PspEnvironment {
$result.Changed = $true
Write-StyledMessage -Type Success -Text (Get-SourceTextLoc 'uiText.powershell7ProfileConfigured')
Write-ToolkitLog -Level 'INFO' -Message "PowerShell profile installed: $targetProfile"
$unblocked = Unblock-File -LiteralPath $targetProfile -ErrorAction SilentlyContinue
if ($unblocked) {
Write-ToolkitLog -Level 'INFO' -Message "PowerShell profile unblocked (Zone.Identifier removed): $targetProfile"
}
}
else {
$result.Success = $false
Expand Down
4 changes: 4 additions & 0 deletions start-modules/60-Module.PspEnvironment.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,10 @@ function Install-PspEnvironment {
$result.Changed = $true
Write-StyledMessage -Type Success -Text (Get-SourceTextLoc 'uiText.powershell7ProfileConfigured')
Write-ToolkitLog -Level 'INFO' -Message "PowerShell profile installed: $targetProfile"
$unblocked = Unblock-File -LiteralPath $targetProfile -ErrorAction SilentlyContinue
if ($unblocked) {
Write-ToolkitLog -Level 'INFO' -Message "PowerShell profile unblocked (Zone.Identifier removed): $targetProfile"
}
}
else {
$result.Success = $false
Expand Down