Idera nSoftware Compellent

Browse by Tags

  • How objects are sent to and from remote sessions

    Instead of piping unstructured text, Windows PowerShell pipes objects between commands in a pipeline.  As a consequence PowerShell remoting also deals with objects when passing data to and from remote sessions.  This post explains how remote objects are serialized and which types of objects can be sent with full fidelity.  You might want to refer to this post when passing arguments to...
  • How to pass arguments for remote commands

    When invoking remote commands, one often wants to use local values as arguments to the remote command. This post explains how to do that. Hardcoded values Let's start with a simple example. Below you can see how Get-Process is invoked in a remote session when the Id parameter is set to 0: PS> $s = New-PSSession -Computer localhost PS> Invoke-Command -Session $s -Script { Get-Process -Id 0...
  • Advanced Debugging in PowerShell

    Here is a collection of tips and tricks to debug PowerShell Read Up There is a 7-part series of “ Debugging Monad Scripts ” that Jon Newman wrote a few years ago that covers a lot of tips, including error handling, traps, tracing, and covers a lot of V1 stuff. Clean code The best route, is to make sure code is clean, and common errors are caught. To do so, run Set-StrictMode -Version 2 Note, there...
  • Managing Remote Sessions

    PowerShell V2 introduces a new capability which allows you to remotely manage machines in your organization. You may have already tried this new feature. In this blog, I will show how an administrator can manage different remote sessions (created by different users from different clients) Scenario: Using PowerShell remoting, normal users can perform non-admin tasks on a machine remotely. There might...
  • Interactive remoting in CTP3

    Today let's talk about one of the cool new features of Windows PowerShell V2 - Interactive Remoting. Let’s start with an example: PS> $env:COMPUTERNAME # Check local computer name. VLADIMIA64 PS> Enter-PSSession Vladimia06 # Remote to other computer. [vladimia06]: PS C:\Users\Vladimia\Documents> $env:COMPUTERNAME # Check remote computer name. Vladimia06 [vladimia06]: PS C:\Users\Vladimia...
  • Manage winrm settings with wsman provider

    PowerShell remoting is built on top of Windows Remote Management (WinRM), which is Microsoft’s implementation of WS-Management protocol. You can use winrm.cmd command line tool to query and manage winrm settings. PowerShell V2 CTP3 contains a wsman provider for you to manage winrm settings with the standard *-Item cmdlets . Let’s try it out: PS C:\> cd wsman: PS WSMan:\> dir WSManConfig: Microsoft...
  • Configuring PowerShell for Remoting – Part 1

    The features discussed in this blog post depend on PowerShell CTP3 release. Details about PowerShell CTP3 can be found at http://blogs.msdn.com/powershell/archive/2008/12/23/early-christmas-present-from-powershell-team-community-technology-preview-3-ctp3-of-windows-powershell-v2.aspx PowerShell v2 introduces a new capability to manage systems in your organization remotely. We directly support hosting...
Copyright 2010 PowerShell.com. All rights reserved.