Skip to content

Commit

Permalink
Merge pull request MSEndpointMgr#24 from GenerAhl/patch-1
Browse files Browse the repository at this point in the history
Update Set-AutopilotDeviceGroupTag.ps1
  • Loading branch information
NickolajA authored Feb 22, 2021
2 parents ce2b894 + b948f43 commit 9556a2c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Autopilot/Set-AutopilotDeviceGroupTag.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ Process {
Specify the Autopilot device identity id.
.PARAMETER GroupTag
Specify the GroupTag string value.
Specify the Group Tag string value.
.NOTES
Author: Nickolaj Andersen
Expand All @@ -394,7 +394,7 @@ Process {
[ValidateNotNullOrEmpty()]
[string]$Id,

[parameter(Mandatory = $true, HelpMessage = "Specify the GroupTag string value.")]
[parameter(Mandatory = $true, HelpMessage = "Specify the Group Tag string value.")]
[ValidateNotNullOrEmpty()]
[string]$GroupTag
)
Expand Down Expand Up @@ -452,7 +452,7 @@ Process {
foreach ($AutopilotDevice in $AutopilotDevices) {
try {
# Set group tag for current Autopilot device
Write-Verbose -Message "Setting group tag value '$($Value)' for Autopilot device: $($AutopilotDevice.serialNumber)"
Write-Verbose -Message "Setting Group Tag value '$($Value)' for Autopilot device: $($AutopilotDevice.serialNumber)"
Set-AutopilotDevice -Id $AutopilotDevice.id -GroupTag $Value -ErrorAction Stop

# Handle success output
Expand Down Expand Up @@ -490,4 +490,4 @@ Process {
catch [System.Exception] {
Write-Warning -Message "An error occurred while attempting to retrieve an authentication token. Error message: $($PSItem.Exception.Message)"
}
}
}

0 comments on commit 9556a2c

Please sign in to comment.