Category Archives: VBScript
Long time no blog… Working on a move to CM2012 from CM2007, and with that we are trying to move to Webservices instead of client side VBScript. I found a small bug in MDT (Looked at version 2010U1 and 2012U1 … Continue reading
I do not like the fact that the person sending a meeting request is the one deciding how long before the meeting a reminder would be set. Since I don’t like the popup on my phone, I’m not using reminders. … Continue reading
A small and simple script to monitor number of connected SCOM-consoles.
OK, so now you know the GUID for the right-click tool… but what about passing parameters? There are a few standard SUB’s (parameters) that you can use, some are listed in this post: http://www.snowland.se/2008/05/28/sccm-console-extensions/ But if you take the example … Continue reading
I wrote some about this topic in a post a while ago… did some more scripting around this today. This VBScript will read the AdminConsole.xml and look for NameSpaceGuid’s, when it find one it will create a subdirectory (from where … Continue reading
I like to keep my inbox clean… so every now and then I sort out mails to different folders. That is boooring. So I wrote a little script. 🙂 Download: inboxcleaner.vbs Update: Screendump of the result.
Just a small script to update the commandline of a large number of programs in SCCM. This script will change from “/q” to “/qb!”…
If you need to trigger some SCCM-client actions via a script, this is a easy way to do it. This script will trigger actions with “Request & Evaluate” in the name.
Had some problems with loads of collection refresh taking all of the CPU on the SCCM-server. So first, to get the SCCM-server to calm down I wrote a small (and somewhat ugly, since it uses SQL) hack: This script uncheck … Continue reading
Ok.. you need to automate a klick-klick-klick-procedure… SendKeys can do the trick. A big warning: This might be dangerous, if the script goes berserk… it might do whatever deletion/creation/manipulation in the wrong area…
If you have problems with WMI on a SCCM server you have will have loads of strange things happening. Wrote a small VBScript to check WMI… here it is: Or download here: wmiTester.vbs
A bit more complex version of the last script… Requires a parameter for servername. inboxcount.vbs
First off… populate HKEY_LOCAL_MACHINE\SOFTWARE\snowland\PXEFilter\ with some strings (ProviderServer, SiteCode, Username, Password, Collection). Second, edit the pxefilter.vbs and change the following lines: To this new code: Now, on startup the filter will read from HKLM to get the settings, if there … Continue reading
There are a few blogposts about moving the task sequence status window. An easy way is to simply kill it. 🙂 A short VBScript-hack: Some other ways: http://blogs.technet.com/deploymentguys/archive/2008/10/09/placing-your-window-on-top-during-the-windowspe-stage.aspx http://blogs.technet.com/deploymentguys/archive/2008/03/19/useful-script-number-2-move-the-task-sequence-window.aspx
With a little help from Egilh you can monitor the Call Time on your COM-objects in MOM… First, download and install the DLL on the server you want to monitor, then use this script: