C# – Prevent Sleep on Windows v1
Compiled using Visual Studio 2019.
Lab Core | The Lab of MrNetTek
A blog about IT, technical solutions, and code.
Compiled using Visual Studio 2019.
The Teams app starts when user logs in: Disable it using PowerShell: Notes Registry Reg Path: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run Value: com.squirrel.Teams.Teams Type: String Data: C:\Users\%username%\AppData\Local\Microsoft\Teams\Update.exe –processStart “Teams.exe” –process-start-args “–system-initiated” Folders %appdata%\Microsoft\Teams\Application cache\Cache %appdata%\Microsoft\Teams\Cache Group Policy (ADMX/ADML) User Configuration > Policies > Administrative Templates > Microsoft Teams MSI msiexec /i Teams_windows_x64.msi OPTIONS=”noAutoStart=true” Read More …
This is how you get rid of the AV toast notification from the Windows Security Center. Create Policy Log into Azure Microsoft Intune > Device configuration > Profiles Configure the Profile Name: Disable Antivirus Notification Platform: Windows 10 and later Profile type: Endpoint protection Select ‘Settings Configure’ Select ‘Microsoft Defender Security Center’ Read More …
Save as policy.reg Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender Security Center\Notifications] “DisableEnhancedNotifications”=dword:00000001 Notes Group Policy Computer Configuration > Administrative Templates > Windows Components > Windows Security > Notifications Modify: Hide non-critical notifications Disable All Notifications from Windows Security Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender Security Center\Notifications] “DisableNotifications”=dword:00000001 tags: Disable non-critical Read More …
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Notifications\Settings\Windows.SystemToast.SecurityAndMaintenance] “Enabled”=dword:00000000 Notes Group Policy Computer Configuration > Policies > Windows Settings > Security Settings > Windows Firewall with Advanced Security > Windows Firewall with Advanced Security: Windows Firewall Properties Configure the notifications for each profile using Settings > Customize > Firewall settings > Display a notification Manually Read More …
This is how you change from UTC to Eastern Standard Time in WVD, using only the registry. Verify you have time servers Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\DateTime\Servers] “1”=”time.windows.com” “2”=”time.nist.gov” Disable virtual time provider Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\VMICTimeProvider] “Enabled”=dword:00000000 “InputProvider”=dword:00000000 Enable the NTPClient provider HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpClient “Enabled”=dword:00000001 “InputProvider”=dword:00000001 Apply Eastern Read More …