Home » Scripting »

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  |  6 Comments

Powershell – WMI: Working with Shares – Part 1: Creating a Share with Custom Permissions

Download Script: Intro: Last week, i was teaching a Powershell course (MOC6434), when a student asked me, how to create a share with custom permissions via WMI. I tried to find an answer for him, but could not really find any examples, cmdlets or functions for it. I found some examples and help in vbscript, […]

Category: Powershell, Scripting  |  39 Comments

Add Custom Data Type / Structure to My.Settings in VB.NET / WPF

During the work of a new Coretech SCCM Manager GUI in WPF, i ran in to some problems with My.Settings. I have used My.Settings for all settings in the Utility, and are using my own structures for the combo-box value and others. The problem is that i could not create a setting, that contained my […]

Category: .NET, Scripting  |  19 Comments

Powershell Acticvesync wipe

In this Powershell sample (created with ASE) – its possible to create a simple form to let Helpdesk manage Activesync Devices, this is done by finding and wipe/unwipe the device. Feel free to change and clean-up 😉 – Try ASE – http://adminscripteditor.com/ – Its a great editor. #################################################################### # Program……….: ASExWipe.ps1                            # # Author………..: Kåre […]

Category: Powershell  |  1 Comment

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  |  3 Comments

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 Introduction http://wiht.link/vbscript-resources 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 […]

Category: Scripting, VBScript  |  1 Comment

Usefull Powershell Links and Books.

Links: Microsoft Scripting guys! Forum: Usually you will get very quick replys and help in there http://social.technet.microsoft.com/Forums/en/ITCG/threads Powershell 2.0 and others for All Windows (Windows Management Framework) http://support.microsoft.com/default.aspx/kb/968929 Writing Help for Windows Modules http://msdn.microsoft.com/en-us/library/windows/desktop/dd878343(v=vs.85).aspx Importing / Exporting Credentials in Powershell (Manually create Credential object) http://www.leeholmes.com/blog/ImportingAndExportingCredentialsInPowerShell.aspx Working wth ODBC: http://theessentialexchange.com/blogs/michael/archive/2008/01/07/multi-platform-database-access-with-powershell.aspx Create Custom Inputbox: http://www.microsoft.com/technet/scriptcenter/resources/pstips/feb08/pstip0208.mspx Working with […]

Category: Powershell, Scripting  |  1 Comment

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

Download: InsertComputerDescriptionIfInGroup1-2.zip (1.23 kB) 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 […]

Category: Scripting, VBScript  |  8 Comments

Automated Windows Installer Properties from .INI (Embedded VBScript)

Download: ReadINItoMSI.zip (1.16 kB) 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 […]

Category: VBScript, Windows Installer / MSI  |  11 Comments