Merge branch 'main' of https://git.dcomputers.nl/Dcomputers/PowershellScripts
This commit is contained in:
326
VDOT/ConfigurationFiles/AppxPackages.json
Normal file
326
VDOT/ConfigurationFiles/AppxPackages.json
Normal file
@@ -0,0 +1,326 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"AppxPackage": "Bing Search",
|
||||||
|
"VDIState": "Disabled",
|
||||||
|
"URL": "https://apps.microsoft.com/detail/9nzbf4gt040c",
|
||||||
|
"Description": "Web Search from Microsoft Bing provides web results and answers in Windows Search"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"AppxPackage": "Clipchamp.Clipchamp",
|
||||||
|
"VDIState": "Disabled",
|
||||||
|
"URL": "https://apps.microsoft.com/detail/9p1j8s7ccwwt?hl=en-us&gl=US",
|
||||||
|
"Description": "Create videos with a few clicks"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"AppxPackage": "Microsoft.549981C3F5F10",
|
||||||
|
"VDIState": "Disabled",
|
||||||
|
"URL": "https://apps.microsoft.com/detail/cortana/9NFFX4SZZ23L?hl=en-us&gl=US",
|
||||||
|
"Description": "Cortana (could not update)"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"AppxPackage": "Microsoft.BingNews",
|
||||||
|
"VDIState": "Disabled",
|
||||||
|
"URL": "https://www.microsoft.com/en-us/p/microsoft-news/9wzdncrfhvfw",
|
||||||
|
"Description": "Microsoft News app"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"AppxPackage": "Microsoft.BingWeather",
|
||||||
|
"VDIState": "Disabled",
|
||||||
|
"URL": "https://www.microsoft.com/en-us/p/msn-weather/9wzdncrfj3q2",
|
||||||
|
"Description": "MSN Weather app"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"AppxPackage": "Microsoft.DesktopAppInstaller",
|
||||||
|
"VDIState": "Unchanged",
|
||||||
|
"URL": "https://apps.microsoft.com/detail/9NBLGGH4NNS1",
|
||||||
|
"Description": "Microsoft App Installer for Windows 10 makes sideloading Windows apps easy"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"AppxPackage": "Microsoft.GamingApp",
|
||||||
|
"VDIState": "Disabled",
|
||||||
|
"URL": "https://www.microsoft.com/en-us/p/xbox/9mv0b5hzvk9z",
|
||||||
|
"Description": "Xbox app"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"AppxPackage": "Microsoft.GetHelp",
|
||||||
|
"VDIState": "Disabled",
|
||||||
|
"URL": "https://docs.microsoft.com/en-us/windows-hardware/customize/desktop/customize-get-help-app",
|
||||||
|
"Description": "App that facilitates free support for Microsoft products"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"AppxPackage": "Microsoft.Getstarted",
|
||||||
|
"VDIState": "Disabled",
|
||||||
|
"URL": "https://www.microsoft.com/en-us/p/microsoft-tips/9wzdncrdtbjj",
|
||||||
|
"Description": "Windows 10 tips app"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"AppxPackage": "Microsoft.MicrosoftOfficeHub",
|
||||||
|
"VDIState": "Disabled",
|
||||||
|
"URL": "https://www.microsoft.com/en-us/p/office/9wzdncrd29v9",
|
||||||
|
"Description": "Office UWP app suite"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"AppxPackage": "Microsoft.Office.OneNote",
|
||||||
|
"VDIState": "Disabled",
|
||||||
|
"URL": "https://www.microsoft.com/en-us/p/onenote-for-windows-10/9wzdncrfhvjl",
|
||||||
|
"Description": "Office UWP OneNote app"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"AppxPackage": "Microsoft.MicrosoftSolitaireCollection",
|
||||||
|
"VDIState": "Unchanged",
|
||||||
|
"URL": "https://www.microsoft.com/en-us/p/microsoft-solitaire-collection/9wzdncrfhwd2",
|
||||||
|
"Description": "Solitaire suite of games"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"AppxPackage": "Microsoft.MicrosoftStickyNotes",
|
||||||
|
"VDIState": "Unchanged",
|
||||||
|
"URL": "https://www.microsoft.com/en-us/p/microsoft-sticky-notes/9nblggh4qghw",
|
||||||
|
"Description": "Note-taking app"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"AppxPackage": "Microsoft.OutlookForWindows",
|
||||||
|
"VDIState": "Disabled",
|
||||||
|
"URL": "https://apps.microsoft.com/detail/9NRX63209R7B?hl=en-us&gl=US",
|
||||||
|
"Description": "a best-in-class email experience that is free for anyone with Windows"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"AppxPackage": "Microsoft.MSPaint",
|
||||||
|
"VDIState": "Disabled",
|
||||||
|
"URL": "https://apps.microsoft.com/store/detail/paint-3d/9NBLGGH5FV99",
|
||||||
|
"Description": "Paint 3D app (not Classic Paint app)"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"AppxPackage": "Microsoft.Paint",
|
||||||
|
"VDIState": "Unchanged",
|
||||||
|
"URL": "https://apps.microsoft.com/detail/9PCFS5B6T72H?hl=en-us&gl=US",
|
||||||
|
"Description": "Classic Paint app"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"AppxPackage": "Microsoft.People",
|
||||||
|
"VDIState": "Disabled",
|
||||||
|
"URL": "https://www.microsoft.com/en-us/p/microsoft-people/9nblggh10pg8",
|
||||||
|
"Description": "Contact management app"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"AppxPackage": "Microsoft.PowerAutomateDesktop",
|
||||||
|
"VDIState": "Disabled",
|
||||||
|
"URL": "https://flow.microsoft.com/en-us/desktop/",
|
||||||
|
"Description": "Power Automate Desktop app. Record desktop and web actions in a single flow"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"AppxPackage": "Microsoft.ScreenSketch",
|
||||||
|
"VDIState": "Unchanged",
|
||||||
|
"URL": "https://www.microsoft.com/en-us/p/snip-sketch/9mz95kl8mr0l",
|
||||||
|
"Description": "Snip and Sketch app"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"AppxPackage": "Microsoft.SkypeApp",
|
||||||
|
"VDIState": "Disabled",
|
||||||
|
"URL": "https://www.microsoft.com/en-us/p/skype/9wzdncrfj364",
|
||||||
|
"Description": "Instant message, voice or video call app"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"AppxPackage": "Microsoft.StorePurchaseApp",
|
||||||
|
"VDIState": "Unchanged",
|
||||||
|
"URL": "",
|
||||||
|
"Description": "Store purchase app helper"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"AppxPackage": "Microsoft.Todos",
|
||||||
|
"VDIState": "Disabled",
|
||||||
|
"URL": "https://www.microsoft.com/en-us/p/microsoft-to-do-lists-tasks-reminders/9nblggh5r558",
|
||||||
|
"Description": "Microsoft To Do makes it easy to plan your day and manage your life"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"AppxPackage": "Microsoft.WinDbg.Fast",
|
||||||
|
"VDIState": "Unchanged",
|
||||||
|
"URL": "https://apps.microsoft.com/detail/9PGJGD53TN86?hl=en-us&gl=US",
|
||||||
|
"Description": "Microsoft WinDbg"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"AppxPackage": "Microsoft.Windows.DevHome",
|
||||||
|
"VDIState": "Disabled",
|
||||||
|
"URL": "https://learn.microsoft.com/en-us/windows/dev-home/",
|
||||||
|
"Description": "A control center providing the ability to monitor projects in your dashboard using customizable widgets and more"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"AppxPackage": "Microsoft.Windows.Photos",
|
||||||
|
"VDIState": "Unchanged",
|
||||||
|
"URL": "https://www.microsoft.com/en-us/p/microsoft-photos/9wzdncrfjbh4",
|
||||||
|
"Description": "Photo and video editor"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"AppxPackage": "Microsoft.WindowsAlarms",
|
||||||
|
"VDIState": "Disabled",
|
||||||
|
"URL": "https://www.microsoft.com/en-us/p/windows-alarms-clock/9wzdncrfj3pr",
|
||||||
|
"Description": "A combination app, of alarm clock, world clock, timer, and stopwatch."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"AppxPackage": "Microsoft.WindowsCalculator",
|
||||||
|
"VDIState": "Unchanged",
|
||||||
|
"URL": "https://www.microsoft.com/en-us/p/windows-calculator/9wzdncrfhvn5",
|
||||||
|
"Description": "Microsoft Calculator app"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"AppxPackage": "Microsoft.WindowsCamera",
|
||||||
|
"VDIState": "Disabled",
|
||||||
|
"URL": "https://www.microsoft.com/en-us/p/windows-camera/9wzdncrfjbbg",
|
||||||
|
"Description": "Camera app to manage photos and video"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"AppxPackage": "microsoft.windowscommunicationsapps",
|
||||||
|
"VDIState": "Disabled",
|
||||||
|
"URL": "https://www.microsoft.com/en-us/p/mail-and-calendar/9wzdncrfhvqm",
|
||||||
|
"Description": "Mail & Calendar apps"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"AppxPackage": "Microsoft.WindowsFeedbackHub",
|
||||||
|
"VDIState": "Disabled",
|
||||||
|
"URL": "https://www.microsoft.com/en-us/p/feedback-hub/9nblggh4r32n",
|
||||||
|
"Description": "App to provide Feedback on Windows and apps to Microsoft"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"AppxPackage": "Microsoft.WindowsMaps",
|
||||||
|
"VDIState": "Disabled",
|
||||||
|
"URL": "https://www.microsoft.com/en-us/p/windows-maps/9wzdncrdtbvb",
|
||||||
|
"Description": "Microsoft Maps app"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"AppxPackage": "Microsoft.WindowsNotepad",
|
||||||
|
"VDIState": "Unchanged",
|
||||||
|
"URL": "https://www.microsoft.com/en-us/p/windows-notepad/9msmlrh6lzf3",
|
||||||
|
"Description": "Fast, simple text editor for plain text documents and source code files."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"AppxPackage": "Microsoft.WindowsStore",
|
||||||
|
"VDIState": "Unchanged",
|
||||||
|
"URL": "https://blogs.windows.com/windowsexperience/2021/06/24/building-a-new-open-microsoft-store-on-windows-11/",
|
||||||
|
"Description": "Windows Store app"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"AppxPackage": "Microsoft.WindowsSoundRecorder",
|
||||||
|
"VDIState": "Disabled",
|
||||||
|
"URL": "https://www.microsoft.com/en-us/p/windows-voice-recorder/9wzdncrfhwkn",
|
||||||
|
"Description": "(Voice recorder)"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"AppxPackage": "Microsoft.WindowsTerminal",
|
||||||
|
"VDIState": "Unchanged",
|
||||||
|
"URL": "https://www.microsoft.com/en-us/p/windows-terminal/9n0dx20hk701",
|
||||||
|
"Description": "A terminal app featuring tabs, panes, Unicode, UTF-8 character support, and GPU text rendering engine."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"AppxPackage": "Microsoft.Winget.Platform.Source",
|
||||||
|
"VDIState": "Unchanged",
|
||||||
|
"URL": "https://learn.microsoft.com/en-us/windows/package-manager/winget/",
|
||||||
|
"Description": "The Winget tool enables users to manage applications on Win10 and Win11 devices. This tool is the client interface to the Windows Package Manager service"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"AppxPackage": "Microsoft.Xbox.TCUI",
|
||||||
|
"VDIState": "Disabled",
|
||||||
|
"URL": "https://docs.microsoft.com/en-us/gaming/xbox-live/features/general/tcui/live-tcui-overview",
|
||||||
|
"Description": "XBox Title Callable UI (TCUI) enables your game code to call pre-defined user interface displays"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"AppxPackage": "Microsoft.XboxGameOverlay",
|
||||||
|
"VDIState": "Disabled",
|
||||||
|
"URL": "https://www.microsoft.com/en-us/p/xbox-game-bar/9nzkpstsnw4p",
|
||||||
|
"Description": "Xbox Game Bar extensible overlay"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"AppxPackage": "Microsoft.XboxGamingOverlay",
|
||||||
|
"VDIState": "Disabled",
|
||||||
|
"URL": "https://www.microsoft.com/en-us/p/xbox-game-bar/9nzkpstsnw4p",
|
||||||
|
"Description": "Xbox Game Bar extensible overlay"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"AppxPackage": "Microsoft.XboxIdentityProvider",
|
||||||
|
"VDIState": "Disabled",
|
||||||
|
"URL": "https://www.microsoft.com/en-us/p/xbox-identity-provider/9wzdncrd1hkw",
|
||||||
|
"Description": "A system app that enables PC games to connect to Xbox Live."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"AppxPackage": "Microsoft.XboxSpeechToTextOverlay",
|
||||||
|
"VDIState": "Disabled",
|
||||||
|
"URL": "https://support.xbox.com/help/account-profile/accessibility/use-game-chat-transcription",
|
||||||
|
"Description": "Xbox game transcription overlay"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"AppxPackage": "Microsoft.YourPhone",
|
||||||
|
"VDIState": "Disabled",
|
||||||
|
"URL": "https://www.microsoft.com/en-us/p/Your-phone/9nmpj99vjbwv",
|
||||||
|
"Description": "Android phone to PC device interface app"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"AppxPackage": "Microsoft.ZuneMusic",
|
||||||
|
"VDIState": "Disabled",
|
||||||
|
"URL": "https://www.microsoft.com/en-us/p/groove-music/9wzdncrfj3pt",
|
||||||
|
"Description": "Groove Music app"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"AppxPackage": "Microsoft.ZuneVideo",
|
||||||
|
"VDIState": "Disabled",
|
||||||
|
"URL": "https://www.microsoft.com/en-us/p/movies-tv/9wzdncrfj3p2",
|
||||||
|
"Description": "Movies and TV app"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"AppxPackage": "MicrosoftCorporationII.QuickAssist",
|
||||||
|
"VDIState": "Unchanged",
|
||||||
|
"URL": "https://apps.microsoft.com/detail/9P7BP5VNWKX5?hl=en-us&gl=US",
|
||||||
|
"Description": "Microsoft remote help app"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"AppxPackage": "MicrosoftWindows.Client.WebExperience",
|
||||||
|
"VDIState": "Unchanged",
|
||||||
|
"URL": "",
|
||||||
|
"Description": "Windows 11 Internet information widget"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"AppxPackage": "Microsoft.XboxApp",
|
||||||
|
"VDIState": "Disabled",
|
||||||
|
"URL": "https://www.microsoft.com/store/apps/9wzdncrfjbd8",
|
||||||
|
"Description": "Xbox 'Console Companion' app (games, friends, etc.)"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"AppxPackage": "Microsoft.MixedReality.Portal",
|
||||||
|
"VDIState": "Disabled",
|
||||||
|
"URL": "https://www.microsoft.com/en-us/p/mixed-reality-portal/9ng1h8b3zc7m",
|
||||||
|
"Description": "The app that facilitates Windows Mixed Reality setup, and serves as the command center for mixed reality experiences"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"AppxPackage": "Microsoft.Microsoft3DViewer",
|
||||||
|
"VDIState": "Disabled",
|
||||||
|
"URL": "https://www.microsoft.com/en-us/p/3d-viewer/9nblggh42ths",
|
||||||
|
"Description": "App to view common 3D file types"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"AppxPackage": "MicrosoftTeams",
|
||||||
|
"VDIState": "Disabled",
|
||||||
|
"URL": "https://www.microsoft.com/en-us/microsoft-teams/group-chat-software",
|
||||||
|
"Description": "Microsoft communication platform"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"AppxPackage": "MSTeams",
|
||||||
|
"VDIState": "Disabled",
|
||||||
|
"URL": "https://www.microsoft.com/en-us/microsoft-teams/group-chat-software",
|
||||||
|
"Description": "Microsoft communication platform"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"AppxPackage": "Microsoft.OneDriveSync",
|
||||||
|
"VDIState": "Unchanged",
|
||||||
|
"URL": "https://docs.microsoft.com/en-us/onedrive/one-drive-sync",
|
||||||
|
"Description": "Microsoft OneDrive sync app (included in Office 2016 or later)"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"AppxPackage": "Microsoft.Wallet",
|
||||||
|
"VDIState": "Disabled",
|
||||||
|
"URL": "https://www.microsoft.com/en-us/payments",
|
||||||
|
"Description": "(Microsoft Pay) for Edge browser on certain devices"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"AppxPackage": "Microsoft.Copilot",
|
||||||
|
"VDIState": "Disabled",
|
||||||
|
"URL": "https://apps.microsoft.com/detail/9NHT9RB2F4HD?hl=neutral&gl=NL&ocid=pdpshare",
|
||||||
|
"Description": "Microsoft Copilot is your everyday AI companion,. empowering you to achieve anything you can imagine"
|
||||||
|
}
|
||||||
|
]
|
||||||
44
VDOT/ConfigurationFiles/Autologgers.Json
Normal file
44
VDOT/ConfigurationFiles/Autologgers.Json
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"KeyName": "HKLM:\\SYSTEM\\CurrentControlSet\\Control\\WMI\\Autologger\\Cellcore\\",
|
||||||
|
"URL": "https://docs.microsoft.com/en-us/windows-hardware/drivers/network/cellular-architecture-and-driver-model",
|
||||||
|
"Disabled": true,
|
||||||
|
"Description": "The “Cellcore” trace has “SMSRouter” in the trace properties."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"KeyName": "HKLM:\\SYSTEM\\CurrentControlSet\\Control\\WMI\\Autologger\\ReadyBoot\\",
|
||||||
|
"URL": "https://docs.microsoft.com/en-us/previous-versions/windows/desktop/xperf/readyboot-analysis",
|
||||||
|
"Disabled": true,
|
||||||
|
"Description": "“ReadyBoot is boot acceleration technology that maintains an in-RAM cache used to service disk reads faster than a slower storage medium such as a disk drive”. VDI does not use “normal” computer disk devices, but usually segments of a shared storage medium. ReadyBoot and other optimizations designed to assist normal disk devices do not have equivalent effects on shared storage devices. And further, for non-persistent VDI, 99.999% of computer state is discarded when the user logs off. This includes any optimizations performed by the OS during runtime. Therefore, why allow Windows “normal” optimizations when all that computer and I/O work will be discarded at logoff for NP VDI? For persistent, the choice is yours. Another consideration is again, pooled VDI. The users will normally not log into the same VM twice. Therefore, any RAM caching of predicted I/O will have unknown impact because the underlying disk extent being utilized for that logon session will be different from session to session."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"KeyName": "HKLM:\\SYSTEM\\CurrentControlSet\\Control\\WMI\\Autologger\\WDIContextLog\\",
|
||||||
|
"URL": "https://docs.microsoft.com/en-us/windows-hardware/drivers/network/wifi-universal-driver-model",
|
||||||
|
"Disabled": true,
|
||||||
|
"Description": "This is a startup trace that runs all the time, with these loggers: \"Microsoft-Windows-Kernel-PnP\":0x48000:0x4+\"Microsoft-Windows-Kernel-WDI\":0x100000000:0xff+\"Microsoft-Windows-Wininit\":0x20000:0x4+\"Microsoft-Windows-Kernel-BootDiagnostics\":0xffffffffffffffff:0x4+\"Microsoft-Windows-Kernel-Power\":0x1:0x4+\"Microsoft-Windows-Winlogon\":0x20000:0x4+\"Microsoft-Windows-Shell-Core\":0x6000000:0x4 On my clean state VM, this trace is running and using a very small amount of resources. Current buffers are 4, buffer size is 16. Those numbers reflect the amount of physical RAM reserved for this trace. Because my VM does not use WLAN, AKA “wireless”, this trace is doing nothing for my VM now, and will not as long as I do not use wireless. Therefore the recommendation to disable this trace and free these resources."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"KeyName": "HKLM:\\SYSTEM\\CurrentControlSet\\Control\\WMI\\Autologger\\WiFiDriverIHVSession\\",
|
||||||
|
"URL": "https://docs.microsoft.com/en-us/windows-hardware/drivers/network/user-initiated-feedback-normal-mode",
|
||||||
|
"Disabled": true,
|
||||||
|
"Description": "This log is a container for “user-initiated feedback” for wireless networking (Wi-Fi). If the VMs were to emulate wireless networking, you might just leave this one alone. Also, this trace is enabled by default, but not run until triggered, presumably from a user-initiated feedback for a wireless issue. The Windows diagnostics would run, gather some information from the current system including an event trace, and then send that information to Microsoft."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"KeyName": "HKLM:\\SYSTEM\\CurrentControlSet\\Control\\WMI\\Autologger\\WiFiSession\\",
|
||||||
|
"URL": "N/A",
|
||||||
|
"Disabled": true,
|
||||||
|
"Description": "Not documented, but not hard to understand. This is another diagnostic log for the Windows Diagnostics. If your VMs are not using Wi-Fi, this log is not needed. You could though leave this alone as it would almost never be started unless a user started a troubleshooter, and troubleshooters are usually disabled in VDI environments."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"KeyName": "HKLM:\\SYSTEM\\CurrentControlSet\\Control\\WMI\\Autologger\\ReFSLog\\",
|
||||||
|
"URL": "N/A",
|
||||||
|
"Disabled": true,
|
||||||
|
"Description": "Diagnostic log for ReFS. Unless using ReFS, this trace log should not be needed"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"KeyName": "HKLM:\\SYSTEM\\CurrentControlSet\\Control\\WMI\\Autologger\\Mellanox-Kernel\\",
|
||||||
|
"URL": "N/A",
|
||||||
|
"Disabled": true,
|
||||||
|
"Description": "Diagnostic log for ReFS. Unless using ReFS, this trace log should not be needed"
|
||||||
|
}
|
||||||
|
]
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<DefaultAssociations>
|
||||||
|
</DefaultAssociations>
|
||||||
422
VDOT/ConfigurationFiles/DefaultUserSettings.json
Normal file
422
VDOT/ConfigurationFiles/DefaultUserSettings.json
Normal file
@@ -0,0 +1,422 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"HivePath": "HKLM:\\VDOT_TEMP\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced",
|
||||||
|
"KeyName": "Start_IrisRecommendations",
|
||||||
|
"PropertyType": "DWord",
|
||||||
|
"PropertyValue": "0",
|
||||||
|
"SetProperty": "True"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"HivePath": "HKLM:\\VDOT_TEMP\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced",
|
||||||
|
"KeyName": "TaskbarMn",
|
||||||
|
"PropertyType": "DWord",
|
||||||
|
"PropertyValue": "0",
|
||||||
|
"SetProperty": "True"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"HivePath": "HKLM:\\VDOT_TEMP\\SOFTWARE\\Policies\\Microsoft\\Windows\\CloudContent",
|
||||||
|
"KeyName": "DisableThirdPartySuggestions",
|
||||||
|
"PropertyType": "DWord",
|
||||||
|
"PropertyValue": "1",
|
||||||
|
"SetProperty": "True"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"HivePath": "HKLM:\\VDOT_TEMP\\SOFTWARE\\Policies\\Microsoft\\Windows\\CloudContent",
|
||||||
|
"KeyName": "DisableTailoredExperiencesWithDiagnosticData",
|
||||||
|
"PropertyType": "DWord",
|
||||||
|
"PropertyValue": "1",
|
||||||
|
"SetProperty": "True"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"HivePath": "HKLM:\\VDOT_TEMP\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer",
|
||||||
|
"KeyName": "NoResolveSearch",
|
||||||
|
"PropertyType": "DWord",
|
||||||
|
"PropertyValue": "1",
|
||||||
|
"SetProperty": "True"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"HivePath": "HKLM:\\VDOT_TEMP\\SOFTWARE\\Policies\\Microsoft\\Windows\\Directory UI",
|
||||||
|
"KeyName": "QueryLimit",
|
||||||
|
"PropertyType": "DWord",
|
||||||
|
"PropertyValue": "1500",
|
||||||
|
"SetProperty": "True"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"HivePath": "HKLM:\\VDOT_TEMP\\SOFTWARE\\Policies\\Microsoft\\Windows\\Explorer",
|
||||||
|
"KeyName": "NoWindowMinimizingShortcuts",
|
||||||
|
"PropertyType": "DWord",
|
||||||
|
"PropertyValue": "1",
|
||||||
|
"SetProperty": "True"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"HivePath": "HKLM:\\VDOT_TEMP\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer",
|
||||||
|
"KeyName": "TaskbarNoNotification",
|
||||||
|
"PropertyType": "DWord",
|
||||||
|
"PropertyValue": "1",
|
||||||
|
"SetProperty": "True"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"HivePath": "HKLM:\\VDOT_TEMP\\SOFTWARE\\Policies\\Microsoft\\Windows\\CloudContent",
|
||||||
|
"KeyName": "DisableWindowsSpotlightFeatures",
|
||||||
|
"PropertyType": "DWord",
|
||||||
|
"PropertyValue": "1",
|
||||||
|
"SetProperty": "True"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"HivePath": "HKLM:\\VDOT_TEMP\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer",
|
||||||
|
"KeyName": "NoThumbnailCache",
|
||||||
|
"PropertyType": "DWord",
|
||||||
|
"PropertyValue": "1",
|
||||||
|
"SetProperty": "True"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"HivePath": "HKLM:\\VDOT_TEMP\\SOFTWARE\\Policies\\Microsoft\\Windows\\Explorer",
|
||||||
|
"KeyName": "DisableSearchBoxSuggestions",
|
||||||
|
"PropertyType": "DWord",
|
||||||
|
"PropertyValue": "1",
|
||||||
|
"SetProperty": "True"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"HivePath": "HKLM:\\VDOT_TEMP\\SOFTWARE\\Policies\\Microsoft\\Windows\\Explorer",
|
||||||
|
"KeyName": "NoBalloonFeatureAdvertisements",
|
||||||
|
"PropertyType": "DWord",
|
||||||
|
"PropertyValue": "",
|
||||||
|
"SetProperty": "True"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"HivePath": "HKLM:\\VDOT_TEMP\\SOFTWARE\\Policies\\Microsoft\\Control Panel\\International",
|
||||||
|
"KeyName": "TurnOffOfferTextPredictions",
|
||||||
|
"PropertyType": "DWord",
|
||||||
|
"PropertyValue": "1",
|
||||||
|
"SetProperty": "True"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"HivePath": "HKLM:\\VDOT_TEMP\\SOFTWARE\\Policies\\Microsoft\\Windows\\Explorer",
|
||||||
|
"KeyName": "DisableThumbsDBOnNetworkFolders",
|
||||||
|
"PropertyType": "DWord",
|
||||||
|
"PropertyValue": "1",
|
||||||
|
"SetProperty": "True"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"HivePath": "HKLM:\\VDOT_TEMP\\SOFTWARE\\Policies\\Microsoft\\Windows\\CurrentVersion\\PushNotifications",
|
||||||
|
"KeyName": "NoToastApplicationNotification",
|
||||||
|
"PropertyType": "DWord",
|
||||||
|
"PropertyValue": "1",
|
||||||
|
"SetProperty": "True"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"HivePath": "HKLM:\\VDOT_TEMP\\SOFTWARE\\Policies\\Microsoft\\Windows\\CurrentVersion\\PushNotifications",
|
||||||
|
"KeyName": "NoToastApplicationNotificationOnLockScreen",
|
||||||
|
"PropertyType": "DWord",
|
||||||
|
"PropertyValue": "1",
|
||||||
|
"SetProperty": "True"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"HivePath": "HKLM:\\VDOT_TEMP\\SOFTWARE\\Policies\\Microsoft\\Windows\\EdgeUI",
|
||||||
|
"KeyName": "DisableMFUTracking",
|
||||||
|
"PropertyType": "DWord",
|
||||||
|
"PropertyValue": "1",
|
||||||
|
"SetProperty": "True"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"HivePath": "HKLM:\\VDOT_TEMP\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer",
|
||||||
|
"KeyName": "NoInstrumentation",
|
||||||
|
"PropertyType": "DWord",
|
||||||
|
"PropertyValue": "",
|
||||||
|
"SetProperty": "True"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"HivePath": "HKLM:\\VDOT_TEMP\\SOFTWARE\\Policies\\Microsoft\\Edge\\Recommended",
|
||||||
|
"KeyName": "StartupBoostEnabled",
|
||||||
|
"PropertyType": "DWord",
|
||||||
|
"PropertyValue": "0",
|
||||||
|
"SetProperty": "True"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"HivePath": "HKLM:\\VDOT_TEMP\\SOFTWARE\\Policies\\Microsoft\\EdgeUpdate",
|
||||||
|
"KeyName": "UpdatesSuppressedDurationMin",
|
||||||
|
"PropertyType": "DWord",
|
||||||
|
"PropertyValue": "900",
|
||||||
|
"SetProperty": "True"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"HivePath": "HKLM:\\VDOT_TEMP\\SOFTWARE\\Policies\\Microsoft\\EdgeUpdate",
|
||||||
|
"KeyName": "UpdatesSuppressedStartHour",
|
||||||
|
"PropertyType": "DWord",
|
||||||
|
"PropertyValue": "4",
|
||||||
|
"SetProperty": "True"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"HivePath": "HKLM:\\VDOT_TEMP\\SOFTWARE\\Policies\\Microsoft\\EdgeUpdate",
|
||||||
|
"KeyName": "UpdatesSuppressedStartMin",
|
||||||
|
"PropertyType": "DWord",
|
||||||
|
"PropertyValue": "0",
|
||||||
|
"SetProperty": "True"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"HivePath": "HKLM:\\VDOT_TEMP\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer",
|
||||||
|
"KeyName": "NoSearchInternetInStartMenu",
|
||||||
|
"PropertyType": "DWord",
|
||||||
|
"PropertyValue": "1",
|
||||||
|
"SetProperty": "True"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"HivePath": "HKLM:\\VDOT_TEMP\\SOFTWARE\\Policies\\Microsoft\\Windows\\Explorer",
|
||||||
|
"KeyName": "NoRemoteDestinations",
|
||||||
|
"PropertyType": "DWord",
|
||||||
|
"PropertyValue": "1",
|
||||||
|
"SetProperty": "True"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"HivePath": "HKLM:\\VDOT_TEMP\\SOFTWARE\\Policies\\Microsoft\\Windows\\CloudContent",
|
||||||
|
"KeyName": "ConfigureWindowsSpotlight",
|
||||||
|
"PropertyType": "DWord",
|
||||||
|
"PropertyValue": "2",
|
||||||
|
"SetProperty": "True"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"HivePath": "HKLM:\\VDOT_TEMP\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer",
|
||||||
|
"KeyName": "ShellState",
|
||||||
|
"PropertyType": "BINARY",
|
||||||
|
"PropertyValue": "0x24,0x00,0x00,0x00,0x3C,0x28,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00",
|
||||||
|
"SetProperty": "True"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"HivePath": "HKLM:\\VDOT_TEMP\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced",
|
||||||
|
"KeyName": "IconsOnly",
|
||||||
|
"PropertyType": "DWORD",
|
||||||
|
"PropertyValue": 1,
|
||||||
|
"SetProperty": "False"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"HivePath": "HKLM:\\VDOT_TEMP\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced",
|
||||||
|
"KeyName": "ListviewAlphaSelect",
|
||||||
|
"PropertyType": "DWORD",
|
||||||
|
"PropertyValue": 0,
|
||||||
|
"SetProperty": "True"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"HivePath": "HKLM:\\VDOT_TEMP\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced",
|
||||||
|
"KeyName": "ListviewShadow",
|
||||||
|
"PropertyType": "DWORD",
|
||||||
|
"PropertyValue": 0,
|
||||||
|
"SetProperty": "True"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"HivePath": "HKLM:\\VDOT_TEMP\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced",
|
||||||
|
"KeyName": "ShowCompColor",
|
||||||
|
"PropertyType": "DWORD",
|
||||||
|
"PropertyValue": 1,
|
||||||
|
"SetProperty": "True"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"HivePath": "HKLM:\\VDOT_TEMP\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced",
|
||||||
|
"KeyName": "ShowInfoTip",
|
||||||
|
"PropertyType": "DWORD",
|
||||||
|
"PropertyValue": 1,
|
||||||
|
"SetProperty": "True"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"HivePath": "HKLM:\\VDOT_TEMP\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced",
|
||||||
|
"KeyName": "TaskbarAnimations",
|
||||||
|
"PropertyType": "DWORD",
|
||||||
|
"PropertyValue": 0,
|
||||||
|
"SetProperty": "True"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"HivePath": "HKLM:\\VDOT_TEMP\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\VisualEffects",
|
||||||
|
"KeyName": "VisualFXSetting",
|
||||||
|
"PropertyType": "DWORD",
|
||||||
|
"PropertyValue": 3,
|
||||||
|
"SetProperty": "True"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"HivePath": "HKLM:\\VDOT_TEMP\\Software\\Microsoft\\Windows\\DWM",
|
||||||
|
"KeyName": "EnableAeroPeek",
|
||||||
|
"PropertyType": "DWORD",
|
||||||
|
"PropertyValue": 0,
|
||||||
|
"SetProperty": "True"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"HivePath": "HKLM:\\VDOT_TEMP\\Software\\Microsoft\\Windows\\DWM",
|
||||||
|
"KeyName": "AlwaysHibernateThumbnails",
|
||||||
|
"PropertyType": "DWORD",
|
||||||
|
"PropertyValue": 0,
|
||||||
|
"SetProperty": "True"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"HivePath": "HKLM:\\VDOT_TEMP\\Control Panel\\Desktop",
|
||||||
|
"KeyName": "DragFullWindows",
|
||||||
|
"PropertyType": "STRING",
|
||||||
|
"PropertyValue": 0,
|
||||||
|
"SetProperty": "True"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"HivePath": "HKLM:\\VDOT_TEMP\\Control Panel\\Desktop",
|
||||||
|
"KeyName": "FontSmoothing",
|
||||||
|
"PropertyType": "STRING",
|
||||||
|
"PropertyValue": 2,
|
||||||
|
"SetProperty": "True"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"HivePath": "HKLM:\\VDOT_TEMP\\Control Panel\\Desktop",
|
||||||
|
"KeyName": "UserPreferencesMask",
|
||||||
|
"PropertyType": "BINARY",
|
||||||
|
"PropertyValue": "0x90,0x32,0x03,0x80,0x10,0x00,0x00,0x00",
|
||||||
|
"SetProperty": "True"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"HivePath": "HKLM:\\VDOT_TEMP\\Control Panel\\Desktop\\WindowMetrics",
|
||||||
|
"KeyName": "MinAnimate",
|
||||||
|
"PropertyType": "STRING",
|
||||||
|
"PropertyValue": 0,
|
||||||
|
"SetProperty": "True"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"HivePath": "HKLM:\\VDOT_TEMP\\Software\\Microsoft\\Windows\\CurrentVersion\\StorageSense\\Parameters\\StoragePolicy",
|
||||||
|
"KeyName": "01",
|
||||||
|
"PropertyType": "DWORD",
|
||||||
|
"PropertyValue": 0,
|
||||||
|
"SetProperty": "True"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"HivePath": "HKLM:\\VDOT_TEMP\\Software\\Microsoft\\Windows\\CurrentVersion\\ContentDeliveryManager",
|
||||||
|
"KeyName": "SystemPaneSuggestionsEnabled",
|
||||||
|
"PropertyType": "DWORD",
|
||||||
|
"PropertyValue": 0,
|
||||||
|
"SetProperty": "True"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"HivePath": "HKLM:\\VDOT_TEMP\\Control Panel\\International\\User Profile",
|
||||||
|
"KeyName": "HttpAcceptLanguageOptOut",
|
||||||
|
"PropertyType": "DWORD",
|
||||||
|
"PropertyValue": 1,
|
||||||
|
"SetProperty": "True"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"HivePath": "HKLM:\\VDOT_TEMP\\Software\\Microsoft\\Windows\\CurrentVersion\\BackgroundAccessApplications\\Microsoft.Windows.Photos_8wekyb3d8bbwe",
|
||||||
|
"KeyName": "Disabled",
|
||||||
|
"PropertyType": "DWORD",
|
||||||
|
"PropertyValue": 1,
|
||||||
|
"SetProperty": "True"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"HivePath": "HKLM:\\VDOT_TEMP\\Software\\Microsoft\\Windows\\CurrentVersion\\BackgroundAccessApplications\\Microsoft.Windows.Photos_8wekyb3d8bbwe",
|
||||||
|
"KeyName": "DisabledByUser",
|
||||||
|
"PropertyType": "DWORD",
|
||||||
|
"PropertyValue": 1,
|
||||||
|
"SetProperty": "True"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"HivePath": "HKLM:\\VDOT_TEMP\\Software\\Microsoft\\Windows\\CurrentVersion\\BackgroundAccessApplications\\Microsoft.SkypeApp_kzf8qxf38zg5c",
|
||||||
|
"KeyName": "Disabled",
|
||||||
|
"PropertyType": "DWORD",
|
||||||
|
"PropertyValue": 1,
|
||||||
|
"SetProperty": "True"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"HivePath": "HKLM:\\VDOT_TEMP\\Software\\Microsoft\\Windows\\CurrentVersion\\BackgroundAccessApplications\\Microsoft.SkypeApp_kzf8qxf38zg5c",
|
||||||
|
"KeyName": "DisabledByUser",
|
||||||
|
"PropertyType": "DWORD",
|
||||||
|
"PropertyValue": 1,
|
||||||
|
"SetProperty": "True"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"HivePath": "HKLM:\\VDOT_TEMP\\Software\\Microsoft\\Windows\\CurrentVersion\\BackgroundAccessApplications\\Microsoft.YourPhone_8wekyb3d8bbwe",
|
||||||
|
"KeyName": "Disabled",
|
||||||
|
"PropertyType": "DWORD",
|
||||||
|
"PropertyValue": 1,
|
||||||
|
"SetProperty": "True"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"HivePath": "HKLM:\\VDOT_TEMP\\Software\\Microsoft\\Windows\\CurrentVersion\\BackgroundAccessApplications\\Microsoft.YourPhone_8wekyb3d8bbwe",
|
||||||
|
"KeyName": "DisabledByUser",
|
||||||
|
"PropertyType": "DWORD",
|
||||||
|
"PropertyValue": 1,
|
||||||
|
"SetProperty": "True"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"HivePath": "HKLM:\\VDOT_TEMP\\Software\\Microsoft\\Windows\\CurrentVersion\\BackgroundAccessApplications\\Microsoft.MicrosoftEdge_8wekyb3d8bbwe",
|
||||||
|
"KeyName": "Disabled",
|
||||||
|
"PropertyType": "DWORD",
|
||||||
|
"PropertyValue": 1,
|
||||||
|
"SetProperty": "True"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"HivePath": "HKLM:\\VDOT_TEMP\\Software\\Microsoft\\Windows\\CurrentVersion\\BackgroundAccessApplications\\Microsoft.MicrosoftEdge_8wekyb3d8bbwe",
|
||||||
|
"KeyName": "DisabledByUser",
|
||||||
|
"PropertyType": "DWORD",
|
||||||
|
"PropertyValue": 1,
|
||||||
|
"SetProperty": "True"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"HivePath": "HKLM:\\VDOT_TEMP\\Software\\Microsoft\\Windows\\CurrentVersion\\BackgroundAccessApplications\\Microsoft.549981C3F5F10_8wekyb3d8bbwe",
|
||||||
|
"KeyName": "Disabled",
|
||||||
|
"PropertyType": "DWORD",
|
||||||
|
"PropertyValue": 1,
|
||||||
|
"SetProperty": "True"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"HivePath": "HKLM:\\VDOT_TEMP\\Software\\Microsoft\\Windows\\CurrentVersion\\BackgroundAccessApplications\\Microsoft.549981C3F5F10_8wekyb3d8bbwe",
|
||||||
|
"KeyName": "DisabledByUser",
|
||||||
|
"PropertyType": "DWORD",
|
||||||
|
"PropertyValue": 1,
|
||||||
|
"SetProperty": "True"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"HivePath": "HKLM:\\VDOT_TEMP\\Software\\Microsoft\\Windows\\CurrentVersion\\CPSS\\Store\\InkingAndTypingPersonalization",
|
||||||
|
"KeyName": "Value",
|
||||||
|
"PropertyType": "DWORD",
|
||||||
|
"PropertyValue": 0,
|
||||||
|
"SetProperty": "True"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"HivePath": "HKLM:\\VDOT_TEMP\\Software\\Microsoft\\InputPersonalization",
|
||||||
|
"KeyName": "RestrictImplicitInkCollection",
|
||||||
|
"PropertyType": "DWORD",
|
||||||
|
"PropertyValue": 1,
|
||||||
|
"SetProperty": "True"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"HivePath": "HKLM:\\VDOT_TEMP\\Software\\Microsoft\\InputPersonalization",
|
||||||
|
"KeyName": "RestrictImplicitTextCollection",
|
||||||
|
"PropertyType": "DWORD",
|
||||||
|
"PropertyValue": 1,
|
||||||
|
"SetProperty": "True"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"HivePath": "HKLM:\\VDOT_TEMP\\Software\\Microsoft\\InputPersonalization\\TrainedDataStore",
|
||||||
|
"KeyName": "HarvestContacts",
|
||||||
|
"PropertyType": "DWORD",
|
||||||
|
"PropertyValue": 0,
|
||||||
|
"SetProperty": "True"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"HivePath": "HKLM:\\VDOT_TEMP\\Software\\Microsoft\\Windows\\CurrentVersion\\UserProfileEngagement",
|
||||||
|
"KeyName": "ScoobeSystemSettingEnabled",
|
||||||
|
"PropertyType": "DWORD",
|
||||||
|
"PropertyValue": 0,
|
||||||
|
"SetProperty": "True"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"HivePath": "HKLM:\\VDOT_TEMP\\Software\\Microsoft\\GameBar",
|
||||||
|
"KeyName": "UseNexusForGameBarEnabled",
|
||||||
|
"PropertyType": "DWORD",
|
||||||
|
"PropertyValue": 0,
|
||||||
|
"SetProperty": "True"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"HivePath": "HKLM:\\VDOT_TEMP\\Software\\Microsoft\\Windows\\CurrentVersion\\GameBar",
|
||||||
|
"KeyName": "AppCaptureEnabled",
|
||||||
|
"PropertyType": "DWORD",
|
||||||
|
"PropertyValue": 0,
|
||||||
|
"SetProperty": "True"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"HivePath": "HKLM:\\VDOT_TEMP\\Software\\SOFTWARE\\Policies\\Microsoft\\Windows\\WindowsCopilot",
|
||||||
|
"KeyName": "TurnOffWindowsCopilot",
|
||||||
|
"PropertyType": "DWORD",
|
||||||
|
"PropertyValue": 1,
|
||||||
|
"SetProperty": "False"
|
||||||
|
}
|
||||||
|
]
|
||||||
74
VDOT/ConfigurationFiles/EdgeSettings.json
Normal file
74
VDOT/ConfigurationFiles/EdgeSettings.json
Normal file
@@ -0,0 +1,74 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"Description": "Allows Microsoft Edge processes to start at OS sign-in and keep running after the last browser window is closed.",
|
||||||
|
"RegItemPath": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Edge",
|
||||||
|
"RegItemValueName": "BackgroundModeEnabled",
|
||||||
|
"RegItemValueType": "DWord",
|
||||||
|
"RegItemValue": "0",
|
||||||
|
"VDIState": "Enabled"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Description": "If you enable this policy, the First-run experience and the splash screen will not be shown to users when they run Microsoft Edge for the first time.",
|
||||||
|
"RegItemPath": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Edge",
|
||||||
|
"RegItemValueName": "HideFirstRunExperience",
|
||||||
|
"RegItemValueType": "DWord",
|
||||||
|
"RegItemValue": "1",
|
||||||
|
"VDIState": "Enabled"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Description": "This policy gives an option to disable one-time redirection dialog and the banner.",
|
||||||
|
"RegItemPath": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Edge",
|
||||||
|
"RegItemValueName": "HideInternetExplorerRedirectUXForIncompatibleSitesEnabled",
|
||||||
|
"RegItemValueType": "DWord",
|
||||||
|
"RegItemValue": "1",
|
||||||
|
"VDIState": "Enabled"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Description": "This policy setting lets you decide whether employees should receive recommendations and in-product assistance notifications from Microsoft Edge.",
|
||||||
|
"RegItemPath": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Edge",
|
||||||
|
"RegItemValueName": "ShowRecommendationsEnabled",
|
||||||
|
"RegItemValueType": "DWord",
|
||||||
|
"RegItemValue": "0",
|
||||||
|
"VDIState": "Enabled"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Description": "This policy lets you restrict launching of Internet Explorer as a standalone browser",
|
||||||
|
"RegItemPath": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Internet Explorer\\Main",
|
||||||
|
"RegItemValueName": "NotifyDisableIEOptions",
|
||||||
|
"RegItemValueType": "DWord",
|
||||||
|
"RegItemValue": "0",
|
||||||
|
"VDIState": "Enabled"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Description": "This policy specifies the path to a file (e.g. either stored locally or on a network location) that contains file type and protocol default application associations.",
|
||||||
|
"RegItemPath": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\System",
|
||||||
|
"RegItemValueName": "DefaultAssociationsConfiguration",
|
||||||
|
"RegItemValueType": "String",
|
||||||
|
"RegItemValue": "c:\\windows\\system32\\defaultassociations.xml",
|
||||||
|
"VDIState": "Unchanged"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Description": "Allows Microsoft Edge processes to start at OS sign-in and restart in background after the last browser window is closed.",
|
||||||
|
"RegItemPath": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Edge",
|
||||||
|
"RegItemValueName": "StartupBoostEnabled",
|
||||||
|
"RegItemValueType": "DWord",
|
||||||
|
"RegItemValue": "0",
|
||||||
|
"VDIState": "Enabled"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Description": "Efficiency mode is always active. Efficiency mode is designed to help reduce background processing and extend battery life. It minimizes power usage by reducing resource usage (CPU usage) through modifying certain tab activity on tabs you’re not interacting with and putting inactive background tabs to sleep after 5 minutes or less. Supported since Edge v96.",
|
||||||
|
"RegItemPath": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Edge",
|
||||||
|
"RegItemValueName": "EfficiencyMode",
|
||||||
|
"RegItemValueType": "DWord",
|
||||||
|
"RegItemValue": "0",
|
||||||
|
"VDIState": "Enabled"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Description": "Policy setting to control an Edge search bar that gets placed on the user desktop automatically",
|
||||||
|
"RegItemPath": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Edge",
|
||||||
|
"RegItemValueName": "WebWidgetAllowed",
|
||||||
|
"RegItemValueType": "DWord",
|
||||||
|
"RegItemValue": "0",
|
||||||
|
"VDIState": "Enabled"
|
||||||
|
}
|
||||||
|
]
|
||||||
37
VDOT/ConfigurationFiles/LanManWorkstation.json
Normal file
37
VDOT/ConfigurationFiles/LanManWorkstation.json
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"HivePath": "HKLM:\\System\\CurrentControlSet\\Services\\LanmanWorkstation\\Parameters\\",
|
||||||
|
"Keys": [
|
||||||
|
{
|
||||||
|
"Name": "DisableBandwidthThrottling",
|
||||||
|
"PropertyType": "DWORD",
|
||||||
|
"PropertyValue": 1,
|
||||||
|
"SetProperty": "True"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "FileInfoCacheEntriesMax",
|
||||||
|
"PropertyType": "DWORD",
|
||||||
|
"PropertyValue": 1024,
|
||||||
|
"SetProperty": "True"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "DirectoryCacheEntriesMax",
|
||||||
|
"PropertyType": "DWORD",
|
||||||
|
"PropertyValue": 1024,
|
||||||
|
"SetProperty": "True"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "FileNotFoundCacheEntriesMax",
|
||||||
|
"PropertyType": "DWORD",
|
||||||
|
"PropertyValue": 1024,
|
||||||
|
"SetProperty": "True"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "DormantFileLimit",
|
||||||
|
"PropertyType": "DWORD",
|
||||||
|
"PropertyValue": 256,
|
||||||
|
"SetProperty": "True"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
1008
VDOT/ConfigurationFiles/PolicyRegSettings.json
Normal file
1008
VDOT/ConfigurationFiles/PolicyRegSettings.json
Normal file
File diff suppressed because it is too large
Load Diff
147
VDOT/ConfigurationFiles/ScheduledTasks.json
Normal file
147
VDOT/ConfigurationFiles/ScheduledTasks.json
Normal file
@@ -0,0 +1,147 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"ScheduledTask": "AnalyzeSystem",
|
||||||
|
"VDIState": "Disabled",
|
||||||
|
"Description": "This task analyzes the system looking for conditions that may cause high energy use."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ScheduledTask": "Cellular",
|
||||||
|
"VDIState": "Disabled",
|
||||||
|
"Description": "Related to cellular devices"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ScheduledTask": "Consolidator",
|
||||||
|
"VDIState": "Disabled",
|
||||||
|
"Description": "If the user has consented to participate in the Windows Customer Experience Improvement Program, this job collects and sends usage data to Microsoft."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ScheduledTask": "Diagnostics",
|
||||||
|
"VDIState": "Disabled",
|
||||||
|
"Description": "(DiskFootprint in task path) 'DiskFootprint' is the combined contribution of all processes that issue storage I/O in the form of storage reads, writes, and flushes."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ScheduledTask": "FamilySafetyMonitor",
|
||||||
|
"VDIState": "Disabled",
|
||||||
|
"Description": "Initializes Family Safety monitoring and enforcement."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ScheduledTask": "FamilySafetyRefreshTask",
|
||||||
|
"VDIState": "Disabled",
|
||||||
|
"Description": "Synchronizes the latest settings with the Microsoft family features service."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ScheduledTask": "MapsToastTask",
|
||||||
|
"VDIState": "Disabled",
|
||||||
|
"Description": "This task shows various Map related toasts"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ScheduledTask": "*Compatibility*",
|
||||||
|
"VDIState": "Disabled",
|
||||||
|
"Description": "Collects program telemetry information if opted-in to the Microsoft Customer Experience Improvement Program."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ScheduledTask": "Microsoft-Windows-DiskDiagnosticDataCollector",
|
||||||
|
"VDIState": "Disabled",
|
||||||
|
"Description": "The Windows Disk Diagnostic reports general disk and system information to Microsoft for users participating in the Customer Experience Program."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ScheduledTask": "NotificationTask",
|
||||||
|
"VDIState": "Disabled",
|
||||||
|
"Description": "Background task for performing per user and web interactions"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ScheduledTask": "ProcessMemoryDiagnosticEvents",
|
||||||
|
"VDIState": "Disabled",
|
||||||
|
"Description": "Schedules a memory diagnostic in response to system events."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ScheduledTask": "Proxy",
|
||||||
|
"VDIState": "Disabled",
|
||||||
|
"Description": "This task collects and uploads autochk SQM data if opted-in to the Microsoft Customer Experience Improvement Program."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ScheduledTask": "QueueReporting",
|
||||||
|
"VDIState": "Disabled",
|
||||||
|
"Description": " "
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ScheduledTask": "RecommendedTroubleshootingScanner",
|
||||||
|
"VDIState": "Disabled",
|
||||||
|
"Description": "Check for recommended troubleshooting from Microsoft"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ScheduledTask": "RegIdleBackup",
|
||||||
|
"VDIState": "Disabled",
|
||||||
|
"Description": "Registry Idle Backup Task"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ScheduledTask": "RunFullMemoryDiagnostic",
|
||||||
|
"VDIState": "Disabled",
|
||||||
|
"Description": "Detects and mitigates problems in physical memory (RAM)."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ScheduledTask": "ScheduledDefrag",
|
||||||
|
"VDIState": "Disabled",
|
||||||
|
"Description": "This task optimizes local storage drives."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ScheduledTask": "SpeechModelDownloadTask",
|
||||||
|
"VDIState": "Disabled",
|
||||||
|
"Description": null
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ScheduledTask": "Sqm-Tasks",
|
||||||
|
"VDIState": "Disabled",
|
||||||
|
"Description": "This task gathers information about the Trusted Platform Module (TPM), Secure Boot, and Measured Boot."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ScheduledTask": "SR",
|
||||||
|
"VDIState": "Disabled",
|
||||||
|
"Description": "This task creates regular system protection points."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ScheduledTask": "StartComponentCleanup",
|
||||||
|
"VDIState": "Disabled",
|
||||||
|
"Description": "Servicing task that may be better performed during maintenance windows"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ScheduledTask": "WindowsActionDialog",
|
||||||
|
"VDIState": "Disabled",
|
||||||
|
"Description": "Location Notification"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ScheduledTask": "WinSAT",
|
||||||
|
"VDIState": "Disabled",
|
||||||
|
"Description": "Measures a system's performance and capabilities"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ScheduledTask": "XblGameSaveTask",
|
||||||
|
"VDIState": "Disabled",
|
||||||
|
"Description": "Xbox Live GameSave standby task"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ScheduledTask": "UsbCeip",
|
||||||
|
"VDIState": "Disabled",
|
||||||
|
"Description": "Customer Experience Improvement Program task"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ScheduledTask": "VerifyWinRE",
|
||||||
|
"VDIState": "Disabled",
|
||||||
|
"Description": "Customer Experience Improvement Program task"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ScheduledTask": "Work Folders Logon Synchronization",
|
||||||
|
"VDIState": "Disabled",
|
||||||
|
"Description": "Customer Experience Improvement Program task"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ScheduledTask": "Work Folders Maintenance Work",
|
||||||
|
"VDIState": "Disabled",
|
||||||
|
"Description": "Customer Experience Improvement Program task"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ScheduledTask": "Restore",
|
||||||
|
"VDIState": "Disabled",
|
||||||
|
"Description": "Handles restoring settings from the cloud"
|
||||||
|
}
|
||||||
|
]
|
||||||
128
VDOT/ConfigurationFiles/Services.json
Normal file
128
VDOT/ConfigurationFiles/Services.json
Normal file
@@ -0,0 +1,128 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"Name": "InstallService",
|
||||||
|
"VDIState": "Unchanged",
|
||||||
|
"URL": "",
|
||||||
|
"Description": "Provides infrastructure support for the Microsoft Store."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "autotimesvc",
|
||||||
|
"VDIState": "Disabled",
|
||||||
|
"URL": "https://docs.microsoft.com/en-us/windows-hardware/drivers/network/mb-nitz-support",
|
||||||
|
"Description": "Cellular Time service: this service sets time based on NITZ messages from a Mobile Network"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "BcastDVRUserService",
|
||||||
|
"VDIState": "Disabled",
|
||||||
|
"URL": "https://docs.microsoft.com/en-us/windows-hardware/drivers/network/mb-nitz-support",
|
||||||
|
"Description": "This user service is used for Game Recordings and Live Broadcasts"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "defragsvc",
|
||||||
|
"VDIState": "Unchanged",
|
||||||
|
"Description": "Optimize drives"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "DiagSvc",
|
||||||
|
"VDIState": "Disabled",
|
||||||
|
"Description": "Diagnostic Execution Service"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "DiagTrack",
|
||||||
|
"VDIState": "Disabled",
|
||||||
|
"Description": "Connected User Experiences and Telemetry."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "DPS",
|
||||||
|
"VDIState": "Disabled",
|
||||||
|
"URL": "https://docs.microsoft.com/en-us/uwp/api/Windows.System.Diagnostics?view=winrt-19041",
|
||||||
|
"Description": "The Diagnostic Policy Service enables problem detection, troubleshooting and resolution for Windows components. If this service is stopped, diagnostics will no longer function."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "DusmSvc",
|
||||||
|
"VDIState": "Disabled",
|
||||||
|
"URL": "https://docs.microsoft.com/en-us/uwp/schemas/mobilebroadbandschema/dusm/schema-root",
|
||||||
|
"Description": "Data Usage service: network data usage, data limit, restrict background data, metered networks."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "icssvc",
|
||||||
|
"VDIState": "Disabled",
|
||||||
|
"URL": "https://docs.microsoft.com/en-us/uwp/api/Windows.Networking.NetworkOperators.NetworkOperatorTetheringAccessPointConfiguration?view=winrt-19041",
|
||||||
|
"Description": "Windows Mobile Hotspot (tethering) service: provides the ability to share a cellular data connection with another device."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "lfsvc",
|
||||||
|
"VDIState": "Disabled",
|
||||||
|
"URL": "https://docs.microsoft.com/en-us/uwp/api/Windows.Devices.Geolocation?view=winrt-19041",
|
||||||
|
"Description": "Geolocation Service. This service monitors the current location of the system and manages geofences (a geographical location with associated events). If you turn off this service, applications will be unable to use or receive notifications for geolocation or geofences."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "MapsBroker",
|
||||||
|
"VDIState": "Disabled",
|
||||||
|
"URL": "https://docs.microsoft.com/en-us/uwp/api/Windows.Services.Maps?view=winrt-19041",
|
||||||
|
"Description": "Downloaded maps manager. Windows service for application access to downloaded maps."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "MessagingService",
|
||||||
|
"VDIState": "Disabled",
|
||||||
|
"Description": "Service supporting text messaging and related functionality."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "RmSvc",
|
||||||
|
"VDIState": "Disabled",
|
||||||
|
"Description": "Radio Management and Airplane Mode Service."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "SEMgrSvc",
|
||||||
|
"VDIState": "Disabled",
|
||||||
|
"Description": "Payments and NFC/SE Manager: manages payments and Near Field Communication (NFC) based secure elements."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "SmsRouter",
|
||||||
|
"VDIState": "Disabled",
|
||||||
|
"URL": "https://docs.microsoft.com/en-us/dotnet/framework/wcf/feature-details/routing-service",
|
||||||
|
"Description": "Microsoft Windows SMS Router Service: routes messages based on rules to appropriate clients.."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "SysMain",
|
||||||
|
"VDIState": "Disabled",
|
||||||
|
"Description": "Maintains and improves system performance over time."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "VSS",
|
||||||
|
"VDIState": "Unchanged",
|
||||||
|
"URL": "https://docs.microsoft.com/en-us/windows-server/storage/file-server/volume-shadow-copy-service",
|
||||||
|
"Description": "Volume Shadow Copy"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "WdiSystemHost",
|
||||||
|
"VDIState": "Disabled",
|
||||||
|
"Description": "Diagnostic System Host service. The Diagnostic System Host is used by the Diagnostic Policy Service to host diagnostics that need to run in a Local System context. If this service is stopped, any diagnostics that depend on it will no longer function."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "WerSvc",
|
||||||
|
"VDIState": "Disabled",
|
||||||
|
"URL": "https://docs.microsoft.com/en-us/windows/win32/wer/windows-error-reporting",
|
||||||
|
"Description": "Windows Error Reporting Service allows errors to be reported when programs stop working or responding and allows existing solutions to be delivered. Also allows logs to be generated for diagnostic and repair services."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "XblAuthManager",
|
||||||
|
"VDIState": "Disabled",
|
||||||
|
"Description": "Xbox Live Auth Manager service provides authentication and authorization services for interacting with Xbox Live."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "XblGameSave",
|
||||||
|
"VDIState": "Disabled",
|
||||||
|
"Description": "Xbox Live Game Save service syncs save data for Xbox Live save enabled games."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "XboxGipSvc",
|
||||||
|
"VDIState": "Disabled",
|
||||||
|
"Description": "Xbox Accessory Management manages connected Xbox accessories."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "XboxNetApiSvc",
|
||||||
|
"VDIState": "Disabled",
|
||||||
|
"Description": "Xbox Live Networking Service"
|
||||||
|
}
|
||||||
|
]
|
||||||
43
VDOT/VDOT_WhatIf.ps1
Normal file
43
VDOT/VDOT_WhatIf.ps1
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
#Change directory to the directory of your configuration files
|
||||||
|
#Example c:\Virtual-Desktop-Optimization-Tool\2009
|
||||||
|
|
||||||
|
$FileName = "VDOT_WhatIf_" + (get-date -format 'MMddyyyy_hhmmss') +".txt"
|
||||||
|
New-Item $FileName | Out-Null
|
||||||
|
|
||||||
|
$AppxConfigFilePath = "$PSScriptRoot\ConfigurationFiles\AppxPackages.json"
|
||||||
|
$AppxPackage = (Get-Content $AppxConfigFilePath | ConvertFrom-Json).Where( { $_.VDIState -eq 'Disabled' })
|
||||||
|
"Appx Packages" | Out-File $FileName -Append
|
||||||
|
$AppxPackage | Out-File $FileName -Append
|
||||||
|
|
||||||
|
$ScheduledTasksFilePath = "$PSScriptRoot\ConfigurationFiles\ScheduledTasks.json"
|
||||||
|
$SchTasksList = (Get-Content $ScheduledTasksFilePath | ConvertFrom-Json).Where( { $_.VDIState -eq 'Disabled' })
|
||||||
|
"Scheduled Tasks" | Out-File $FileName -Append
|
||||||
|
$SchTasksList | Out-File $FileName -Append
|
||||||
|
|
||||||
|
$DefaultUserSettingsFilePath = "$PSScriptRoot\ConfigurationFiles\DefaultUserSettings.json"
|
||||||
|
$UserSettings = (Get-Content $DefaultUserSettingsFilePath | ConvertFrom-Json).Where( { $_.SetProperty -eq $true })
|
||||||
|
"Default User Settings" | Out-File $FileName -Append
|
||||||
|
$UserSettings | Out-File $FileName -Append
|
||||||
|
|
||||||
|
$AutoLoggersFilePath = "$PSScriptRoot\ConfigurationFiles\Autologgers.Json"
|
||||||
|
$DisabledAutologgers = (Get-Content $AutoLoggersFilePath | ConvertFrom-Json).Where( { $_.Disabled -eq 'True' })
|
||||||
|
"Auto Loggers" | Out-File $FileName -Append
|
||||||
|
$DisabledAutologgers | Out-File $FileName -Append
|
||||||
|
|
||||||
|
$ServicesFilePath = "$PSScriptRoot\ConfigurationFiles\Services.json"
|
||||||
|
$DisabledServices = (Get-Content $ServicesFilePath | ConvertFrom-Json ).Where( { $_.VDIState -eq 'Disabled' })
|
||||||
|
"Disabled Services" | Out-File $FileName -Append
|
||||||
|
$DisabledServices | Out-File $FileName -Append
|
||||||
|
|
||||||
|
$NetworkOptimizationsFilePath = "$PSScriptRoot\ConfigurationFiles\LanManWorkstation.json"
|
||||||
|
$LanManSettings = Get-Content $NetworkOptimizationsFilePath | ConvertFrom-Json
|
||||||
|
"Network Optimizations" | Out-File $FileName -Append
|
||||||
|
$LanManSettings.HivePath | Out-File $FileName -Append
|
||||||
|
$LanManSettings.keys | Out-File $FileName -Append
|
||||||
|
|
||||||
|
$LocalPolicyFilePath = "$PSScriptRoot\ConfigurationFiles\PolicyRegSettings.json"
|
||||||
|
$PolicyRegSettings = (Get-Content $LocalPolicyFilePath | ConvertFrom-Json).Where( { $_.VDIState -eq 'Disabled' })
|
||||||
|
"Resistry Policy Settings" | Out-File $FileName -Append
|
||||||
|
$PolicyRegSettings | Out-File $FileName -Append
|
||||||
|
|
||||||
|
|
||||||
755
VDOT/Windows_VDOT.ps1
Normal file
755
VDOT/Windows_VDOT.ps1
Normal file
@@ -0,0 +1,755 @@
|
|||||||
|
<#####################################################################################################################################
|
||||||
|
|
||||||
|
This Sample Code is provided for the purpose of illustration only and is not intended to be used in a production environment.
|
||||||
|
THIS SAMPLE CODE AND ANY RELATED INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED,
|
||||||
|
INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. We grant
|
||||||
|
You a nonexclusive, royalty-free right to use and modify the Sample Code and to reproduce and distribute the object code form
|
||||||
|
of the Sample Code, provided that You agree: (i) to not use Our name, logo, or trademarks to market Your software product in
|
||||||
|
which the Sample Code is embedded; (ii) to include a valid copyright notice on Your software product in which the Sample Code
|
||||||
|
is embedded; and (iii) to indemnify, hold harmless, and defend Us and Our suppliers from and against any claims or lawsuits,
|
||||||
|
including attorneys’ fees, that arise or result from the use or distribution of the Sample Code.
|
||||||
|
|
||||||
|
Microsoft provides programming examples for illustration only, without warranty either expressed or
|
||||||
|
implied, including, but not limited to, the implied warranties of merchantability and/or fitness
|
||||||
|
for a particular purpose.
|
||||||
|
|
||||||
|
This sample assumes that you are familiar with the programming language being demonstrated and the
|
||||||
|
tools used to create and debug procedures. Microsoft support professionals can help explain the
|
||||||
|
functionality of a particular procedure, but they will not modify these examples to provide added
|
||||||
|
functionality or construct procedures to meet your specific needs. if you have limited programming
|
||||||
|
experience, you may want to contact a Microsoft Certified Partner or the Microsoft fee-based consulting
|
||||||
|
line at (800) 936-5200.
|
||||||
|
|
||||||
|
For more information about Microsoft Certified Partners, please visit the following Microsoft Web site:
|
||||||
|
https://partner.microsoft.com/global/30000104
|
||||||
|
|
||||||
|
######################################################################################################################################>
|
||||||
|
|
||||||
|
[Cmdletbinding(DefaultParameterSetName="Default")]
|
||||||
|
Param (
|
||||||
|
# Parameter help description
|
||||||
|
[ArgumentCompleter( { Get-ChildItem $PSScriptRoot -Directory | Select-Object -ExpandProperty Name } )]
|
||||||
|
[System.String]$WindowsVersion = (Get-ItemProperty "HKLM:\Software\Microsoft\Windows NT\CurrentVersion\").ReleaseId,
|
||||||
|
|
||||||
|
[ValidateSet('All','WindowsMediaPlayer','AppxPackages','ScheduledTasks','DefaultUserSettings','LocalPolicy','Autologgers','Services','NetworkOptimizations','DiskCleanup')]
|
||||||
|
[String[]]
|
||||||
|
$Optimizations,
|
||||||
|
|
||||||
|
[Parameter()]
|
||||||
|
[ValidateSet('All', 'Edge', 'RemoveLegacyIE', 'RemoveOneDrive')]
|
||||||
|
[String[]]
|
||||||
|
$AdvancedOptimizations,
|
||||||
|
|
||||||
|
[Switch]$Restart,
|
||||||
|
[Switch]$AcceptEULA
|
||||||
|
)
|
||||||
|
|
||||||
|
#Requires -RunAsAdministrator
|
||||||
|
#Requires -PSEdition Desktop
|
||||||
|
|
||||||
|
<#
|
||||||
|
- TITLE: Microsoft Windows Virtual Desktop Optimization Script
|
||||||
|
- AUTHORED BY: Robert M. Smith and Tim Muessig (Microsoft)
|
||||||
|
- AUTHORED DATE: 11/19/2019
|
||||||
|
- CONTRIBUTORS: Travis Roberts (2020), Jason Parker (2020), @brentil (2024)
|
||||||
|
- LAST UPDATED: 6/11/2024
|
||||||
|
- PURPOSE: To automatically apply many optimization settings to and Windows device; VDI, AVD, standalone machine
|
||||||
|
|
||||||
|
- Important: Every setting in this script and input files are possible optimizations only,
|
||||||
|
and NOT recommendations or requirements. Please evaluate every setting for applicability
|
||||||
|
to your specific environment. These scripts have been tested on Hyper-V VMs, as well as Azure VMs...
|
||||||
|
including Windows 11 23H2.
|
||||||
|
Please test thoroughly in your environment before implementation
|
||||||
|
|
||||||
|
- DEPENDENCIES 1. On the target machine, run PowerShell elevated (as administrator)
|
||||||
|
2. Within PowerShell, set exectuion policy to enable the running of scripts.
|
||||||
|
Ex. Set-ExecutionPolicy -ExecutionPolicy RemoteSigned
|
||||||
|
5. This PowerShell script
|
||||||
|
6. The text input files containing all the apps, services, traces, etc. that you...
|
||||||
|
may be interested in disabling. Please review these input files to customize...
|
||||||
|
to your environment/requirements
|
||||||
|
|
||||||
|
- REFERENCES:
|
||||||
|
https://social.technet.microsoft.com/wiki/contents/articles/7703.powershell-running-executables.aspx
|
||||||
|
https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/remove-item?view=powershell-6
|
||||||
|
https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/set-service?view=powershell-6
|
||||||
|
https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/remove-item?view=powershell-6
|
||||||
|
https://msdn.microsoft.com/en-us/library/cc422938.aspx
|
||||||
|
#>
|
||||||
|
|
||||||
|
<# Categories of cleanup items:
|
||||||
|
|
||||||
|
The UWP app input file contains the list of almost all the UWP application packages that can be removed with PowerShell interactively.
|
||||||
|
The Store and a few others, such as Wallet, were left off intentionally. Though it is possible to remove the Store app,
|
||||||
|
it is nearly impossible to get it back. Please review the configuration files and change the 'VDIState' to anything but 'disabled' to keep the item.
|
||||||
|
#>
|
||||||
|
BEGIN
|
||||||
|
{
|
||||||
|
[Version]$VDOTVersion = "2.1.2009.1"
|
||||||
|
# Create Key
|
||||||
|
$KeyPath = 'HKLM:\SOFTWARE\VDOT'
|
||||||
|
If (-Not(Test-Path $KeyPath))
|
||||||
|
{
|
||||||
|
New-Item -Path $KeyPath | Out-Null
|
||||||
|
}
|
||||||
|
|
||||||
|
# Add VDOT Version Key
|
||||||
|
$Version = "Version"
|
||||||
|
$VersionValue = $VDOTVersion
|
||||||
|
If (Get-ItemProperty $KeyPath -Name Version -ErrorAction SilentlyContinue)
|
||||||
|
{
|
||||||
|
Set-ItemProperty -Path $KeyPath -Name $Version -Value $VersionValue
|
||||||
|
}
|
||||||
|
Else
|
||||||
|
{
|
||||||
|
New-ItemProperty -Path $KeyPath -Name $Version -Value $VersionValue | Out-Null
|
||||||
|
}
|
||||||
|
|
||||||
|
# Add VDOT Last Run
|
||||||
|
$LastRun = "LastRunTime"
|
||||||
|
$LastRunValue = Get-Date
|
||||||
|
If (Get-ItemProperty $KeyPath -Name LastRunTime -ErrorAction SilentlyContinue)
|
||||||
|
{
|
||||||
|
Set-ItemProperty -Path $KeyPath -Name $LastRun -Value $LastRunValue
|
||||||
|
}
|
||||||
|
Else
|
||||||
|
{
|
||||||
|
New-ItemProperty -Path $KeyPath -Name $LastRun -Value $LastRunValue | Out-Null
|
||||||
|
}
|
||||||
|
|
||||||
|
$EventSources = @('VDOT', 'WindowsMediaPlayer', 'AppxPackages', 'ScheduledTasks', 'DefaultUserSettings', 'Autologgers', 'Services', 'LocalPolicy', 'NetworkOptimizations', 'AdvancedOptimizations', 'DiskCleanup')
|
||||||
|
If (-not([System.Diagnostics.EventLog]::SourceExists("Virtual Desktop Optimization")))
|
||||||
|
{
|
||||||
|
# All VDOT main function Event ID's [1-9]
|
||||||
|
New-EventLog -Source $EventSources -LogName 'Virtual Desktop Optimization'
|
||||||
|
Limit-EventLog -OverflowAction OverWriteAsNeeded -MaximumSize 64KB -LogName 'Virtual Desktop Optimization'
|
||||||
|
Write-EventLog -LogName 'Virtual Desktop Optimization' -Source 'VDOT' -EntryType Information -EventId 1 -Message "Log Created"
|
||||||
|
}
|
||||||
|
Else
|
||||||
|
{
|
||||||
|
New-EventLog -Source $EventSources -LogName 'Virtual Desktop Optimization' -ErrorAction SilentlyContinue
|
||||||
|
}
|
||||||
|
Write-EventLog -LogName 'Virtual Desktop Optimization' -Source 'VDOT' -EntryType Information -EventId 1 -Message "Starting VDOT by user '$env:USERNAME', for VDOT build '$WindowsVersion', with the following options:`n$($PSBoundParameters | Out-String)"
|
||||||
|
|
||||||
|
$StartTime = Get-Date
|
||||||
|
$CurrentLocation = Get-Location
|
||||||
|
$WorkingLocation = (Join-Path $PSScriptRoot $WindowsVersion)
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
Push-Location (Join-Path $PSScriptRoot $WindowsVersion)-ErrorAction Stop
|
||||||
|
}
|
||||||
|
catch
|
||||||
|
{
|
||||||
|
$Message = "Invalid Path $WorkingLocation - Exiting Script!"
|
||||||
|
Write-EventLog -Message $Message -Source 'VDOT' -EventID 100 -EntryType Error -LogName 'Virtual Desktop Optimization'
|
||||||
|
Write-Warning $Message
|
||||||
|
Return
|
||||||
|
}
|
||||||
|
}
|
||||||
|
PROCESS {
|
||||||
|
if (-not ($PSBoundParameters.Keys -match 'Optimizations') )
|
||||||
|
{
|
||||||
|
Write-EventLog -Message "No Optimizations (Optimizations or AdvancedOptimizations) passed, exiting script!" -Source 'VDOT' -EventID 100 -EntryType Error -LogName 'Virtual Desktop Optimization'
|
||||||
|
$Message = "`nThe Optimizations parameter no longer defaults to 'All', you must explicitly pass in this parameter.`nThis is to allow for running 'AdvancedOptimizations' separately "
|
||||||
|
Write-Host " * " -ForegroundColor black -BackgroundColor yellow -NoNewline
|
||||||
|
Write-Host " Important " -ForegroundColor Yellow -BackgroundColor Red -NoNewline
|
||||||
|
Write-Host " * " -ForegroundColor black -BackgroundColor yellow -NoNewline
|
||||||
|
Write-Host $Message -ForegroundColor yellow -BackgroundColor black
|
||||||
|
Return
|
||||||
|
}
|
||||||
|
$EULA = Get-Content ..\EULA.txt
|
||||||
|
If (-not($AcceptEULA))
|
||||||
|
{
|
||||||
|
$Title = "Accept EULA"
|
||||||
|
$Message = ""
|
||||||
|
$yes = New-Object System.Management.Automation.Host.ChoiceDescription "&Yes"
|
||||||
|
$no = New-Object System.Management.Automation.Host.ChoiceDescription "&No"
|
||||||
|
$Options = [System.Management.Automation.Host.ChoiceDescription[]]($yes, $no)
|
||||||
|
$EULA
|
||||||
|
$Response = $host.UI.PromptForChoice($Title, $Message, $Options, 0)
|
||||||
|
If ($Response -eq 0)
|
||||||
|
{
|
||||||
|
Write-EventLog -LogName 'Virtual Desktop Optimization' -Source 'VDOT' -EntryType Information -EventId 1 -Message "EULA Accepted"
|
||||||
|
}
|
||||||
|
Else
|
||||||
|
{
|
||||||
|
Write-EventLog -LogName 'Virtual Desktop Optimization' -Source 'VDOT' -EntryType Warning -EventId 1 -Message "EULA Declined, exiting!"
|
||||||
|
Set-Location $CurrentLocation
|
||||||
|
$EndTime = Get-Date
|
||||||
|
$ScriptRunTime = New-TimeSpan -Start $StartTime -End $EndTime
|
||||||
|
Write-EventLog -LogName 'Virtual Desktop Optimization' -Source 'VDOT' -EntryType Information -EventId 1 -Message "VDOT Total Run Time: $($ScriptRunTime.Hours) Hours $($ScriptRunTime.Minutes) Minutes $($ScriptRunTime.Seconds) Seconds"
|
||||||
|
Write-Host "`n`nThank you from the Virtual Desktop Optimization Team" -ForegroundColor Cyan
|
||||||
|
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Else
|
||||||
|
{
|
||||||
|
Write-EventLog -LogName 'Virtual Desktop Optimization' -Source 'VDOT' -EntryType Information -EventId 1 -Message "EULA Accepted by Parameter"
|
||||||
|
}
|
||||||
|
|
||||||
|
#region Disable, then remove, Windows Media Player including payload
|
||||||
|
If ($Optimizations -contains "WindowsMediaPlayer" -or $Optimizations -contains "All") {
|
||||||
|
try
|
||||||
|
{
|
||||||
|
Write-EventLog -EventId 10 -Message "[VDI Optimize] Disable / Remove Windows Media Player" -LogName 'Virtual Desktop Optimization' -Source 'WindowsMediaPlayer' -EntryType Information
|
||||||
|
Write-Host "[VDI Optimize] Disable / Remove Windows Media Player" -ForegroundColor Cyan
|
||||||
|
Disable-WindowsOptionalFeature -Online -FeatureName WindowsMediaPlayer -NoRestart | Out-Null
|
||||||
|
Get-WindowsPackage -Online -PackageName "*Windows-mediaplayer*" | ForEach-Object {
|
||||||
|
Write-EventLog -EventId 10 -Message "Removing $($_.PackageName)" -LogName 'Virtual Desktop Optimization' -Source 'WindowsMediaPlayer' -EntryType Information
|
||||||
|
Remove-WindowsPackage -PackageName $_.PackageName -Online -ErrorAction SilentlyContinue -NoRestart | Out-Null
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch
|
||||||
|
{
|
||||||
|
Write-EventLog -EventId 110 -Message "Disabling / Removing Windows Media Player - $($_.Exception.Message)" -LogName 'Virtual Desktop Optimization' -Source 'WindowsMediaPlayer' -EntryType Error
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region Begin Clean APPX Packages
|
||||||
|
If ($Optimizations -contains "AppxPackages" -or $Optimizations -contains "All")
|
||||||
|
{
|
||||||
|
$AppxConfigFilePath = ".\ConfigurationFiles\AppxPackages.json"
|
||||||
|
If (Test-Path $AppxConfigFilePath)
|
||||||
|
{
|
||||||
|
Write-EventLog -EventId 20 -Message "[VDI Optimize] Removing Appx Packages" -LogName 'Virtual Desktop Optimization' -Source 'AppxPackages' -EntryType Information
|
||||||
|
Write-Host "[VDI Optimize] Removing Appx Packages" -ForegroundColor Cyan
|
||||||
|
$AppxPackage = (Get-Content $AppxConfigFilePath | ConvertFrom-Json).Where( { $_.VDIState -eq 'Disabled' })
|
||||||
|
If ($AppxPackage.Count -gt 0)
|
||||||
|
{
|
||||||
|
Foreach ($Item in $AppxPackage)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
Write-EventLog -EventId 20 -Message "Removing Provisioned Package $($Item.AppxPackage)" -LogName 'Virtual Desktop Optimization' -Source 'AppxPackages' -EntryType Information
|
||||||
|
Write-Verbose "Removing Provisioned Package $($Item.AppxPackage)"
|
||||||
|
Get-AppxProvisionedPackage -Online | Where-Object { $_.PackageName -like ("*{0}*" -f $Item.AppxPackage) } | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue | Out-Null
|
||||||
|
|
||||||
|
Write-EventLog -EventId 20 -Message "Attempting to remove [All Users] $($Item.AppxPackage) - $($Item.Description)" -LogName 'Virtual Desktop Optimization' -Source 'AppxPackages' -EntryType Information
|
||||||
|
Write-Verbose "Attempting to remove [All Users] $($Item.AppxPackage) - $($Item.Description)"
|
||||||
|
Get-AppxPackage -AllUsers -Name ("*{0}*" -f $Item.AppxPackage) | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue
|
||||||
|
|
||||||
|
Write-EventLog -EventId 20 -Message "Attempting to remove $($Item.AppxPackage) - $($Item.Description)" -LogName 'Virtual Desktop Optimization' -Source 'AppxPackages' -EntryType Information
|
||||||
|
Write-Verbose "Attempting to remove $($Item.AppxPackage) - $($Item.Description)"
|
||||||
|
Get-AppxPackage -Name ("*{0}*" -f $Item.AppxPackage) | Remove-AppxPackage -ErrorAction SilentlyContinue | Out-Null
|
||||||
|
}
|
||||||
|
catch
|
||||||
|
{
|
||||||
|
Write-EventLog -EventId 120 -Message "Failed to remove Appx Package $($Item.AppxPackage) - $($_.Exception.Message)" -LogName 'Virtual Desktop Optimization' -Source 'AppxPackages' -EntryType Error
|
||||||
|
Write-Warning "Failed to remove Appx Package $($Item.AppxPackage) - $($_.Exception.Message)"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Else
|
||||||
|
{
|
||||||
|
Write-EventLog -EventId 20 -Message "No AppxPackages found to disable" -LogName 'Virtual Desktop Optimization' -Source 'AppxPackages' -EntryType Warning
|
||||||
|
Write-Warning "No AppxPackages found to disable in $AppxConfigFilePath"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Else
|
||||||
|
{
|
||||||
|
|
||||||
|
Write-EventLog -EventId 20 -Message "Configuration file not found - $AppxConfigFilePath" -LogName 'Virtual Desktop Optimization' -Source 'AppxPackages' -EntryType Warning
|
||||||
|
Write-Warning "Configuration file not found - $AppxConfigFilePath"
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region Disable Scheduled Tasks
|
||||||
|
|
||||||
|
# This section is for disabling scheduled tasks. If you find a task that should not be disabled
|
||||||
|
# change its "VDIState" from Disabled to Enabled, or remove it from the json completely.
|
||||||
|
If ($Optimizations -contains 'ScheduledTasks' -or $Optimizations -contains "All") {
|
||||||
|
$ScheduledTasksFilePath = ".\ConfigurationFiles\ScheduledTasks.json"
|
||||||
|
If (Test-Path $ScheduledTasksFilePath)
|
||||||
|
{
|
||||||
|
Write-EventLog -EventId 30 -Message "[VDI Optimize] Disable Scheduled Tasks" -LogName 'Virtual Desktop Optimization' -Source 'ScheduledTasks' -EntryType Information
|
||||||
|
Write-Host "[VDI Optimize] Disable Scheduled Tasks" -ForegroundColor Cyan
|
||||||
|
$SchTasksList = (Get-Content $ScheduledTasksFilePath | ConvertFrom-Json).Where( { $_.VDIState -eq 'Disabled' })
|
||||||
|
If ($SchTasksList.count -gt 0)
|
||||||
|
{
|
||||||
|
Foreach ($Item in $SchTasksList)
|
||||||
|
{
|
||||||
|
$TaskObject = Get-ScheduledTask $Item.ScheduledTask
|
||||||
|
If ($TaskObject -and $TaskObject.State -ne 'Disabled')
|
||||||
|
{
|
||||||
|
Write-EventLog -EventId 30 -Message "Attempting to disable Scheduled Task: $($TaskObject.TaskName)" -LogName 'Virtual Desktop Optimization' -Source 'ScheduledTasks' -EntryType Information
|
||||||
|
Write-Verbose "Attempting to disable Scheduled Task: $($TaskObject.TaskName)"
|
||||||
|
try
|
||||||
|
{
|
||||||
|
Disable-ScheduledTask -InputObject $TaskObject | Out-Null
|
||||||
|
Write-EventLog -EventId 30 -Message "Disabled Scheduled Task: $($TaskObject.TaskName)" -LogName 'Virtual Desktop Optimization' -Source 'ScheduledTasks' -EntryType Information
|
||||||
|
}
|
||||||
|
catch
|
||||||
|
{
|
||||||
|
Write-EventLog -EventId 130 -Message "Failed to disabled Scheduled Task: $($TaskObject.TaskName) - $($_.Exception.Message)" -LogName 'Virtual Desktop Optimization' -Source 'ScheduledTasks' -EntryType Error
|
||||||
|
}
|
||||||
|
}
|
||||||
|
ElseIf ($TaskObject -and $TaskObject.State -eq 'Disabled')
|
||||||
|
{
|
||||||
|
Write-EventLog -EventId 30 -Message "$($TaskObject.TaskName) Scheduled Task is already disabled - $($_.Exception.Message)" -LogName 'Virtual Desktop Optimization' -Source 'ScheduledTasks' -EntryType Warning
|
||||||
|
}
|
||||||
|
Else
|
||||||
|
{
|
||||||
|
Write-EventLog -EventId 130 -Message "Unable to find Scheduled Task: $($TaskObject.TaskName) - $($_.Exception.Message)" -LogName 'Virtual Desktop Optimization' -Source 'ScheduledTasks' -EntryType Error
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Else
|
||||||
|
{
|
||||||
|
Write-EventLog -EventId 30 -Message "No Scheduled Tasks found to disable" -LogName 'Virtual Desktop Optimization' -Source 'ScheduledTasks' -EntryType Warning
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Else
|
||||||
|
{
|
||||||
|
Write-EventLog -EventId 30 -Message "File not found! - $ScheduledTasksFilePath" -LogName 'Virtual Desktop Optimization' -Source 'ScheduledTasks' -EntryType Warning
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region Customize Default User Profile
|
||||||
|
|
||||||
|
# Apply appearance customizations to default user registry hive, then close hive file
|
||||||
|
If ($Optimizations -contains "DefaultUserSettings" -or $Optimizations -contains "All")
|
||||||
|
{
|
||||||
|
$DefaultUserSettingsFilePath = ".\ConfigurationFiles\DefaultUserSettings.json"
|
||||||
|
If (Test-Path $DefaultUserSettingsFilePath)
|
||||||
|
{
|
||||||
|
Write-EventLog -EventId 40 -Message "Set Default User Settings" -LogName 'Virtual Desktop Optimization' -Source 'VDOT' -EntryType Information
|
||||||
|
Write-Host "[VDI Optimize] Set Default User Settings" -ForegroundColor Cyan
|
||||||
|
$UserSettings = (Get-Content $DefaultUserSettingsFilePath | ConvertFrom-Json).Where( { $_.SetProperty -eq $true })
|
||||||
|
If ($UserSettings.Count -gt 0)
|
||||||
|
{
|
||||||
|
Write-EventLog -EventId 40 -Message "Processing Default User Settings (Registry Keys)" -LogName 'Virtual Desktop Optimization' -Source 'DefaultUserSettings' -EntryType Information
|
||||||
|
Write-Verbose "Processing Default User Settings (Registry Keys)"
|
||||||
|
$null = Start-Process reg -ArgumentList "LOAD HKLM\VDOT_TEMP C:\Users\Default\NTUSER.DAT" -PassThru -Wait
|
||||||
|
# & REG LOAD HKLM\VDOT_TEMP C:\Users\Default\NTUSER.DAT | Out-Null
|
||||||
|
|
||||||
|
Foreach ($Item in $UserSettings)
|
||||||
|
{
|
||||||
|
If ($Item.PropertyType -eq "BINARY")
|
||||||
|
{
|
||||||
|
$Value = [byte[]]($Item.PropertyValue.Split(","))
|
||||||
|
}
|
||||||
|
Else
|
||||||
|
{
|
||||||
|
$Value = $Item.PropertyValue
|
||||||
|
}
|
||||||
|
|
||||||
|
If (Test-Path -Path ("{0}" -f $Item.HivePath))
|
||||||
|
{
|
||||||
|
Write-EventLog -EventId 40 -Message "Found $($Item.HivePath) - $($Item.KeyName)" -LogName 'Virtual Desktop Optimization' -Source 'DefaultUserSettings' -EntryType Information
|
||||||
|
Write-Verbose "Found $($Item.HivePath) - $($Item.KeyName)"
|
||||||
|
If (Get-ItemProperty -Path ("{0}" -f $Item.HivePath) -ErrorAction SilentlyContinue)
|
||||||
|
{
|
||||||
|
Write-EventLog -EventId 40 -Message "Set $($Item.HivePath) - $Value" -LogName 'Virtual Desktop Optimization' -Source 'DefaultUserSettings' -EntryType Information
|
||||||
|
Set-ItemProperty -Path ("{0}" -f $Item.HivePath) -Name $Item.KeyName -Value $Value -Type $Item.PropertyType -Force
|
||||||
|
}
|
||||||
|
Else
|
||||||
|
{
|
||||||
|
Write-EventLog -EventId 40 -Message "New $($Item.HivePath) Name $($Item.KeyName) PropertyType $($Item.PropertyType) Value $Value" -LogName 'Virtual Desktop Optimization' -Source 'DefaultUserSettings' -EntryType Information
|
||||||
|
New-ItemProperty -Path ("{0}" -f $Item.HivePath) -Name $Item.KeyName -PropertyType $Item.PropertyType -Value $Value -Force | Out-Null
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Else
|
||||||
|
{
|
||||||
|
Write-EventLog -EventId 40 -Message "Registry Path not found $($Item.HivePath)" -LogName 'Virtual Desktop Optimization' -Source 'DefaultUserSettings' -EntryType Information
|
||||||
|
Write-EventLog -EventId 40 -Message "Creating new Registry Key $($Item.HivePath)" -LogName 'Virtual Desktop Optimization' -Source 'DefaultUserSettings' -EntryType Information
|
||||||
|
$newKey = New-Item -Path ("{0}" -f $Item.HivePath) -Force
|
||||||
|
If (Test-Path -Path $newKey.PSPath)
|
||||||
|
{
|
||||||
|
New-ItemProperty -Path ("{0}" -f $Item.HivePath) -Name $Item.KeyName -PropertyType $Item.PropertyType -Value $Value -Force | Out-Null
|
||||||
|
}
|
||||||
|
Else
|
||||||
|
{
|
||||||
|
Write-EventLog -EventId 140 -Message "Failed to create new Registry Key" -LogName 'Virtual Desktop Optimization' -Source 'DefaultUserSettings' -EntryType Error
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$null = Start-Process reg -ArgumentList "UNLOAD HKLM\VDOT_TEMP" -PassThru -Wait
|
||||||
|
# & REG UNLOAD HKLM\VDOT_TEMP | Out-Null
|
||||||
|
}
|
||||||
|
Else
|
||||||
|
{
|
||||||
|
Write-EventLog -EventId 40 -Message "No Default User Settings to set" -LogName 'Virtual Desktop Optimization' -Source 'DefaultUserSettings' -EntryType Warning
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Else
|
||||||
|
{
|
||||||
|
Write-EventLog -EventId 40 -Message "File not found: $DefaultUserSettingsFilePath" -LogName 'Virtual Desktop Optimization' -Source 'DefaultUserSettings' -EntryType Warning
|
||||||
|
} }
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region Disable Windows Traces
|
||||||
|
If ($Optimizations -contains "AutoLoggers" -or $Optimizations -contains "All")
|
||||||
|
{
|
||||||
|
$AutoLoggersFilePath = ".\ConfigurationFiles\Autologgers.Json"
|
||||||
|
If (Test-Path $AutoLoggersFilePath)
|
||||||
|
{
|
||||||
|
Write-EventLog -EventId 50 -Message "Disable AutoLoggers" -LogName 'Virtual Desktop Optimization' -Source 'AutoLoggers' -EntryType Information
|
||||||
|
Write-Host "[VDI Optimize] Disable Autologgers" -ForegroundColor Cyan
|
||||||
|
$DisableAutologgers = (Get-Content $AutoLoggersFilePath | ConvertFrom-Json).Where( { $_.Disabled -eq 'True' })
|
||||||
|
If ($DisableAutologgers.count -gt 0)
|
||||||
|
{
|
||||||
|
Write-EventLog -EventId 50 -Message "Disable AutoLoggers" -LogName 'Virtual Desktop Optimization' -Source 'AutoLoggers' -EntryType Information
|
||||||
|
Write-Verbose "Processing Autologger Configuration File"
|
||||||
|
Foreach ($Item in $DisableAutologgers)
|
||||||
|
{
|
||||||
|
Write-EventLog -EventId 50 -Message "Updating Registry Key for: $($Item.KeyName)" -LogName 'Virtual Desktop Optimization' -Source 'AutoLoggers' -EntryType Information
|
||||||
|
Write-Verbose "Updating Registry Key for: $($Item.KeyName)"
|
||||||
|
Try
|
||||||
|
{
|
||||||
|
New-ItemProperty -Path ("{0}" -f $Item.KeyName) -Name "Start" -PropertyType "DWORD" -Value 0 -Force -ErrorAction Stop | Out-Null
|
||||||
|
}
|
||||||
|
Catch
|
||||||
|
{
|
||||||
|
Write-EventLog -EventId 150 -Message "Failed to add $($Item.KeyName)`n`n $($Error[0].Exception.Message)" -LogName 'Virtual Desktop Optimization' -Source 'AutoLoggers' -EntryType Error
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Else
|
||||||
|
{
|
||||||
|
Write-EventLog -EventId 50 -Message "No Autologgers found to disable" -LogName 'Virtual Desktop Optimization' -Source 'AutoLoggers' -EntryType Warning
|
||||||
|
Write-Verbose "No Autologgers found to disable"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Else
|
||||||
|
{
|
||||||
|
Write-EventLog -EventId 150 -Message "File not found: $AutoLoggersFilePath" -LogName 'Virtual Desktop Optimization' -Source 'AutoLoggers' -EntryType Error
|
||||||
|
Write-Warning "File Not Found: $AutoLoggersFilePath"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region Disable Services
|
||||||
|
If ($Optimizations -contains "Services" -or $Optimizations -contains "All")
|
||||||
|
{
|
||||||
|
$ServicesFilePath = ".\ConfigurationFiles\Services.json"
|
||||||
|
If (Test-Path $ServicesFilePath)
|
||||||
|
{
|
||||||
|
Write-EventLog -EventId 60 -Message "Disable Services" -LogName 'Virtual Desktop Optimization' -Source 'Services' -EntryType Information
|
||||||
|
Write-Host "[VDI Optimize] Disable Services" -ForegroundColor Cyan
|
||||||
|
$ServicesToDisable = (Get-Content $ServicesFilePath | ConvertFrom-Json ).Where( { $_.VDIState -eq 'Disabled' })
|
||||||
|
|
||||||
|
If ($ServicesToDisable.count -gt 0)
|
||||||
|
{
|
||||||
|
Write-EventLog -EventId 60 -Message "Processing Services Configuration File" -LogName 'Virtual Desktop Optimization' -Source 'Services' -EntryType Information
|
||||||
|
Write-Verbose "Processing Services Configuration File"
|
||||||
|
Foreach ($Item in $ServicesToDisable)
|
||||||
|
{
|
||||||
|
#Write-EventLog -EventId 60 -Message "Attempting to Stop Service $($Item.Name) - $($Item.Description)" -LogName 'Virtual Desktop Optimization' -Source 'Services' -EntryType Information
|
||||||
|
#Write-Verbose "Attempting to Stop Service $($Item.Name) - $($Item.Description)"
|
||||||
|
#try
|
||||||
|
#{
|
||||||
|
# Stop-Service $Item.Name -Force -ErrorAction SilentlyContinue
|
||||||
|
#}
|
||||||
|
#catch
|
||||||
|
#{
|
||||||
|
# Write-EventLog -EventId 160 -Message "Failed to disable Service: $($Item.Name) `n $($_.Exception.Message)" -LogName 'Virtual Desktop Optimization' -Source 'Services' -EntryType Error
|
||||||
|
# Write-Warning "Failed to disable Service: $($Item.Name) `n $($_.Exception.Message)"
|
||||||
|
#}
|
||||||
|
Write-EventLog -EventId 60 -Message "Attempting to disable Service $($Item.Name) - $($Item.Description)" -LogName 'Virtual Desktop Optimization' -Source 'Services' -EntryType Information
|
||||||
|
Write-Verbose "Attempting to disable Service $($Item.Name) - $($Item.Description)"
|
||||||
|
Set-Service $Item.Name -StartupType Disabled
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Else
|
||||||
|
{
|
||||||
|
Write-EventLog -EventId 60 -Message "No Services found to disable" -LogName 'Virtual Desktop Optimization' -Source 'Services' -EntryType Warnnig
|
||||||
|
Write-Verbose "No Services found to disable"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Else
|
||||||
|
{
|
||||||
|
Write-EventLog -EventId 160 -Message "File not found: $ServicesFilePath" -LogName 'Virtual Desktop Optimization' -Source 'Services' -EntryType Error
|
||||||
|
Write-Warning "File not found: $ServicesFilePath"
|
||||||
|
} }
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region Network Optimization
|
||||||
|
# LanManWorkstation optimizations
|
||||||
|
If ($Optimizations -contains "NetworkOptimizations" -or $Optimizations -contains "All")
|
||||||
|
{
|
||||||
|
$NetworkOptimizationsFilePath = ".\ConfigurationFiles\LanManWorkstation.json"
|
||||||
|
If (Test-Path $NetworkOptimizationsFilePath)
|
||||||
|
{
|
||||||
|
Write-EventLog -EventId 70 -Message "Configure LanManWorkstation Settings" -LogName 'Virtual Desktop Optimization' -Source 'NetworkOptimizations' -EntryType Information
|
||||||
|
Write-Host "[VDI Optimize] Configure LanManWorkstation Settings" -ForegroundColor Cyan
|
||||||
|
$LanManSettings = Get-Content $NetworkOptimizationsFilePath | ConvertFrom-Json
|
||||||
|
If ($LanManSettings.Count -gt 0)
|
||||||
|
{
|
||||||
|
Write-EventLog -EventId 70 -Message "Processing LanManWorkstation Settings ($($LanManSettings.Count) Hives)" -LogName 'Virtual Desktop Optimization' -Source 'NetworkOptimizations' -EntryType Information
|
||||||
|
Write-Verbose "Processing LanManWorkstation Settings ($($LanManSettings.Count) Hives)"
|
||||||
|
Foreach ($Hive in $LanManSettings)
|
||||||
|
{
|
||||||
|
If (Test-Path -Path $Hive.HivePath)
|
||||||
|
{
|
||||||
|
Write-EventLog -EventId 70 -Message "Found $($Hive.HivePath)" -LogName 'Virtual Desktop Optimization' -Source 'NetworkOptimizations' -EntryType Information
|
||||||
|
Write-Verbose "Found $($Hive.HivePath)"
|
||||||
|
$Keys = $Hive.Keys.Where{ $_.SetProperty -eq $true }
|
||||||
|
If ($Keys.Count -gt 0)
|
||||||
|
{
|
||||||
|
Write-EventLog -EventId 70 -Message "Create / Update LanManWorkstation Keys" -LogName 'Virtual Desktop Optimization' -Source 'NetworkOptimizations' -EntryType Information
|
||||||
|
Write-Verbose "Create / Update LanManWorkstation Keys"
|
||||||
|
Foreach ($Key in $Keys)
|
||||||
|
{
|
||||||
|
If (Get-ItemProperty -Path $Hive.HivePath -Name $Key.Name -ErrorAction SilentlyContinue)
|
||||||
|
{
|
||||||
|
Write-EventLog -EventId 70 -Message "Setting $($Hive.HivePath) -Name $($Key.Name) -Value $($Key.PropertyValue)" -LogName 'Virtual Desktop Optimization' -Source 'NetworkOptimizations' -EntryType Information
|
||||||
|
Write-Verbose "Setting $($Hive.HivePath) -Name $($Key.Name) -Value $($Key.PropertyValue)"
|
||||||
|
Set-ItemProperty -Path $Hive.HivePath -Name $Key.Name -Value $Key.PropertyValue -Force
|
||||||
|
}
|
||||||
|
Else
|
||||||
|
{
|
||||||
|
Write-EventLog -EventId 70 -Message "New $($Hive.HivePath) -Name $($Key.Name) -Value $($Key.PropertyValue)" -LogName 'Virtual Desktop Optimization' -Source 'NetworkOptimizations' -EntryType Information
|
||||||
|
Write-Host "New $($Hive.HivePath) -Name $($Key.Name) -Value $($Key.PropertyValue)"
|
||||||
|
New-ItemProperty -Path $Hive.HivePath -Name $Key.Name -PropertyType $Key.PropertyType -Value $Key.PropertyValue -Force | Out-Null
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Else
|
||||||
|
{
|
||||||
|
Write-EventLog -EventId 70 -Message "No LanManWorkstation Keys to create / update" -LogName 'Virtual Desktop Optimization' -Source 'NetworkOptimizations' -EntryType Warning
|
||||||
|
Write-Warning "No LanManWorkstation Keys to create / update"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Else
|
||||||
|
{
|
||||||
|
Write-EventLog -EventId 70 -Message "Registry Path not found $($Hive.HivePath)" -LogName 'Virtual Desktop Optimization' -Source 'NetworkOptimizations' -EntryType Warning
|
||||||
|
Write-Warning "Registry Path not found $($Hive.HivePath)"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Else
|
||||||
|
{
|
||||||
|
Write-EventLog -EventId 70 -Message "No LanManWorkstation Settings foun" -LogName 'Virtual Desktop Optimization' -Source 'NetworkOptimizations' -EntryType Warning
|
||||||
|
Write-Warning "No LanManWorkstation Settings found"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Else
|
||||||
|
{
|
||||||
|
Write-EventLog -EventId 70 -Message "File not found - $NetworkOptimizationsFilePath" -LogName 'Virtual Desktop Optimization' -Source 'NetworkOptimizations' -EntryType Warning
|
||||||
|
Write-Warning "File not found - $NetworkOptimizationsFilePath"
|
||||||
|
}
|
||||||
|
|
||||||
|
# NIC Advanced Properties performance settings for network biased environments
|
||||||
|
Write-EventLog -EventId 70 -Message "Configuring Network Adapter Buffer Size" -LogName 'Virtual Desktop Optimization' -Source 'NetworkOptimizations' -EntryType Information
|
||||||
|
Write-Host "[VDI Optimize] Configuring Network Adapter Buffer Size" -ForegroundColor Cyan
|
||||||
|
Set-NetAdapterAdvancedProperty -DisplayName "Send Buffer Size" -DisplayValue 4MB -NoRestart
|
||||||
|
<# NOTE:
|
||||||
|
Note that the above setting is for a Microsoft Hyper-V VM. You can adjust these values in your environment...
|
||||||
|
by querying in PowerShell using Get-NetAdapterAdvancedProperty, and then adjusting values using the...
|
||||||
|
Set-NetAdapterAdvancedProperty command.
|
||||||
|
#>
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region Local Group Policy Settings
|
||||||
|
# - This code does not:
|
||||||
|
# * set a lock screen image.
|
||||||
|
# * change the "Root Certificates Update" policy.
|
||||||
|
# * change the "Enable Windows NTP Client" setting.
|
||||||
|
# * set the "Select when Quality Updates are received" policy
|
||||||
|
If ($Optimizations -EQ "All")
|
||||||
|
{
|
||||||
|
$LocalPolicyFilePath = ".\ConfigurationFiles\PolicyRegSettings.json"
|
||||||
|
If (Test-Path $LocalPolicyFilePath)
|
||||||
|
{
|
||||||
|
Write-EventLog -EventId 80 -Message "Local Policy Items" -LogName 'Virtual Desktop Optimization' -Source 'LocalPolicy' -EntryType Information
|
||||||
|
Write-Host "[VDI Optimize] Local Group Policy Items" -ForegroundColor Cyan
|
||||||
|
$PolicyRegSettings = Get-Content $LocalPolicyFilePath | ConvertFrom-Json
|
||||||
|
If ($PolicyRegSettings.Count -gt 0)
|
||||||
|
{
|
||||||
|
Write-EventLog -EventId 80 -Message "Processing PolicyRegSettings Settings ($($PolicyRegSettings.Count) Hives)" -LogName 'Virtual Desktop Optimization' -Source 'LocalPolicy' -EntryType Information
|
||||||
|
Write-Verbose "Processing PolicyRegSettings Settings ($($PolicyRegSettings.Count) Hives)"
|
||||||
|
Foreach ($Key in $PolicyRegSettings)
|
||||||
|
{
|
||||||
|
If ($Key.VDIState -eq 'Enabled')
|
||||||
|
{
|
||||||
|
If (Get-ItemProperty -Path $Key.RegItemPath -Name $Key.RegItemValueName -ErrorAction SilentlyContinue)
|
||||||
|
{
|
||||||
|
Write-EventLog -EventId 80 -Message "Found key, $($Key.RegItemPath) Name $($Key.RegItemValueName) Value $($Key.RegItemValue)" -LogName 'Virtual Desktop Optimization' -Source 'LocalPolicy' -EntryType Information
|
||||||
|
Write-Verbose "Found key, $($Key.RegItemPath) Name $($Key.RegItemValueName) Value $($Key.RegItemValue)"
|
||||||
|
Set-ItemProperty -Path $Key.RegItemPath -Name $Key.RegItemValueName -Value $Key.RegItemValue -Force
|
||||||
|
}
|
||||||
|
Else
|
||||||
|
{
|
||||||
|
If (Test-path $Key.RegItemPath)
|
||||||
|
{
|
||||||
|
Write-EventLog -EventId 80 -Message "Path found, creating new property -Path $($Key.RegItemPath) -Name $($Key.RegItemValueName) -PropertyType $($Key.RegItemValueType) -Value $($Key.RegItemValue)" -LogName 'Virtual Desktop Optimization' -Source 'LocalPolicy' -EntryType Information
|
||||||
|
Write-Verbose "Path found, creating new property -Path $($Key.RegItemPath) Name $($Key.RegItemValueName) PropertyType $($Key.RegItemValueType) Value $($Key.RegItemValue)"
|
||||||
|
New-ItemProperty -Path $Key.RegItemPath -Name $Key.RegItemValueName -PropertyType $Key.RegItemValueType -Value $Key.RegItemValue -Force | Out-Null
|
||||||
|
}
|
||||||
|
Else
|
||||||
|
{
|
||||||
|
Write-EventLog -EventId 80 -Message "Error: Creating Name $($Key.RegItemValueName), Value $($Key.RegItemValue) and Path $($Key.RegItemPath)" -LogName 'Virtual Desktop Optimization' -Source 'LocalPolicy' -EntryType Information
|
||||||
|
Write-Verbose "Error: Creating Name $($Key.RegItemValueName), Value $($Key.RegItemValue) and Path $($Key.RegItemPath)"
|
||||||
|
New-Item -Path $Key.RegItemPath -Force | New-ItemProperty -Name $Key.RegItemValueName -PropertyType $Key.RegItemValueType -Value $Key.RegItemValue -Force | Out-Null
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Else
|
||||||
|
{
|
||||||
|
Write-EventLog -EventId 80 -Message "No LocalPolicy Settings Found!" -LogName 'Virtual Desktop Optimization' -Source 'LocalPolicy' -EntryType Warning
|
||||||
|
Write-Warning "No LocalPolicy Settings found"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region Edge Settings
|
||||||
|
If ($AdvancedOptimizations -contains "Edge" -or $AdvancedOptimizations -contains "All")
|
||||||
|
{
|
||||||
|
$EdgeFilePath = ".\ConfigurationFiles\EdgeSettings.json"
|
||||||
|
If (Test-Path $EdgeFilePath)
|
||||||
|
{
|
||||||
|
Write-EventLog -EventId 80 -Message "Edge Policy Settings" -LogName 'Virtual Desktop Optimization' -Source 'AdvancedOptimizations' -EntryType Information
|
||||||
|
Write-Host "[VDI Advanced Optimize] Edge Policy Settings" -ForegroundColor Cyan
|
||||||
|
$EdgeSettings = Get-Content $EdgeFilePath | ConvertFrom-Json
|
||||||
|
If ($EdgeSettings.Count -gt 0)
|
||||||
|
{
|
||||||
|
Write-EventLog -EventId 80 -Message "Processing Edge Policy Settings ($($EdgeSettings.Count) Hives)" -LogName 'Virtual Desktop Optimization' -Source 'AdvancedOptimizations' -EntryType Information
|
||||||
|
Write-Verbose "Processing Edge Policy Settings ($($EdgeSettings.Count) Hives)"
|
||||||
|
Foreach ($Key in $EdgeSettings)
|
||||||
|
{
|
||||||
|
If ($Key.VDIState -eq 'Enabled')
|
||||||
|
{
|
||||||
|
If ($key.RegItemValueName -eq 'DefaultAssociationsConfiguration')
|
||||||
|
{
|
||||||
|
Copy-Item .\ConfigurationFiles\DefaultAssociationsConfiguration.xml $key.RegItemValue -Force
|
||||||
|
}
|
||||||
|
If (Get-ItemProperty -Path $Key.RegItemPath -Name $Key.RegItemValueName -ErrorAction SilentlyContinue)
|
||||||
|
{
|
||||||
|
Write-EventLog -EventId 80 -Message "Found key, $($Key.RegItemPath) Name $($Key.RegItemValueName) Value $($Key.RegItemValue)" -LogName 'Virtual Desktop Optimization' -Source 'AdvancedOptimizations' -EntryType Information
|
||||||
|
Write-Verbose "Found key, $($Key.RegItemPath) Name $($Key.RegItemValueName) Value $($Key.RegItemValue)"
|
||||||
|
Set-ItemProperty -Path $Key.RegItemPath -Name $Key.RegItemValueName -Value $Key.RegItemValue -Force
|
||||||
|
}
|
||||||
|
Else
|
||||||
|
{
|
||||||
|
If (Test-path $Key.RegItemPath)
|
||||||
|
{
|
||||||
|
Write-EventLog -EventId 80 -Message "Path found, creating new property -Path $($Key.RegItemPath) -Name $($Key.RegItemValueName) -PropertyType $($Key.RegItemValueType) -Value $($Key.RegItemValue)" -LogName 'Virtual Desktop Optimization' -Source 'AdvancedOptimizations' -EntryType Information
|
||||||
|
Write-Verbose "Path found, creating new property -Path $($Key.RegItemPath) Name $($Key.RegItemValueName) PropertyType $($Key.RegItemValueType) Value $($Key.RegItemValue)"
|
||||||
|
New-ItemProperty -Path $Key.RegItemPath -Name $Key.RegItemValueName -PropertyType $Key.RegItemValueType -Value $Key.RegItemValue -Force | Out-Null
|
||||||
|
}
|
||||||
|
Else
|
||||||
|
{
|
||||||
|
Write-EventLog -EventId 80 -Message "Creating Key and Path" -LogName 'Virtual Desktop Optimization' -Source 'AdvancedOptimizations' -EntryType Information
|
||||||
|
Write-Verbose "Creating Key and Path"
|
||||||
|
New-Item -Path $Key.RegItemPath -Force | New-ItemProperty -Name $Key.RegItemValueName -PropertyType $Key.RegItemValueType -Value $Key.RegItemValue -Force | Out-Null
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Else
|
||||||
|
{
|
||||||
|
Write-EventLog -EventId 80 -Message "No Edge Policy Settings Found!" -LogName 'Virtual Desktop Optimization' -Source 'AdvancedOptimizations' -EntryType Warning
|
||||||
|
Write-Warning "No Edge Policy Settings found"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Else
|
||||||
|
{
|
||||||
|
# nothing to do here"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region Remove Legacy Internet Explorer
|
||||||
|
If ($AdvancedOptimizations -contains "RemoveLegacyIE" -or $AdvancedOptimizations -contains "All")
|
||||||
|
{
|
||||||
|
Write-EventLog -EventId 80 -Message "Remove Legacy Internet Explorer" -LogName 'Virtual Desktop Optimization' -Source 'AdvancedOptimizations' -EntryType Information
|
||||||
|
Write-Host "[VDI Advanced Optimize] Remove Legacy Internet Explorer" -ForegroundColor Cyan
|
||||||
|
Get-WindowsCapability -Online | Where-Object Name -Like "*Browser.Internet*" | Remove-WindowsCapability -Online
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region Remove OneDrive Commercial
|
||||||
|
If ($AdvancedOptimizations -contains "RemoveOneDrive" -or $AdvancedOptimizations -contains "All")
|
||||||
|
{
|
||||||
|
Write-EventLog -EventId 80 -Message "Remove OneDrive Commercial" -LogName 'Virtual Desktop Optimization' -Source 'AdvancedOptimizations' -EntryType Information
|
||||||
|
Write-Host "[VDI Advanced Optimize] Removing OneDrive Commercial" -ForegroundColor Cyan
|
||||||
|
$OneDrivePath = @('C:\Windows\System32\OneDriveSetup.exe', 'C:\Windows\SysWOW64\OneDriveSetup.exe')
|
||||||
|
$OneDrivePath | ForEach-Object {
|
||||||
|
If (Test-Path $_)
|
||||||
|
{
|
||||||
|
Write-Host "`tAttempting to uninstall $_"
|
||||||
|
Write-EventLog -EventId 80 -Message "Commercial $_" -LogName 'Virtual Desktop Optimization' -Source 'AdvancedOptimizations' -EntryType Information
|
||||||
|
Start-Process $_ -ArgumentList "/uninstall" -Wait
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Write-EventLog -EventId 80 -Message "Removing shortcut links for OneDrive" -LogName 'Virtual Desktop Optimization' -Source 'AdvancedOptimizations' -EntryType Information
|
||||||
|
Get-ChildItem 'C:\*' -Recurse -Force -EA SilentlyContinue -Include 'OneDrive','OneDrive.*' | Remove-Item -Force -Recurse -EA SilentlyContinue
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region Disk Cleanup
|
||||||
|
# Delete not in-use files in locations C:\Windows\Temp and %temp%
|
||||||
|
# Also sweep and delete *.tmp, *.etl, *.evtx, *.log, *.dmp, thumbcache*.db (not in use==not needed)
|
||||||
|
# 5/18/20: Removing Disk Cleanup and moving some of those tasks to the following manual cleanup
|
||||||
|
If ($Optimizations -contains "DiskCleanup" -or $Optimizations -contains "All")
|
||||||
|
{
|
||||||
|
Write-EventLog -EventId 90 -Message "Removing .tmp, .etl, .evtx, thumbcache*.db, *.log files not in use" -LogName 'Virtual Desktop Optimization' -Source 'DiskCleanup' -EntryType Information
|
||||||
|
Write-Host "Removing .tmp, .etl, .evtx, thumbcache*.db, *.log files not in use"
|
||||||
|
Get-ChildItem -Path c:\ -Include *.tmp, *.dmp, *.etl, *.evtx, thumbcache*.db, *.log -File -Recurse -Force -ErrorAction SilentlyContinue | Remove-Item -ErrorAction SilentlyContinue
|
||||||
|
|
||||||
|
# Delete "RetailDemo" content (if it exits)
|
||||||
|
Write-EventLog -EventId 90 -Message "Removing Retail Demo content (if it exists)" -LogName 'Virtual Desktop Optimization' -Source 'DiskCleanup' -EntryType Information
|
||||||
|
Write-Host "Removing Retail Demo content (if it exists)"
|
||||||
|
Get-ChildItem -Path $env:ProgramData\Microsoft\Windows\RetailDemo\* -Recurse -Force -ErrorAction SilentlyContinue | Remove-Item -Recurse -ErrorAction SilentlyContinue
|
||||||
|
|
||||||
|
# Delete not in-use anything in the C:\Windows\Temp folder
|
||||||
|
Write-EventLog -EventId 90 -Message "Removing all files not in use in $env:windir\TEMP" -LogName 'Virtual Desktop Optimization' -Source 'DiskCleanup' -EntryType Information
|
||||||
|
Write-Host "Removing all files not in use in $env:windir\TEMP"
|
||||||
|
Remove-Item -Path $env:windir\Temp\* -Recurse -Force -ErrorAction SilentlyContinue -Exclude packer*.ps1
|
||||||
|
|
||||||
|
# Clear out Windows Error Reporting (WER) report archive folders
|
||||||
|
Write-EventLog -EventId 90 -Message "Cleaning up WER report archive" -LogName 'Virtual Desktop Optimization' -Source 'DiskCleanup' -EntryType Information
|
||||||
|
Write-Host "Cleaning up WER report archive"
|
||||||
|
Remove-Item -Path $env:ProgramData\Microsoft\Windows\WER\Temp\* -Recurse -Force -ErrorAction SilentlyContinue
|
||||||
|
Remove-Item -Path $env:ProgramData\Microsoft\Windows\WER\ReportArchive\* -Recurse -Force -ErrorAction SilentlyContinue
|
||||||
|
Remove-Item -Path $env:ProgramData\Microsoft\Windows\WER\ReportQueue\* -Recurse -Force -ErrorAction SilentlyContinue
|
||||||
|
|
||||||
|
# Delete not in-use anything in your %temp% folder
|
||||||
|
Write-EventLog -EventId 90 -Message "Removing files not in use in $env:temp directory" -LogName 'Virtual Desktop Optimization' -Source 'DiskCleanup' -EntryType Information
|
||||||
|
Write-Host "Removing files not in use in $env:temp directory"
|
||||||
|
Remove-Item -Path $env:TEMP\* -Recurse -Force -ErrorAction SilentlyContinue -Exclude packer*.ps1
|
||||||
|
|
||||||
|
# Clear out ALL visible Recycle Bins
|
||||||
|
Write-EventLog -EventId 90 -Message "Clearing out ALL Recycle Bins" -LogName 'Virtual Desktop Optimization' -Source 'DiskCleanup' -EntryType Information
|
||||||
|
Write-Host "Clearing out ALL Recycle Bins"
|
||||||
|
Clear-RecycleBin -Force -ErrorAction SilentlyContinue
|
||||||
|
|
||||||
|
# Clear out BranchCache cache
|
||||||
|
Write-EventLog -EventId 90 -Message "Clearing BranchCache cache" -LogName 'Virtual Desktop Optimization' -Source 'DiskCleanup' -EntryType Information
|
||||||
|
Write-Host "Clearing BranchCache cache"
|
||||||
|
Clear-BCCache -Force -ErrorAction SilentlyContinue
|
||||||
|
|
||||||
|
} #endregion
|
||||||
|
|
||||||
|
Set-Location $CurrentLocation
|
||||||
|
$EndTime = Get-Date
|
||||||
|
$ScriptRunTime = New-TimeSpan -Start $StartTime -End $EndTime
|
||||||
|
Write-EventLog -LogName 'Virtual Desktop Optimization' -Source 'VDOT' -EntryType Information -EventId 1 -Message "VDOT Total Run Time: $($ScriptRunTime.Hours) Hours $($ScriptRunTime.Minutes) Minutes $($ScriptRunTime.Seconds) Seconds"
|
||||||
|
Write-Host "`n`nThank you from the Virtual Desktop Optimization Team" -ForegroundColor Cyan
|
||||||
|
|
||||||
|
If ($Restart)
|
||||||
|
{
|
||||||
|
Restart-Computer -Force
|
||||||
|
}
|
||||||
|
Else
|
||||||
|
{
|
||||||
|
Write-Warning "A reboot is required for all changes to take effect"
|
||||||
|
}
|
||||||
|
######################## END OF SCRIPT ########################
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user