I received a nice email from Robert Mitsch about my status messages right click tool. Back in the days of SMS 2003 in late 2005 I had tried to work with the statview.exe application for the status messages but didn't have the time nor could I find some good documentation so I just kept it the way it was with statusmessages.exe. Well he has it working with statview. Shown below is the new method. The differences are as follows:
1. No longer to you need to select server and hit enter
2. Messages no longer pull ALL messages in. This caused problems sometimes. It now pulls in around 1 month of messages.
<filepath>C:\xxxxxxx\AdminUI\bin\i386\statview.exe</filepath>
<parameters>/SMS:Server=\\##SUB:__Server## /SMS:Path=##SUB:__Namespace## /SMS:System=##SUB:Name##</parameters>
Changes will be made here on SCCM Tools website
http://www.sccm-tools.com/tools/rightclick/rightclick-statusmessages.html
and on my original blog post
http://sms-hints-tricks.blogspot.com/2008/06/right-click-tool-status-messages.html
SMS/SCCM, Beyond Application Deployment is a blog by Matthew Hudson covering SMS 2003, SCCM 2007, 2012 and beyond package deployment. Here you will find hints, tips, and tricks to help with managing your infrastructure. It will focus mainly on Reg files, Batch, VbScript, WMI, and possibly other methods.
Saturday, June 27, 2009
Monday, June 8, 2009
Removing registry keys with Regedit
Many times working with sccm we need to push out registry keys which is easy with a .reg file and regedit...."regedit /s key.reg" This adds all your keys to the registry and is very quick at it.
But what if you want to remove keys. Well you can use Vbscript or other lang to edit the registry or you can use a regedit. Yup a special "minus" sign will remove a key or tree.
[HKEY_LOCAL_ MACHINE\SOFTWARE\Policies\Microsoft\Windows\System\xwing]
"key1"="value"
"key2"="value"
"key3"="value"
Say we want to remove the entire tree. We do this by sending the reg file with the following change
[-HKEY_LOCAL_ MACHINE\SOFTWARE\Policies\Microsoft\Windows\System\xwing]
Everything in xwing and sub keys will be deleted.
Now say you want to just delete key2 then you send this
[HKEY_LOCAL_ MACHINE\SOFTWARE\Policies\Microsoft\Windows\System\xwing]
"key2"=-
This will remove only key2 from the registry.
What is nice about this is that it won't throw an error if nothing is there so you can send it down to all machines whether they have the key or not.
MS KB article
http://support.microsoft.com/kb/310516
But what if you want to remove keys. Well you can use Vbscript or other lang to edit the registry or you can use a regedit. Yup a special "minus" sign will remove a key or tree.
[HKEY_LOCAL_ MACHINE\SOFTWARE\Policies\Microsoft\Windows\System\xwing]
"key1"="value"
"key2"="value"
"key3"="value"
Say we want to remove the entire tree. We do this by sending the reg file with the following change
[-HKEY_LOCAL_ MACHINE\SOFTWARE\Policies\Microsoft\Windows\System\xwing]
Everything in xwing and sub keys will be deleted.
Now say you want to just delete key2 then you send this
[HKEY_LOCAL_ MACHINE\SOFTWARE\Policies\Microsoft\Windows\System\xwing]
"key2"=-
This will remove only key2 from the registry.
What is nice about this is that it won't throw an error if nothing is there so you can send it down to all machines whether they have the key or not.
MS KB article
http://support.microsoft.com/kb/310516
Subscribe to:
Posts (Atom)