Microsoft Scripting Games 2010

  It is almost time for the annual Scripting Games at Microsoft Scripting Guys! Scripting games is a fun “competition” with a lot of different scripting challenges. This year it is held from April, 26 – May 7. I suggest all scripters to join the fun!, it is good practice for both newcomers and hardcore [...]

Category: Powershell, Scripting, VBScript  |  Comment

VBScript: Move computer object to another OU via Command line parameter

UPDATE: New improved script 0.0.3 uploaded. Thanks to Nico_ at Technet Forums! Hello everyone My collegue Michael Petersen, needed a script to move computers to another OU, after re-installing them via SCCM/ConfigMgr. He have written a blog post to show how to use it in a Task Sequence: http://blog.coretech.dk/mip/using-ts-variables-when-running-a-script-under-a-different-account/ therefore i developed this small script [...]

Category: Scripting, VBScript  |  25 Comments

OpsMgr 2007 (SCOM): Coretech Certificates Expire checker Management Pack – 0.0.0.1

Download: Intro: This management packs can be used to check the expire date on all or specific certificates in the client/servers certificates store. It uses the event log on the local client, to alert the OpsMgr unit monitor . It is supposed to check once every day, and make a warning in the opsmgr if [...]

Category: Operations Manager 2007, VBScript  |  5 Comments

Find Query-based Distribution Groups in Domain

To find all QBD groups in your domain run the following. (Remember to change the LDAP string…) On Error Resume Next Const ADS_SCOPE_SUBTREE = 2 Set objConnection = CreateObject(“ADODB.Connection”) Set objCommand =   CreateObject(“ADODB.Command”) objConnection.Provider = “ADsDSOObject” objConnection.Open “Active Directory Provider” Set objCommand.ActiveConnection = objConnection objCommand.Properties(“Page Size”) = 1000 objCommand.Properties(“Searchscope”) = ADS_SCOPE_SUBTREE objCommand.CommandText = _     [...]

Category: VBScript  |  1 Comment

Useful Links, Editors and Books for Visual Basic, Scripting Edition (VBScript)

Here is a list of links, editors and books. I have mentioned some of them, in the Visual Basic, Scripting Edition Course (MOC 2433). Links: Microsoft Script Center: http://www.microsoft.com/technet/scriptcenter/default.mspx VBScript Language Reference: http://msdn.microsoft.com/en-us/library/d1wf56tt.aspx Microsoft Scripting Guys! Forum – Technet: http://social.technet.microsoft.com/Forums/en-US/ITCG/threads/ w3Schools – VBScript Section: http://w3schools.com/vbscript/default.asp SCCM and other Scripts: http://myitforum.com/cs2/blogs/dhite/ UAC and VBSCript: http://www.winhelponline.com/articles/185/1/VBScripts-and-UAC-elevation.html Naming [...]

Category: Scripting, VBScript  |  Comment

Checking if User is member of group including nested/sub groups!

Download: I had a challenge today. Problem: My Customer needs to insert a specific text in the Computer description field on the local PC, if the user is member of a specific group. Challenges: The problem is that most of the user are not directly members of the group. but they are members of a [...]

Category: Scripting, VBScript  |  7 Comments

Automated Windows Installer Properties from .INI (Embedded VBScript)

Download: Have you ever needed the functionality to read the property values from an .ini file, every time a installation or repair is run? This small script created for Windows installer, will do the job. Purpose:   Automatically reads a ini file located in the MSI SOURCEDIR property. Each parameter in the ini file is read [...]

Category: VBScript, Windows Installer / MSI  |  10 Comments