Skip to content

Commit 649b240

Browse files
authored
add: PowerShell Cmdlet
1 parent 7fe116a commit 649b240

1 file changed

Lines changed: 124 additions & 0 deletions

File tree

  • memdocs/configmgr/core/get-started/2022/includes/2205
Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
---
2+
author: Banreet Kaur
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+
This cmdlet would help user to approve orchestration group script.
24+
25+
```powershell
26+
$referenceOG = Get-CMOrchestrationGroup -Name $Script:OGName
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+
This cmdlet would help user to deny orchestration group script.
36+
37+
```powershell
38+
$referenceOG = Get-CMOrchestrationGroup -Name $Script:OGName
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+
This cmdlet would help user to get orchestration group script from specified orchestration group.
48+
49+
```powershell
50+
$referenceOG = Get-CMOrchestrationGroup -Name $Script:OGName
51+
$preScript = $referenceOG | Get-CMOrchestrationGroupScript -ScriptType Pre
52+
```
53+
54+
#### Get-CMTrustedRootCertificationAuthority
55+
56+
This cmdlet would help user to get the certificates for trusted root certification authorities(CAs).
57+
58+
```powershell
59+
$ci =Get-CMTrustedRootCertificationAuthority
60+
$ci =Get-CMTrustedRootCertificationAuthority -ViewDetail
61+
```
62+
63+
#### New-CMAADClientApplication
64+
65+
This cmdlet would help user to specify application details and sign in with Azure Active Directory admin credentials to create client application in the Azure Active Directory.
66+
67+
```powershell
68+
$serverApp = New-CMAADServerApplication -AppName $appName
69+
New-CMAADClientApplication -AppName $name -InputObject $serverApp
70+
```
71+
72+
#### New-CMAADServerApplication
73+
74+
This cmdlet would help user to specify application details and sign in with Azure Active Directory admin credentials to create server application in the Azure Active Directory.
75+
76+
```powershell
77+
New-CMAADServerApplication -AppName $appName
78+
```
79+
80+
### Modified cmdlets
81+
82+
#### Add-CMManagementPoint
83+
84+
**Non-breaking changes**
85+
86+
Fixed the function to make the ClientConnectionTypes.InternetAndIntranet as default value when enable cloud gateway to align with UI.
87+
88+
#### Get-CMObjectSecurityScope
89+
90+
**Non-breaking changes**
91+
92+
Fixed the function to allow user to get the security scope of a specified folder object.
93+
94+
#### New-CMCloudManagementGateway
95+
96+
**Non-breaking changes**
97+
98+
Added parameter “VMSSVMSize” and “Version” to support creating a CMG using a Scale Set.
99+
100+
#### New-CMComplianceRuleRegistryKeyPermission
101+
102+
**Non-breaking changes**
103+
104+
Fixed an issue in OperandDataType property when create rule.
105+
106+
#### Set-CMClientSettingComplianceSetting
107+
108+
**Non-breaking changes**
109+
110+
Added new parameter “ScriptExecutionTimeoutSecs” to allow user to extend the DCM script execution timeout value.
111+
112+
#### Set-CMClientSettingComputerRestart
113+
114+
**Non-breaking changes**
115+
116+
Extended the validation range of the parameter “CountdownMins” and “RebootLogoffNotificationCountdownMins” to align with UI.
117+
Added new parameter “CountdownIntervalMins” and “ServerRebootLowRight” to align with UI.
118+
Fixed an property name issue for the parameter “NoRebootEnforcement”.
119+
120+
### Common Fix
121+
122+
Added folder support for Automatic Deployment Rule in cmdlets:
123+
124+
New-CMFolder, Get-CMFolder, Set-CMFolder, Remove-CMFolder, Move-CMObject, Add-CMObjectSecurityScope and Remove-CMObjectSecurityScope.

0 commit comments

Comments
 (0)