Clear all messages in queue with certain subject


From powershell run this command:

Get-Message | where {$_.Subject -like “Place here the text”} | Remove-Message -WithNDR $false

If you are not shore about the text don’t Forget to type something like this “*LOAN*”, this will include all messages that have the loan word in the subject.

Advertisements

Change default profile folder Location


Some times we canĀ“t control what users have in profiles so we need to avoid that the %systemroot% be with no space available.

We can change the default location to another disk. To do it we can change in registry, “ProfilesDirectory” Location.

HKEY_LOCAL_MACHINE
SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList]

Profile_reg

Just change it to the location that you pretend such as “d:\users”.

Hope that this can be useful.

Backup Persistent Routes


Routes added by using the -p option are stored in the registry under the following key:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip \Parameters\PersistentRoutes

To backup you just need to export this Key.

Removing Auto Detect Proxy Settings From GPO.


A few days ago I add to remove proxy settings from Default Domain GPO, this particulary option “Automatically detect configuration settings”.

After enabling this option, we can only choose bettween Enabled or disabled.

option

The way to get rid of this configuration is simple, you only need to reset proxy settings.

def

Be carefull where you execute this action, because it will clear everything related to proxy settings, and don’t Forget to backup GPO’s before making any changes.

Hope this can be usefull.

Managing Windows Virtual Memory


Once again GUI interfaces take to long, and use allot of resources so I am going to use command prompt to proceed.

I will use systeminfo command to list some Virtual Memory parameters, Maximum Size, Available and in use Read more of this post

%d bloggers like this: