You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$tickbody = "Computer was renamed from " + $assetname + " to " + $NewComputerName + " via script. The name will autoupdate the next time the asset refreshes."
# Make the ticket comments public or private
$tickprivate = "True"
# Check if computer is domain joined
if ((Get-WmiObject -Class Win32_ComputerSystem).PartOfDomain) {