File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed
Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change 2323 run : |
2424 Write-Host "Installing MSMQ feature..."
2525 Enable-WindowsOptionalFeature -Online -FeatureName MSMQ-Server -All -NoRestart
26- Enable-WindowsOptionalFeature -Online -FeatureName MSMQ-HTTP -All -NoRestart
2726 Write-Host "MSMQ installation completed."
28- Get-Service -Name MSMQ | Format-List *
27+
28+ Write-Host "Starting MSMQ service..."
29+ Start-Service -Name MSMQ
30+ Get-Service -Name MSMQ
31+
32+ Write-Host "Creating test queue..."
33+ [System.Reflection.Assembly]::LoadWithPartialName("System.Messaging") | Out-Null
34+ $queuePath = ".\Private$\myQueue"
35+ if (-not [System.Messaging.MessageQueue]::Exists($queuePath)) {
36+ [System.Messaging.MessageQueue]::Create($queuePath)
37+ Write-Host "Queue created: $queuePath"
38+ } else {
39+ Write-Host "Queue already exists: $queuePath"
40+ }
2941
3042 - name : Setup .NET
3143 uses : actions/setup-dotnet@v4
You can’t perform that action at this time.
0 commit comments