Browse by Tags

Tagged Content List
  • 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: VBscript to create AD security groups (en-US)

    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: 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: 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: 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: 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: Hyper-V: How to Find Virtualization Hosts (Servers with Hyper-V Enabled)

    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 Connection Point" information in Active Directory. NOTE: To use the script, edit the call...
  • 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...
  • Wiki Page: Query a reg key for bulk computer (en-US)

    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: 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: VBScript: Determine Script Execution Time

    To output a script's execution time, include this at the beginning: dtmStartTime = Timer And include this at the end: Wscript.Echo "Script execution time: " & Round(Timer - dtmStartTime, 2) & " seconds" The Timer function returns the number of seconds...
  • Wiki Page: Remover e Adicionar Impressoras com VBScript (pt-BR)

    Aqui um exemplo, onde podemos remover as impressoras mapeadas de um usuário e mapear novas impressoras. Para executar o script, copie e cole as linhas abaixo em um arquivo texto e o salve como [qualquer nome].vbs Esse arquivo pode por exemplo ser adicionado como script de inicialização...
  • Wiki Page: How to Get a List of User Accounts Created on a Given Day or Over a Given Period

    How to get list of user accounts created on a given day or over a given period? Hey, Scripting Guy! How to apply a query to Active Directory for a list of user accounts created on a given day or period? - PG Hi, PG. You may not even aware of it, but August is the Scripting Guys and...
  • Wiki Page: How to Determine Which Organizational Unit (OU) Must Be a User Account

    How can I determine which organizational unit (OU-organizational unit) must be a user account? Hello Skrypciarzu! How can I determine which organizational unit (OU) is a user account? Hey What! Oh yes: to which OU the user. Without a doubt, many of you thought: "well, are you sure it is...
  • Wiki Page: How to Find and Move the Account from Active Directory

    How to find and move the account from Active Directory? Hello Skrypciarze! I need to move the account from one OU (Organizational Unit to an organizational unit) to another, unfortunately I do not know where the OU account are currently located. Some idea? Part Of The AA. Great rubric...
  • 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: How to Assign All of My Users with a New Name for UPN

    How to assign all of my users with a new name for UPN? Skrypciarzu Hi! How to assign all of my users with a new name for UPN? CH Hi! UPN (User Principal Name - a user principal name) is an alternative way to log into the domain. In general, log on to the domain is done by pressing Ctrl-Alt-Delete...
  • Wiki Page: How to Read Computer Names from a Text File and then See if the Computers Still Exist

    How to read computer names from a text file and then see if the computers still exist? Hey, Scripting Guy! How to read computer names from a text file and then see if the computers still exist in Active Directory? - CL This is a very good question, CL - but why the sad face? But soon...
  • Wiki Page: Migrating Print Server (en-US)

    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...
Page 1 of 2 (31 items) 12
Can't find it? Write it!