log"Writing image date ($regValueData) to registry ($regKey\$regValueName) for tracking purposes..."
New-Item-Path$regKey# If exists, will fail and not overwrite anything, which is what we want
New-ItemProperty-Path$regKey-Name$regValueName-PropertyType$regValueType-Value$regValueData-Force# If exists, will overwrite
# updates GPOs
# If a user logs in before the gpupdate finishes, and the gpupdate requires a relog/restart, this script can hang, waiting for the user to type y or n, even though the cmd window is invisible. Piping "echo n" here solves this.