Browse by Tags

Tagged Content List
  • Wiki Page: Codificar Script VBS (pt-BR)

    Como codificar um script VBS, para não deixar informações confidencias visíveis aos usuários. Na maioria dos casos, utilizamos scripts "básicos", que podem ser feito utilizando o VBscript. Mas em algumas situações, pode ser necessário codificar este script. Como ? Quando ? Porque ?...
  • Wiki Page: Como descobrir se o Windows Server 2008 R2 Server Core é um controlador de domínio (pt-BR)

    Após logar em um Windows Server 2008 R2 Server Core você se depara com a tela do prompt de comando e nada mais. Você pode usar um simples comando para exibir se o seu Server Core é um controlador de domínio, servidor membro ou outros. wmic.exe ComputerSystem get DomainRole O comando retorna...
  • Wiki Page: Inventariando Hosts Automaticamente com VBScript (pt-BR)

    O Vbscript tendenciado a queda com o surgimento do Power Shell, ainda é uma ferramenta bastante útil devido sua simplicidade de execução. Segue aqui um exemplo de script para fazer inventário de servidores e desktops dentro da rede. A estrutura funciona assim : Um arquivo chamado servers...
  • Wiki Page: Solucionando Problemas: Erro no Active Desktop (pt-BR)

    Introdução É muito comum aparecer o erro de Active Desktop em computadores com Windows XP e papel de parede aplicado via GPO, quando ocorre o desligamento incorreto. Objetivo O objetivo deste artigo é apresentar um script que corrige o problema de Active Desktop...
  • Wiki Page: Script para agendar o desligamento do computador (pt-BR)

    Salve o conteudo a seguir em um arquivo chamado desligar.bat @Echo off cls Echo. Echo ** Agendamento para desligar o Computador ** ECHO ––––––––––––––––––––––––––––––––––––––––––––––––– Echo [A] – Agendar Desligamento Echo [B] – Cancelar Agendamento Echo [C...
  • Wiki Page: Script de Instalação do agente System Center Virtual Machine Manager 2008 R2 (pt-BR)

    Table of Contents Introdução Script Conclusão Introdução Este Script faz a verificação de instalação do agente VMM em todas as máquinas virtuais gerenciadas e caso não exista o agente é instalado. Script # Filename: InstallVirtualGuestServices.ps1 # Description: Procura todas as máquinas...
  • Wiki Page: SharePoint Powershell: Create, update, delete and assign site Quota template

    Table of Contents Create a new Quota template Delete a Quota template Update code level and storage limit of existing Quota template Assign a Quota template to a site Collection: References This article demonstrates a PowerShell Script to create, update, delete and assign site Quota template....
  • Wiki Page: SharePoint PowerShell script to update people field with claims token in List

    While migrating existing applications from MOSS 2007 to SharePoint 2013, we came across this issue where user ids were updated to include claims token, but people field in lists were still having ids only with domain name. So we have a custom list "Project Tasks" where we have a people...
  • Wiki Page: Active Directory Objects Restoration

    Table of Contents Applies to Attributes Backups Restoration See the below link for more details - Restore-ADObject Benefits DSAMAIN If System-state Backup is in place. You do no need any Scripts as above. See the below link for more details - DSAMAIN.EXE Use below Powershell Command for getting User's...
  • Wiki Page: SSIS: Data maintenance with Microsoft Azure SQL Database

    Table of Contents Introduction Justifying Versions Management Portal Azure How to: Create an Azure SQL Database How to: Configure the firewall for the logical server Connection Information - SQL AZURE Architecture Goals Requirements Enabling Change Data Capture Integration Services Projects - SSIS Creating...
  • Wiki Page: Hyper-V Script: Compact VHD in bulk

    Powershell script to compact VHD's in bulk without any user intervention. Note : Fields that need to be modification - vhd location and machine name. ------------------------------------------------------------------------------- $strComputers = @( "F:\VMStore\machine1.vhd"...
  • 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...
  • Wiki Page: Active Directory: Ambiguous Name Resolution

    Introduction Ambiguous Name Resolution (ANR) is an efficient search algorithm in Active Directory that allows you to specify complex filters involving multiple naming-related attributes in a single clause. It can be used to locate objects in Active Directory when you know something about the name...
  • 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...
  • Wiki Page: Simple SCVMM Script to enable Jumbo Frame on all your Hyper-V hosts

    Fortunaly, i use SCVMM, and SCVMM know everything about all my Hyper-V servers :) This simple script will help you to configure the MTU value on all the host inside a cluster. To prevent outage, each host is put in maintenance mode before modifying the configuration. To use it, you have to provide...
  • Wiki Page: Update Custom Alert Fields Using Subscriptions and Powershell

    Alerts in OpsMgr have lots of good information on them already – but wouldn’t it be cool if you could add your own custom information to the custom alert fields of the alert? There are lots of reasons why this might be useful – you might just want to add extra information to an alert – or extra context...
  • Wiki Page: How to Get the List of All the Computers in Maintenance Mode in System Center Operations Manager 2007

    Here's a cool tip from Ritesh Grover, one of Microsoft's excellent support engineers on the Operations Manager team. If you're looking for a script to quickly get a list of the computers that are in Maintenance Mode then this should do the trick: ======== To get a list of all computers...
  • Wiki Page: Active Directory: DSQUERY Commands

    DSQUERY Commands to query AD objects:- 1. How to find all members for a particular group. dsget group "<DN of the group>" -members a. How to find all groups for a particular member (including nested groups) dsget user "<DN of the user>" -memberof -expand...
  • Wiki Page: Helpful WMIC

    Table of Contents How to Get the Printers List for all Computers of a Domain Checking RDP is enabled or not for multiple computers. Getting IP address for Multiple Computers. How to Get the Printers List for all Computers of a Domain I have written a batch file. Push that through GPO...
  • 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: Hyper-V 2008 R2: Protection with DPM 2010: How to Automatically Protect New Virtual Machines

    Note: This article is based on Hyper-V 2.0, and might not apply to Hyper-V 3.0 (Server 2012) Applies to: DPM 2010 (Beta) This information was originally provided by Angad Pal Singh on the Data Protection Manager blog : In any virtualized environment, adding new VMs is a frequent operation...
  • Wiki Page: Verify ForestPrep, Domainprep & Rodcprep Result

    Applies to Windows Server 2003, Windows Server 2003 R2 , Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2. Table of Contents Schema Version DSQUERY Schema Version ForestPrep Result RODCPrep Result DomainPrep Result Powershell Verify ForestPrep, Domainprep...
  • Wiki Page: ADDS PowerShell (CMDLET, ADSI & .Net) to Expedite Your Tasks

    Table of Contents CMDLET ADSI PowerShell ADSI(Active Directory Services Interface) commands 2. How to find the Group members for a Group. 3. Listing an OU Contents 4. Finding FSMO using .Net Namespace "System.DirectoryServices" 5. Finding All attributes & Properties How to get the Property...
  • Wiki Page: Active Directory Domain Services (AD DS) Commands and Scripts

    Here are some useful commands and scripts for administering Active Directory. For more information please see Active Directory Domain Services Command Reference ( http://technet.microsoft.com/library/cc771131 ). Source reference http://portal.sivarajan.com/2011/08/searching-active-directory...
  • Wiki Page: PowerShell Script for Shutdown/Reboot Events Tracker

    Table of Contents Single Server Reboot Report: Multiple Servers Reboot Report: Single Server Reboot Report: Get-WinEvent -FilterHashtable @{ logname = 'System' ; id = 1074 } | ForEach-Object { $rv = New-Object PSObject | Select-Object Date , User , Action...
Page 1 of 5 (102 items) 12345
Can't find it? Write it!