Browse by Tags

Tagged Content List
  • 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: 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 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: 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...
  • Wiki Page: SharePoint Powershell Script to create, update, delete and assign site Quota template

    This article demonstrates a Powershell Script to create, update, delete and assign site Quota template. Its a simple process - hope you will find it interesting. The Script works for both SharePoint 2010 and SharePoint 2013. Create a new Quota template: $NewQTemp = New-Object Microsoft.SharePoint...
  • Wiki Page: How to Use PowerShell to Create a Wiki Catalog Page

    Wiki PowerShell Item Summary This script builds a HTML catalog page based on the tags you put in a list. With this PowerShell script you can quickly create your HTML catalog file with tags of your choice. The file uses a header text file ( download here ) and footer text file (HTML) ( download...
  • Wiki Page: How to Use Powershell to Import Schema Objects from a CSV File

    FIM ScriptBox Item Summary This script may be used to create Attributes and Bindings in the FIM Portal Schema based on information in a CSV file. The script comes in two parts: Import-SchemaCSV.ps1 is used to generate a changes.xml file, and CommitChanges.ps1 is used to import the...
  • Wiki Page: How to Use PowerShell to Create a User in the FIM Portal

    FIM ScriptBox Item Summary The objective of this script is to create a user in the FIM portal. The script expects the attributes of the new user as parameter with the following format: "<attribute name>:<attribute value>|<attribute name>:<attribute value>"...
  • Wiki Page: PowerShell: How to automatically backup the netlogon debug log

    Overview There may be a time when Netlogon Debug Logging is required over a prolonged period of time, and all entries must be saved. The standard size of the Netlogon.log is 20mb which rolls over to a 20mb Netlogon.bak file. On a busy server, this can result in a rollover time of an hour or less....
  • Wiki Page: Servers Inventory Report

    Table of Contents Hard drive capacity, Hard Drive free Space, RAM Capacity, OS, OS Architecture, IP V4, IP V6, IP is static or dynamic, Global Catalog is Yes or No, Virtual or Physical Given the sample output. Need to create a computers.txt at the same place of this script. I have tested it 2008R2...
  • Wiki Page: How to create .EXE from PS1

    Table of Contents Benefits Prerequisites Create EXE Benefits 1. No body can change your Code. 2. No body can see your Code. Prerequisites 1. Quest PowerGui http://www.powergui.org/downloads.jspa 2. ActiveRole Management Shell For ActiveDirectory http://www.quest.com/powershell...
Page 1 of 5 (102 items) 12345
Can't find it? Write it!