Skip to content

Instantly share code, notes, and snippets.

@othtim
Created June 21, 2017 22:40
Show Gist options
  • Select an option

  • Save othtim/185c27e2b554f35b69ea3a9ac01d8f6f to your computer and use it in GitHub Desktop.

Select an option

Save othtim/185c27e2b554f35b69ea3a9ac01d8f6f to your computer and use it in GitHub Desktop.
# 14
$registryPath = "HKCU:\Software\Microsoft\Office\14.0\Common\MailSettings"
IF(Test-Path $registryPath){
New-ItemProperty -Path $registryPath -Name "NewSignature" -Value "medium" -PropertyType String -Force | Out-Null
}
# 15
$registryPath = "HKCU:\Software\Microsoft\Office\15.0\Common\MailSettings"
IF(Test-Path $registryPath){
New-ItemProperty -Path $registryPath -Name "NewSignature" -Value "medium" -PropertyType String -Force | Out-Null
}
# 16
$registryPath = "HKCU:\Software\Microsoft\Office\16.0\Common\MailSettings"
IF(Test-Path $registryPath){
New-ItemProperty -Path $registryPath -Name "NewSignature" -Value "medium" -PropertyType String -Force | Out-Null
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment