Browse by Tags

Tagged Content List
  • Wiki Page: How to Use Powershell to add WorkflowActivities to GAC and AIC

    FIM ScriptBox Item Summary This script is intended to make the process of adding or updating new Workflow Activities to FIM by adding DLLs to the GAC and creating (if needed) a corresponding AIC object within the portal to enable FIM to access the new code. Script Code ...
  • Wiki Page: How to use PowerShell to Add a User

    FIM ScriptBox Item Summary A PowerShell module is available on CodePlex to simplify FIM management ( http://fimpowershellmodule.codeplex.com/ ). This article shows how to use that module to add a user to the FIM Service. Note : This snippet was copied from the FIM PowerShell Module project...
  • Wiki Page: How to Use PowerShell to Add a Member to a Group in FIM

    FIM ScriptBox Item Summary This script adds a member to a group Script Code 001 002 003 004 005 006 007 008 009 010 011 012 013 014 015 016 017 018 019 020 021 022 023 024 025 026 027 028 029 030 031 032 033...
  • Wiki Page: How to Use PowerShell as an FIM Function Library

    This page provides a set of PowerShell Functions which can be used as a shared library across PowerShell scripts or from the PowerShell prompt. Table of Contents Introduction FIMFunctionLibrary The Functions Explained Convert-FimExportToPSOjbect Delete-FimObject Prepare-FimObject > Set-FimAttribute...
  • Wiki Page: Use PowerShell to get OS inventory from SCCM

    One can query ConfgiMgr Server for the OS or any hardware related information as ConfigMgr collects hardware inventory from the endpoints it manages. Below is a small script code showing how it could be done: DexterPC – Machine for which we need OS Info DexSCCM – SCCM Server with SMS provider...
  • Wiki Page: Hunting Zombies: How to Remove Orphaned IIS Web Applications

    When you run many of the AppFabric configuration commands via PowerShell or the IIS Manager, the result is a change to a web.config file. IIS configuration is hierarchical with settings being inherited from parent nodes. The implication of this is that when determining the correct settings for a web...
  • Wiki Page: Windows PowerShell: Use Proxy Cmdlets in Combination with Object Events

    Proxy Cmdlets is a new feature introduced in Windows PowerShell v2. You can read more about this feature in this article on the Microsoft PowerShell Team blog. This article will show how we can combine this feature with another feature called object events. Using the Register-ObjectEvent...
  • Wiki Page: Windows Server 2008 R2 PowerShell Backup

    The Windows Server Backup feature of Windows Server 2008 R2 includes an enhanced Windows PowerShell Snap-in that can be used to manage and control Windows Server backups. But before you can use the Snap-in, you need to enable the feature on Windows Server, and then load the snap-in. Once the feature...
  • Wiki Page: Windows Server 8 – Disk Management with PowerShell 3.0

    Before Windows Server 8 and PowerShell 3.0, to manage your local, virtual or remote disks there were no native PowerShell cmdlets. You had only below choices; - Using Diskpart (Easy for basic tasks but not flexible) - Using WMI (Flexible but hard to use) Diskpart has its own arguments and does...
  • Wiki Page: WMI Discovery using PowerShell

    Introduction This article explains how you can find WMI namespace, classes and properties and methods required for your task, without using any standalone tools. Classes It is easy to retrieve list of classes in PowerShell, just use Get-WmiObject cmdlet with -List parameter. Following command...
  • Wiki Page: Set Computer Name using PowerShell

    Yesterday I faced a problem in which I needed to change the computer name using PowerShell. First I was looking for some cmdlet which can do this job for me but there is not any inbuilt cmdlet for it. Then I searched and finally find a way by which I can do this within the PowerShell. This method...
  • Wiki Page: Export SQL Server Event Viewer Error Messages As HTML

    i use the following powershell script to retrieve all sql server error logs from event viewer and export as a html file to read easily from our web server. that is the simple version of the script that i published on the Microsoft Script Repository Site. http://gallery.technet.microsoft.com/scriptcenter...
  • Wiki Page: SQL Server: Change the Login Password using PowerShell

    Here’s a quick Article detailing a PowerShell script that can be used to change the password for a SQL Server Login . Regular readers know that I practice the philosophy of Automate Everything and DBA administrative tasks are no exception. I don’t want to be doing the same task by hand twice, if...
  • Wiki Page: How To: SQL Server Databases Backup with PowerShell

    In common SQL Server databases are backup scheduled with a maintenance plan , but the Express Edition don't provide the SQL Server-Agent service to perform a scheduled job. To backup databases time scheduled the Windows Task Scheduler can be used to start the tool SqlCmd.Exe with a T-SQL...
  • Wiki Page: Export SQL Server BLOB Data with PowerShell

    I n opposition to simple data like numbers and text, it's not possible to verify blob data for validity and correctness just by screening the binary dump. Only when the respective application is accessing data it is may pointing to be bad data. In order to examine the data for accuracy, the DBA...
  • Wiki Page: Hyper-V, PowerShell, and WMI

    Let's use this article to provide quick Hyper-V tasks in PowerShell. Get a list of virtual machines on a Hyper-V parent # This can be run locally or against a remote parent. Use "." for local $VMs = gwmi MSVM_ComputerSystem -computer "<computername>"...
  • Wiki Page: SharePoint 2010: Interacting with Site Columns using PowerShell

    Table of Contents Introduction Checking which Lists or Sites are using a Particular Site Column Targeting Specific Sites for Specific Columns Listing Fields Used in a List See Also Introduction As many of us know, one of the core building blocks for string content together within SharePoint...
  • 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: Install a Service into Windows Server AppFabric by Using PowerShell

    There are a couple of different options to choose from when you want to deploy WF and WCF services into IIS and Windows Server AppFabric. Both IIS and Windows Server AppFabric ship with comprehensive PowerShell APIs which can be used to fully automate the deployment, configuration and management of...
  • Wiki Page: How to Use Test-Path in PowerShell Scripts

    You can use the Windows PowerShell cmdlet Test-Path to avoid unnecessary errors in your scripts caused by things not being where you expect them, or by another part of your script returning a “path” that isn’t valid. So, for example, we can test if $profile exists: Test-Path $profile And if...
  • Wiki Page: PowerShell 3 Cmdlets with Remote Capabilities

    The cmdlets listed here have the ability to be run against remote computers natively. They can be utilized by appending the -Computername parameter. Name ModuleName Connect-PSSession Microsoft.PowerShell.Core Disconnect-PSSession Microsoft.PowerShell.Core ...
  • Wiki Page: PowerShell 2.0 Cmdlets

    Table of Contents All Cmdlets ( 632 ) Core Cmdlets ( 236 ) Extend Cmdlets ( 396 ) List of cmdlets by PSSnapIn Microsoft.Adfs.PowerShell ( 43 ) Microsoft.PowerShell.Core ( 41 ) Microsoft.PowerShell.Diagnostics ( 4 ) Microsoft.PowerShell.Host ( 2 ) Microsoft.PowerShell.Management ( 79 ) Microsoft.PowerShell...
  • Wiki Page: PowerShell V3 New Features

    Table of Contents General ISE Console See Also Many of the articles in the PowerShell V3 Featured Articles cover the new features so check those out as well as this page is populated. General Workflows that run long-running activities (in sequence or in parallel) to perform complex, larger...
  • Wiki Page: Quick Guide to PowerShell v2 Remoting with PSSession

    There are excellent, detailed references to all the powerful remoting features in PowerShell v2, including: Administrator's Guide to Windows PowerShell Remoting (Requires registration, but is free) A Layman's Guide to Windows PowerShell Remoting (Free PDF download, no registration) ...
  • Wiki Page: PowerShell 3.0 - Shell from Future

    PowerShell 3.0 is shipped with Windows 8. We are still experiencing some of the great features of Windows Server 8, but PowerShell 3.0 also brings many new features. Thanks to PowerShell Product Team for such a great innovation. In this blog post, I will discuss about some of simplified syntaxes....
Page 75 of 90 (2,239 items) «7374757677»
Can't find it? Write it!