{"id":15064115,"url":"https://github.com/snikalaichyk/cmsmq","last_synced_at":"2025-10-05T00:31:04.376Z","repository":{"id":57668152,"uuid":"43429006","full_name":"SNikalaichyk/cMsmq","owner":"SNikalaichyk","description":"The cMsmq DSC resource module.","archived":true,"fork":false,"pushed_at":"2018-02-02T16:23:55.000Z","size":46,"stargazers_count":12,"open_issues_count":3,"forks_count":3,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-09-01T13:24:40.410Z","etag":null,"topics":["dsc","dsc-resources","msmq","powershell","powershell-dsc","powershell-modules"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SNikalaichyk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-09-30T11:25:02.000Z","updated_at":"2024-08-23T15:33:59.000Z","dependencies_parsed_at":"2022-09-07T17:34:39.985Z","dependency_job_id":null,"html_url":"https://github.com/SNikalaichyk/cMsmq","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SNikalaichyk/cMsmq","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SNikalaichyk%2FcMsmq","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SNikalaichyk%2FcMsmq/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SNikalaichyk%2FcMsmq/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SNikalaichyk%2FcMsmq/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SNikalaichyk","download_url":"https://codeload.github.com/SNikalaichyk/cMsmq/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SNikalaichyk%2FcMsmq/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278395874,"owners_count":25979685,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-04T02:00:05.491Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dsc","dsc-resources","msmq","powershell","powershell-dsc","powershell-modules"],"created_at":"2024-09-25T00:11:41.985Z","updated_at":"2025-10-05T00:31:04.025Z","avatar_url":"https://github.com/SNikalaichyk.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"﻿# cMsmq\n\nThe **cMsmq** module contains DSC resources for managing private MSMQ queues.\n\n*Supports Windows Server 2008 R2 and later.*\n\nYou can also download this module from the [PowerShell Gallery](https://www.powershellgallery.com/packages/cMsmq/).\n\n## Resources\n\n### cMsmqQueue\n\n* **Ensure**: Indicates whether the queue exists.\n* **Name**: Indicates the name of the queue.\n* **Transactional**: Indicates whether the queue is transactional.\n\n  \u003e **Note:** If there is already a queue with the same name but of different type, an error will be thrown.\n\n* **Authenticate**: Indicates whether the queue accepts only authenticated messages.\n* **Journaling**: Indicates whether received messages are copied to the journal queue.\n* **JournalQuota**: Indicates the maximum size of the journal queue in KB.\n* **Label**: Indicates the description of the queue.\n* **PrivacyLevel**: Indicates the privacy level associated with the queue.\n* **QueueQuota**: Indicates the maximum size of the queue in KB.\n\n### cMsmqQueuePermissionEntry\n\n* **Ensure**: Indicates whether the permission entry exists. The default value is `Present`. Set this property to `Absent` to ensure that any access rights the principal has are revoked.\n* **Name**: Indicates the name of the queue.\n* **Principal**: Indicates the identity of the principal. Valid name formats: Down-Level Logon Name; User Principal Name; sAMAccountName; Security Identifier.\n* **AccessRights**: Indicates the access rights to be granted to the principal. Specify one or more values from the [System.Messaging.MessageQueueAccessRights](https://msdn.microsoft.com/en-us/library/system.messaging.messagequeueaccessrights%28v=vs.110%29.aspx) enumeration type. Multiple values can be specified by using a comma-separated string.\n\n\u003e **Note:**\n\u003e If the **Ensure** property is set to `Absent`, all the other non-mandatory properties are ignored. Applies to both the **cMsmqQueue** and the **cMsmqQueuePermissionEntry** resources.\n\n## Versions\n\n### 1.0.3 (November 24, 2015)\n\n* Minor bug-fixing update.\n\n### 1.0.2 (October 15, 2015)\n\n* Minor update.\n\n### 1.0.1 (October 2, 2015)\n\n* Module manifest updated.\n\n### 1.0.0 (October 1, 2015)\n\n* Initial release with the following resources:\n  - **cMsmqQueue**;\n  - **cMsmqQueuePermissionEntry**.\n\n## Examples\n\nThis configuration will install Microsoft Message Queuing (MSMQ), create several private queues, and assign permissions on them.\n\n```powershell\n\nconfiguration Sample_cMsmq\n{\n    Import-DscResource -ModuleName PSDesiredStateConfiguration\n    Import-DscResource -ModuleName cMsmq\n\n    # Ensure the Message Queueing is installed.\n    WindowsFeature MSMQ\n    {\n        Ensure = 'Present'\n        Name = 'MSMQ'\n    }\n\n    # Ensure the MSMQ service is running.\n    Service MsmqService\n    {\n        Name = 'MSMQ'\n        State = 'Running'\n        DependsOn = '[WindowsFeature]MSMQ'\n    }\n\n    # Ensure the specified private queue exists.\n    # All the parameters will be either left unchanged or, if the queue is to be created, set to their default values.\n    cMsmqQueue Queue1\n    {\n        Ensure = 'Present'\n        Name = 'Queue-1'\n        DependsOn = '[Service]MsmqService'\n    }\n\n    # Ensure the specified transactional private queue exists.\n    # If there is already a private queue with the same name but of different type, an error will be thrown.\n    cMsmqQueue Queue2\n    {\n        Ensure = 'Present'\n        Name = 'Queue-2'\n        Transactional = $true\n        Authenticate = $true\n        Journaling = $true\n        JournalQuota = 65536\n        Label = 'Created by the cMsmqQueue DSC resource'\n        PrivacyLevel = 'Body'\n        QueueQuota = 262144\n        DependsOn = '[Service]MsmqService'\n    }\n\n    # Ensure the specified private queue does not exist.\n    # If provided, all the other non-mandatory properties will be ignored.\n    cMsmqQueue Queue3\n    {\n        Ensure = 'Absent'\n        Name = 'Queue-3'\n        DependsOn = '[Service]MsmqService'\n    }\n\n    # Grant Full Control permission level for the specified principal.\n    cMsmqQueuePermissionEntry QueuePermission1\n    {\n        Ensure = 'Present'\n        Name = 'Queue-1'\n        Principal = $Env:UserDomain, $Env:UserName -join '\\'\n        AccessRights = 'FullControl'\n        DependsOn = '[cMsmqQueue]Queue1'\n    }\n\n    # Grant multiple access rights for the specified principal.\n    cMsmqQueuePermissionEntry QueuePermission2\n    {\n        Ensure = 'Present'\n        Name = 'Queue-2'\n        Principal = 'BUILTIN\\Administrators'\n        AccessRights = 'ChangeQueuePermissions', 'DeleteQueue'\n        DependsOn = '[cMsmqQueue]Queue2'\n    }\n\n    # Revoke all permissions for the specified principal.\n    cMsmqQueuePermissionEntry QueuePermission3\n    {\n        Ensure = 'Absent'\n        Name = 'Queue-2'\n        Principal = 'BUILTIN\\Users'\n        DependsOn = '[cMsmqQueue]Queue2'\n    }\n}\n\nSample_cMsmq -OutputPath \"$Env:SystemDrive\\Sample_cMsmq\"\n\nStart-DscConfiguration -Path \"$Env:SystemDrive\\Sample_cMsmq\" -Force -Verbose -Wait\n\nGet-DscConfiguration\n\n\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsnikalaichyk%2Fcmsmq","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsnikalaichyk%2Fcmsmq","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsnikalaichyk%2Fcmsmq/lists"}