Browse by Tags

Tagged Content List
  • Wiki Page: Active Directory: Characters to Escape

    Almost any characters can be used in distinguished names in Active Directory. However, some characters must be escaped with the backslash "\" escape character. Table of Contents Active Directory ADSI Non-Keyboard Characters VBScript PowerShell PowerShell New-AD* Cmdlets ADsPath LDAP Filters...
  • Wiki Page: Hyper-V: How to Find Virtualization Hosts (Servers with Hyper-V Enabled)

    Note: This article is based on Hyper-V 2.0 and might not apply to Hyper-V 3.0 (Server 2012) John Howard , Senior Program Manager in the Hyper-V team at Microsoft, shared a sample VBScript you can use how to determine which domain-joined servers are running Hyper-V by using the SCP or "Service...
  • Wiki Page: VBScript to Read and Update an Excel Spreadsheet with Computer Description from Active Directory

    This article explains how to use a VBScript application to read a single-column Excel spreadsheet containing a list of computers, check that list against Active Directory (AD), and then update the spreadsheet with the corresponding computer's AD Description field, if present. In the event...
  • Wiki Page: BizTalk: Monitoring and Automatically Starting Host Instances Via A Scheduled Task

    by Ron Phillips, aka El Bo on Technet Table of Contents Introduction Building the Sample See Also Introduction If you've ever gotten a phone call at 2 am asking you to figure out why a system is down, you'll appreciate the utility of self-healing systems. With a little work with...
  • Wiki Page: Active Directory: LDAP Syntax Filters

    LDAP Syntax filters can be used in many situations to query Active Directory. They can be used in VBScript and PowerShell scripts. Many utilities, like adfind and dsquery *, accept LDAP filters. Many PowerShell Active Directory module cmdlets, like Get-ADUser, Get-ADGroup, Get-ADComputer, and Get-ADObject...
  • Wiki Page: Migrating Print Server

    In his article about the batch creation of printers I described how you can without much time and moral cost, quickly create a similar set of printers on the new server. According to the problem we have in the old and the new print server. In my case this is an old Windows 2003 and the new Windows...
  • Wiki Page: SharePoint 2007: Write an IIS Warm Up Script for a SharePoint Intranet Site

    What is a Warm-Up Script In a SharePoint production environment where IIS has been taken as hosting platform, AppPool recycling on daily basis is considered as a good practice. But as an after-effect of AppPool-recycle, when the first user hits the sites of the corresponding SharePoint Web application...
  • Wiki Page: Active Directory: Querying User Accounts

    Various scripting and command-line methods for querying Active Directory for a list of users. Table of Contents Directory Services DSQuery User DSGet User DSQuery * VBScript PowerShell ADSI Active Directory module Quest ActiveRoles snapin Directory Services DSQuery User Query a...
  • Wiki Page: How to Print Email without the Default Fields

    This topic is a how to. Please keep it as clear and simple as possible. Avoid speculative discussions as well as a deep dive into underlying mechanisms or related technologies. Email message when printed from Outlook always contain fields: • From • Sent • To • CC • Subject...
  • Wiki Page: Sending from a Selected Account in Microsoft Outlook

    Today, many people use several e-mail accounts for communication due to the popularity of free accounts that you can set up anytime. In Microsoft Outlook 2007/2010 you can choose the account which you want to send the message from ( Fig. 1. ). Fig. 1. Manual account select prior to sending a message...
  • Wiki Page: How to Determine the Date of Creation of a User Account in Active Directory

    How to determine the date of creation of a user account in Active Directory? Hello Skrypciarzu! Is there a way to specify the date that you created the user account in Active Directory? After DD! Thanks: Nice, when between the nagromadzonymi during the holidays, the upcoming Scripting Week stacks...
  • Wiki Page: VBScript to Create Active Directory Security Groups

    If you are working with System Center Configuration Manager (SCCM 2007),you know what the post means here. Have been getting lot of requests per day/week to create AD security groups for new applications to deploy applications . Here is the VB Script that fulfills your requirememnt but test it in...
  • Wiki Page: Extract Members of an AD Group to Excel

    All, My first post on wiki. I have been writing VB for 2 years now and still learning. PowerShell seems lot easier than VB because of inbuilt commandlets. I am posting my favourite VB script that gets group membership of users in excel. This is required for those who are involved in SOX auditing...
  • Wiki Page: Querying WMI

    Here are some examples of how to query WMI via cmdline/scripting. Table of Contents WMIC VBScript PowerShell WMIC Retrieve all properties related to the Operating System class wmic OS Retrieve the Version property of the Operaring System class wmic OS get Version ...
  • Wiki Page: Query a Registry Key for Bulk Computers

    On Error Resume Next Set objShell = CreateObject("Wscript.Shell") Set oFso = CreateObject("Scripting.FileSystemObject") sDesktop = objShell.SpecialFolders("Desktop") spath = sDesktop & "\Dclist.txt" Set oT = oFso.OpenTextFile(spath,1) Do Until oT...
  • Wiki Page: Management Pack Composition Exercise #1 - Creating a Monitor Based on a Custom Module

    This document is part of the Operations Manager Management Pack Authoring Guide . Table of Contents Overview Product Versions Prerequisites Revisions Sample Code Details Authoring Console Procedure Create Probe Action Module to Run a Script Create Data Source Module to Run Probe Action...
  • Wiki Page: How to Add GacUtil Refresh as a Context Menu Item in the Windows Shell - Gacutil

    A long time ago when most of my development was on a Windows Server 2003 machine, we had a registry tweak that allowed us to quickly refresh dll's in the GAC by right-clicking the dll file and choosing a custom context menu item that would call a simple cmd script that would uninstall and reinstall...
  • Wiki Page: Management Pack Health Model Exercise #9 - Creating a Recovery Based on the Output of a Diagnostic

    This document is part of the Operations Manager Management Pack Authoring Guide . Table of Contents Overview Product Versions Prerequisites Revisions Sample Code Details Authoring Console Procedure Creating a diagnostic that runs a script Creating a recovery based on the output of a diagnostic...
  • Wiki Page: Management Pack Service Model Exercise #6 - Creating a Script Discovery (VBScript)

    Table of Contents Overview Product Versions Prerequisites Revisions Details Authoring Console Procedure Visual Studio Authoring Extensions Procedure See Also Overview The following procedures show how to create a VBScript script discovery using the Operations Manager 2007 Authoring console...
  • Wiki Page: How to Use VBScript to Run a PowerShell Script

    FIM ScriptBox Item Summary If you you want to run a PowerShell script by just double-clicking it, you can do this calling the PowerShell script from a VBScript. The VBScript code below shows an example for this. To use the VBScript, save the VBS file in the folder where your PowerShell script...
  • Wiki Page: FIM: How to Script for Clearing Run History

    Here is a little script I wrote for clearing the run history via script and using WMI. Clear Run History Script Dim Service Dim ManagementAgent Dim DeleteDate Set Service = GetObject( "winmgmts:\root\MicrosoftIdentityIntegrationServer" ) Set Server...
  • Wiki Page: VBScript: Find out Who Owns Your Computers

    There are times when what you really want to know about a given computer is, who’s responsible for it. With good user education, your OU admins or computer admins will pre-stage a computer and at the very least populate the ManagedBy property. This effectively lets anyone who can read that property...
  • Wiki Page: VBScript: Map network drives on logon

    Need to create logon scripts that would automatically map network drives for users as they logon? The process is quite simple if you adopt a simple vbscript to connect the required printers and then apply a group policy that would run the script during logon. Below is a simple script that will do...
  • Wiki Page: Management Pack Health Model Exercise #12 - Creating a Script Based Performance Collection Rule

    This document is part of the Operations Manager Management Pack Authoring Guide . Table of Contents Overview Product Versions Prerequisites Revisions Sample Code Details Authoring Console Procedure Visual Studio Authoring Extensions Procedure See Also Overview The following...
  • Wiki Page: VBScript - SendKeys Method

    The SendKeys method is used to send keystrokes to the currently active window as if they where typed from the keyboard. object . SendKeys Keystrokes Single alphanumeric keystrokes can simply be specified using a string representation of the character required. For example, to send the letter S...
Page 1 of 2 (36 items) 12
Can't find it? Write it!