Skip to content

Commit 9f45cc2

Browse files
author
Angela Fleischmann
authored
Merge pull request #7615 from Banreet/release-cm2205-tp
add: PowerShell Cmdlet
2 parents b8f58f8 + 331b6c8 commit 9f45cc2

2 files changed

Lines changed: 143 additions & 0 deletions

File tree

Lines changed: 142 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,142 @@
1+
---
2+
author: Banreet
3+
ms.author: banreetkaur
4+
ms.prod: configuration-manager
5+
ms.technology: configmgr-core
6+
ms.topic: include
7+
ms.date: 05/17/2022
8+
ms.localizationpriority: medium
9+
---
10+
11+
## <a name="bkmk_powershell"></a> PowerShell release notes preview
12+
13+
<!--14046376-->
14+
15+
These release notes summarize changes to the Configuration Manager PowerShell cmdlets in this technical preview release.
16+
17+
For more information about PowerShell for Configuration Manager, see [Get started with Configuration Manager cmdlets](/powershell/sccm/overview).
18+
19+
### New cmdlets
20+
21+
#### Approve-CMOrchestrationGroupScript
22+
23+
Use this cmdlet to approve an orchestration group script. For more information, see [About orchestration groups in Configuration Manager](../../../../../sum/deploy-use/orchestration-groups.md).
24+
25+
```powershell
26+
$referenceOG = Get-CMOrchestrationGroup -Name "Orchestratrion group 1"
27+
$preScript = $referenceOG | Get-CMOrchestrationGroupScript -ScriptType Pre
28+
$preScript | Approve-CMOrchestrationGroupScript -Comment "Approve"
29+
30+
Approve-CMOrchestrationGroupScript -ScriptGuid $PreScript.ScriptGuid
31+
```
32+
33+
#### Deny-CMOrchestrationGroupScript
34+
35+
Use this cmdlet to deny an orchestration group script. For more information, see [About orchestration groups in Configuration Manager](../../../../../sum/deploy-use/orchestration-groups.md).
36+
37+
```powershell
38+
$referenceOG = Get-CMOrchestrationGroup -Name "Orchestratrion group 1"
39+
$preScript = $referenceOG | Get-CMOrchestrationGroupScript -ScriptType Pre
40+
$preScript | Deny-CMOrchestrationGroupScript -Comment "Deny"
41+
42+
Deny-CMOrchestrationGroupScript -ScriptGuid $PreScript.ScriptGuid -Comment "Deny"
43+
```
44+
45+
#### Get-CMOrchestrationGroupScript
46+
47+
Use this cmdlet to get a script from the specified orchestration group. For more information, see [About orchestration groups in Configuration Manager](../../../../../sum/deploy-use/orchestration-groups.md).
48+
49+
```powershell
50+
$referenceOG = Get-CMOrchestrationGroup -Name "Orchestratrion group 1"
51+
$preScript = $referenceOG | Get-CMOrchestrationGroupScript -ScriptType Pre
52+
```
53+
54+
#### Get-CMTrustedRootCertificationAuthority
55+
56+
Use this cmdlet to get the certificates for trusted root certification authorities from the site.
57+
58+
```powershell
59+
$ci =Get-CMTrustedRootCertificationAuthority
60+
$ci =Get-CMTrustedRootCertificationAuthority -ViewDetail
61+
```
62+
63+
#### New-CMAADClientApplication
64+
65+
Use this cmdlet to create a client app registration in Azure Active Directory (Azure AD). When you run this cmdlet, it will prompt you to sign in to your tenant. For more information on this app registration, see [Manually register Azure AD apps for the CMG](../../../../clients/manage/cmg/manually-register-azure-ad-apps.md).
66+
67+
```powershell
68+
$serverApp = New-CMAADServerApplication -AppName $appName
69+
New-CMAADClientApplication -AppName $name -InputObject $serverApp
70+
```
71+
72+
#### New-CMAADServerApplication
73+
74+
Use this cmdlet to create a server app registration in Azure AD. When you run this cmdlet, it will prompt you to sign in to your tenant. For more information on this app registration, see [Manually register Azure AD apps for the CMG](../../../../clients/manage/cmg/manually-register-azure-ad-apps.md).
75+
76+
```powershell
77+
New-CMAADServerApplication -AppName $appName
78+
```
79+
80+
### Modified cmdlets
81+
82+
#### Add-CMManagementPoint
83+
84+
For more information, see [Add-CMManagementPoint](/powershell/module/configurationmanager/Add-CMManagementPoint).
85+
86+
**Non-breaking changes**
87+
88+
When you use this cmdlet to enable communication with the cloud management gateway, it now by default configures the management point to support both internet and intranet clients.
89+
90+
#### Get-CMObjectSecurityScope
91+
92+
For more information, see [Get-CMObjectSecurityScope](/powershell/module/configurationmanager/Get-CMObjectSecurityScope).
93+
94+
**Non-breaking changes**
95+
96+
You can now use this cmdlet to get the security scope of a specified folder object.
97+
98+
#### New-CMCloudManagementGateway
99+
100+
For more information, see [New-CMCloudManagementGateway](/powershell/module/configurationmanager/New-CMCloudManagementGateway).
101+
102+
**Non-breaking changes**
103+
104+
Added parameters **VMSSVMSize** and **Version** to support creating a cloud management gateway (CMG) using a virtual machine scale set.
105+
106+
#### New-CMComplianceRuleRegistryKeyPermission
107+
108+
For more information, see [New-CMComplianceRuleRegistryKeyPermission](/powershell/module/configurationmanager/New-CMComplianceRuleRegistryKeyPermission).
109+
110+
**Non-breaking changes**
111+
112+
Fixed an issue in **OperandDataType** property when creating a rule.
113+
114+
#### Set-CMClientSettingComplianceSetting
115+
116+
For more information, see [Set-CMClientSettingComplianceSetting](/powershell/module/configurationmanager/Set-CMClientSettingComplianceSetting).
117+
118+
**Non-breaking changes**
119+
120+
Added a new parameter **ScriptExecutionTimeoutSecs** to extend the script execution timeout value.
121+
122+
#### Set-CMClientSettingComputerRestart
123+
124+
For more information, see [Set-CMClientSettingComputerRestart](/powershell/module/configurationmanager/Set-CMClientSettingComputerRestart).
125+
126+
**Non-breaking changes**
127+
128+
- Extended the validation range of the parameters **CountdownMins** and **RebootLogoffNotificationCountdownMins** to align with the console.
129+
- Added new parameters **CountdownIntervalMins** and **ServerRebootLowRight** to align with the console.
130+
- Fixed a property name issue for the parameter **NoRebootEnforcement**.
131+
132+
### Module changes
133+
134+
The following folder-related cmdlets now support automatic deployment rules:
135+
136+
- [Get-CMFolder](/powershell/module/configurationmanager/get-cmfolder)
137+
- [New-CMFolder](/powershell/module/configurationmanager/new-cmfolder)
138+
- [Remove-CMFolder](/powershell/module/configurationmanager/remove-cmfolder)
139+
- [Set-CMFolder](/powershell/module/configurationmanager/set-cmfolder)
140+
- [Move-CMObject](/powershell/module/configurationmanager/move-cmobject)
141+
- [Add-CMObjectSecurityScope](/powershell/module/configurationmanager/Add-CMObjectSecurityScope)
142+
- [Remove-CMObjectSecurityScope](/powershell/module/configurationmanager/Remove-CMObjectSecurityScope)

memdocs/configmgr/core/get-started/2022/technical-preview-2205.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ The following sections describe the new features to try out in this version:
3030
[!INCLUDE [13351390](includes/2205/13351390.md)]
3131
[!INCLUDE [14059872](includes/2205/14059872.md)]
3232
[!INCLUDE [14120481](includes/2205/14120481.md)]
33+
[!INCLUDE [14046376](includes/2205/14046376.md)]
3334

3435
<!-- ## General known issues -->
3536

0 commit comments

Comments
 (0)