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.

Dsquery List members for all groups


Open Command prompt and use dsquery to export to txt the data to a TXT file.

dsquery * -limit 0 -filter “(&(objectCategory=group))” -attr name member > a.txt

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.

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: