diff --git a/Private/SHSPrinter.ps1 b/Private/SHSPrinter.ps1 index ab58a95..7a257d9 100644 --- a/Private/SHSPrinter.ps1 +++ b/Private/SHSPrinter.ps1 @@ -463,7 +463,7 @@ function Get-PrinterIP { start "http://$domainName" $mac = $printer.MAC Sleep -Seconds 1 - start "https://shsorion/Orion/UDT/EndpointDetails.aspx?NetObject=UE-MAC:VAL=$mac" + start "https://azporion1/Orion/UDT/EndpointDetails.aspx?NetObject=UE-MAC:VAL=$mac" } else{ diff --git a/Public/Get-PC.ps1 b/Public/Get-PC.ps1 index f313229..4d6ead8 100644 --- a/Public/Get-PC.ps1 +++ b/Public/Get-PC.ps1 @@ -370,12 +370,7 @@ Function Get-PC { Write-Warning 'Active Drirectory Thick Client is required for this function' break } - $comp | Get-ADComputer | Enable-ADAccount - if (Get-ADUser -Filter "Name -like 'K_$comp'") { - Write-Host -ForegroundColor Yellow "Kiosk account found. Please re-kiosk this workstation." - } else { - Add-ADGroupMember -Identity (Get-ADGroup -Identity 'CN=SSO Workstations') -Members (Get-ADComputer $comp) - } + Invoke-EnableComputer $comp continue } @@ -697,7 +692,7 @@ Function Get-PC { $mac = $mac[2] -split "," $mac = $mac[0] Write-Host "Launching Orion page to $mac" - Start-Process "https://shsorion/Orion/UDT/EndpointDetails.aspx?NetObject=UE-MAC:VAL=$mac" + Start-Process "https://azporion1/Orion/UDT/EndpointDetails.aspx?NetObject=UE-MAC:VAL=$mac" } else { Write-Host "Unable to validate MAC" diff --git a/patchnotes.txt b/patchnotes.txt index 2f8c6dd..7b50e10 100644 --- a/patchnotes.txt +++ b/patchnotes.txt @@ -1,3 +1,7 @@ +Path: +-Fix Enable flag also removes workstation from Disabled Computers group +-Update Orion url + Patch: 2024-10-11 -Fix no more functions create a profile on the remote machine -Add Zebra GK420d and ZD421 report ip config mode in shsprinter