Browse Forum Posts by Tags

Showing related tags and posts for the PowerShell General forum. See all tags in the site
  • how to establish and enter an implicit remote session using runspace in powershell

    Hi, I am trying to establish an implicit session with a remote host from my machine from a C# code. I am using runspace API for that. the code snippet is provided below Runspace runspace = RunspaceFactory.CreateRunspace(); runspace.Open(); //constructing the vmname parameter here vmname = useralias ...
    Posted to Ask Don Jones (Forum) by manishjha on 01-18-2012
    Filed under: Test-Connection, Args, Parameter, scripts, PS Remoting, new-pssession, WMI, Remote PowerShell
  • Re: how to establish and enter an implicit remote session using runspace in powershell

    Hi Don, Thanks a lot for the prompt response! Yes, I stand corrected on this usage of 'implicit' remoting. Thanks for pointing that out. $s is treated as a PSSession object in the script as 'enter-PSSession' expects this object and not the string as the parameter. As for your last scenario...
    Posted to Ask Don Jones (Forum) by manishjha on 01-18-2012
    Filed under: Parameter, scripts, Passing arguments from batch file to powershell, PS Remoting, new-pssession, WMI, Remote PowerShell
  • Having trouble changing displayname of DL

    Hi, we have multiple DLs that we want to change the displayname to. for instanace our current display name says "yahoo users" and we want to create a simple shell to change/replace displayname "yahoo users" to "yahoo all mail users" I tried acheiving this through running...
    Posted to Ask Don Jones (Forum) by ridvon on 01-30-2012
    Filed under: powershell herestring, Parameter, scripts
  • Powershell script - report on AD accounts

    Howdy, I am trying a new script that is hopefully easier than the last I tried. I have a server that performs actions to create, modify, and disable user accounts. I have a command that retrieves the list of users I need to report on and now I am not sure how to get to the next steps of creating this...
    Posted to Ask Don Jones (Forum) by virtuallynothere on 03-30-2012
    Filed under: Parameter, scripts, Active Directory, Recurse, Powershell
  • Windows Feature - Add "As" versus "Add"?

    Does anyone know what the difference between these 2 commands are in terms of what they do considering both add windows features? The "AS" is what I can't find online details on. Add-WindowsFeature as-net-framework The standard seems to be: Add-WindowsFeature Net-Framework
    Posted to Ask Don Jones (Forum) by virtuallynothere on 04-12-2012
    Filed under: Args, Parameter, scripts, Server 2008 R2, Powershell
  • PoSh Script/Function/Cmdlet to Sequence App-V Applications?

    Hi Don/Jeff, I'm pretty confident I've come across such a script in the not so distant past but I can't for the life of me find it now - when I need it! From memory this was a simple function to wrap/bind parameters to the SFTSequencer command line interface, the real difference/advantage...
    Posted to Ask Don and Jeff (Forum) by lloyja01 on 05-29-2012
    Filed under: Parameter, scripts, Powershell, App-V
Page 1 of 1 (6 items)
Copyright 2012 PowerShell.com. All rights reserved.