How to get rid of Personalize and screen resolution in the context menu when you right click the desktop

The powershell script in this article will delete personalize and screen resolution on the context menu(right mouseclick on desktop). this is usefull for VDI or RDS environments. It is only working with software deployment or task sequence deployment in SCCM, because it is designed to run with system account privileges.

Download the word file copy the text to notepad and save the file as <yourname>.ps1

Deletecontextmenuitems

Noscreenresolutionandpersonalize

 

Advertisements

Powershell Examples calling wmi SCCM client

#Get-WmiObject -Namespace root\ccm\clientsdk -Class * -List
#Get-WmiObject -Namespace root\ccm -Class * -List
#Get-WmiObject -Namespace root\ccm -Class SMS_Client
#Get-WmiObject -Namespace root\ccm\clientsdk -Class CCM_Program -List | select -ExpandProperty Properties
#Get-WmiObject -Namespace root\ccm\clientsdk -Class CCM_ClientUtilities -List | select -ExpandProperty Methods

#Get-WmiObject -Namespace root\ccm\clientsdk -Class CCM_InstalledDeploymentType -List | select -ExpandProperty Properties
#
#Invoke-WmiMethod -Namespace root\ccm\clientsdk -Class CCM_InstalledDeploymentType -Name Id
#
$versionSCCMclient = Get-WmiObject -Namespace root\ccm -Class SMS_Client | Select -ExpandProperty ClientVersion

IF ($versionSCCMclient -ne “5.00.7958.1401”) {

Write-Host “Old Version start upgrade”
CMD.exe /C msiexec.exe /p configmgr2012ac-r2-kb2994331-i386.msp /L*v %TEMP%\configmgr2012ac-r2-kb2994331-i386.msp.LOG /q REINSTALL=ALL REINSTALLMODE=mous
}

 

 

Change language settings powershell

Link

Examples:

ipmo international

Get-WinSystemLocale
Get-WinHomeLocation
Get-WinUserLanguageList

Get-WinUILanguageOverride
#Home and systemlocale  Netherlands and nl-NL
#Set-WinSystemLocale nl-NL
#Set-WinHomeLocation -GeoId 176

#Adds lang. nl-NL
#$UserLang = Get-WinUserLanguageList
#$UserLang.Add(“nl-NL”)
#Set-WinUserLanguageList $UserLang -Force

# Override Lang. nl-NL
#Set-WinUILanguageOverride nl-NL