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
Write-LogEntry ("Key was not set; Hardcoding registry keys [{0}\{1}] with value [{2}]...."-f ($RegHive+'\'+$RegKeyPath),$RegKeyName,$Value)-Severity0-Source${CmdletName}
503
+
Write-LogEntry ("Key was not set; Hardcoding registry keys [{0}\{1}] with value [{2}]"-f ($RegHive+'\'+$RegKeyPath),$RegKeyName,$Value)-Severity0-Source${CmdletName}
Write-LogEntry ("User registry hive was not found or specified in Keypath [{0}]. Either use the -ApplyTo Switch or specify user hive [eg. HKCU\]..."-f$RegPath)-Severity3-Source${CmdletName}
658
+
Write-LogEntry ("User registry hive was not found or specified in Keypath [{0}]. Either use the -ApplyTo Switch or specify user hive [eg. HKCU\].."-f$RegPath)-Severity3-Source${CmdletName}
658
659
return
659
660
}
660
661
@@ -682,7 +683,7 @@ Function Set-UserSetting {
682
683
}
683
684
684
685
If ($HiveLoaded-eq$true) {
685
-
If($Message){Write-LogEntry ("{0} for User [{1}]..."-f$Message,$UserName)}
686
+
If($Message){Write-LogEntry ("{0} for User [{1}].."-f$Message,$UserName)}
@@ -849,27 +850,27 @@ Function Get-InstalledApplication {
849
850
# Check for an exact application name match
850
851
If ($regKeyApp.DisplayName-eq$application) {
851
852
$applicationMatched=$true
852
-
Write-LogEntry-Message"Found installed application [$appDisplayName] version [$appDisplayVersion] using exact name matching for search term [$application]."-Source${CmdletName}-Outhost
853
+
Write-LogEntry-Message"Found installed application [$appDisplayName] version [$appDisplayVersion] using exact name matching for search term [$application]"-Source${CmdletName}-Outhost
853
854
}
854
855
}
855
856
ElseIf ($WildCard) {
856
857
# Check for wildcard application name match
857
858
If ($regKeyApp.DisplayName-like$application) {
858
859
$applicationMatched=$true
859
-
Write-LogEntry-Message"Found installed application [$appDisplayName] version [$appDisplayVersion] using wildcard matching for search term [$application]."-Source${CmdletName}-Outhost
860
+
Write-LogEntry-Message"Found installed application [$appDisplayName] version [$appDisplayVersion] using wildcard matching for search term [$application]"-Source${CmdletName}-Outhost
860
861
}
861
862
}
862
863
ElseIf ($RegEx) {
863
864
# Check for a regex application name match
864
865
If ($regKeyApp.DisplayName-match$application) {
865
866
$applicationMatched=$true
866
-
Write-LogEntry-Message"Found installed application [$appDisplayName] version [$appDisplayVersion] using regex matching for search term [$application]."-Source${CmdletName}-Outhost
867
+
Write-LogEntry-Message"Found installed application [$appDisplayName] version [$appDisplayVersion] using regex matching for search term [$application]"-Source${CmdletName}-Outhost
Write-LogEntry-Message"Found installed application [$appDisplayName] version [$appDisplayVersion] using contains matching for search term [$application]."-Source${CmdletName}-Outhost
873
+
Write-LogEntry-Message"Found installed application [$appDisplayName] version [$appDisplayVersion] using contains matching for search term [$application]"-Source${CmdletName}-Outhost
Set-UserSetting-Message"Disabling First Run Boot for$OfficeTitle"-Path'SOFTWARE\Microsoft\Office\$OfficeVersion\FirstRun'-Name'BootRTM'-Type DWord-Value1-Force
1021
-
Set-UserSetting-Message"Disabling First Run Movie for$OfficeTitle"-Path'SOFTWARE\Microsoft\Office\$OfficeVersion\FirstRun'-Name'DisableMovie'-Type DWord-Value1-Force
1022
-
Set-UserSetting-Message"Disabling First Run Optin for$OfficeTitle"-Path'SOFTWARE\Microsoft\Office\$OfficeVersion\Common\General'-Name'showfirstrunoptin'-Type DWord-Value1-Force
1023
-
Set-UserSetting-Message"Disabling First Run Optin for$OfficeTitle"-Path'SOFTWARE\Microsoft\Office\$OfficeVersion\Common\PTWatson'-Name'PTWOption'-Type DWord-Value1-Force
Set-UserSetting-Message"Disabling First Run Boot for$OfficeTitle"-Path"SOFTWARE\Microsoft\Office\$OfficeVersion\FirstRun"-Name'BootRTM'-Type DWord-Value1-Force
1022
+
Set-UserSetting-Message"Disabling First Run Movie for$OfficeTitle"-Path"SOFTWARE\Microsoft\Office\$OfficeVersion\FirstRun"-Name'DisableMovie'-Type DWord-Value1-Force
1023
+
Set-UserSetting-Message"Disabling First Run Optin for$OfficeTitle"-Path"SOFTWARE\Microsoft\Office\$OfficeVersion\Common\General"-Name'showfirstrunoptin'-Type DWord-Value1-Force
1024
+
Set-UserSetting-Message"Disabling First Run Optin for$OfficeTitle"-Path"SOFTWARE\Microsoft\Office\$OfficeVersion\Common\PTWatson"-Name'PTWOption'-Type DWord-Value1-Force