Browse Forum Posts by Tags

Showing related tags and posts for the Ask the Experts group. See all tags in the site
  • new-pssession - PS Remoting scripts as scheduled tasks.

    I have a product installed in my environment called 'Citrix Xenapp Connector for SCCM 2007'. The installation creates a few scheduled tasks which run powershell scripts and use the new-pssession cmdlet. The tasks run under a domain account that has local admin rights on the server SCCM Site server...
    Posted to Ask Don Jones (Forum) by garethb on 01-12-2012
    Filed under: scripts, scheduled task, PS Remoting, Server 2008 R2, new-pssession
  • 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
  • Powershell command line arguments - prompt for creds?

    I am trying to find out if I can launch powershell from an app that I use to manage the list of systems I connect to over RDP. I can define 'external apps' in the program and there are quite a few available. I specify powershell.exe as the program to launch, then the app has a field for arguments...
    Posted to Ask Don Jones (Forum) by JakeS on 04-05-2012
    Filed under: Parameter, String Manipulation, Passing arguments from batch file to powershell, PS Remoting, Server 2008 R2, new-pssession, Remote PowerShell
  • Remote Powershell - profile options

    Hello, What can I do if I want to get the same profile when I remote into systems using PowerShell? I want to be able to list the modules and snappins available, change the console color, etc. I have tried using some info I googled for about configuring a profile on a remote system, but that fails, I...
    Posted to Ask Don Jones (Forum) by JakeS on 04-09-2012
    Filed under: PS Remoting, new-pssession, Remote PowerShell, Powershell
  • Re: Remote PowerShell - profile to roam when connecting to multiple systems?

    Don, Thanks yet again for the great answer, it seems like alot of people had workarounds where they were doing something to get a specific profile on a remote system. Now I know the real answer :) Is it possible to at least get a different console color, font, or so forth to make it easy to identify...
    Posted to Ask Don Jones (Forum) by JakeS on 04-09-2012
    Filed under: scripts, PS Remoting, new-pssession, Remote PowerShell, Powershell
  • Running .Net 4 Extended

    Hi Don, Just would like to say a big thanks for the book. I'm trying to run a silent install of the .Net4 full profile over the network. Can I do this from creating a new pssession with another computer and then running it from my station? This is what I have to run it siliently; $arglist = "...
    Posted to Ask Don Jones (Forum) by jtimoney on 04-25-2012
    Filed under: new-pssession, Powershell
  • Re: Call Exchange shell/cmdlets from Quest Shell - Proper method?

    I tried to do that, but when I run the get-pssnapin - registered the exchange tools don't come back as registered. Then I've read it's not "supported" to add the snapin for the exchange tools in another shell aside from the exchange shell, so you should use a remote connection,...
    Posted to Ask Don and Jeff (Forum) by JakeS on 06-29-2012
    Filed under: PS Remoting, Server 2008 R2, new-pssession, Remote PowerShell, Active Directory, Powershell
  • Re: Call Exchange shell/cmdlets from Quest Shell - Proper method?

    Thanks, so the tools are installed on the system I need to run this script from, and I got this to work, so is this not recommended either? c:\program files\Microsoft\Exchange\V14\bin\RemoteExchange.ps1 ; connect-ExchangeServer - Auto Is that OK or do I need to do the Remote session noted in your reply...
    Posted to Ask Don and Jeff (Forum) by JakeS on 07-03-2012
    Filed under: scripts, PS Remoting, Server 2008 R2, new-pssession, Remote PowerShell, Active Directory, Powershell
  • Re: Powershell remoting - 1 domain to another, no trust, must use IP

    Thanks, so what is the best method of using Remote PS to get to this untrusted domain from my client? I know I need to specify the -credential, but also agree that adding in "*" to trusted hosts isn't the best idea either.
    Posted to Ask Don Jones (Forum) by JakeS on 04-09-2012
    Filed under: PS Remoting, new-pssession, Remote PowerShell, Recurse, Powershell
Page 1 of 1 (10 items)
Copyright 2012 PowerShell.com. All rights reserved.