Browse Forum Posts by Tags

Showing related tags and posts for the Forums application. 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
  • How to call Powershell Command through outside domain machine

    HI everyone, I am new to Powershell. I am trying to call the powershell command of server machine through other machine which is not a part of any domain. So is it possible ? If yes, can anybody give some code snippet of how to call powershell through outside domain machine. Pleaseeeeeeeeeee it's...
    Posted to Ask Don Jones (Forum) by sachin.gangarde on 02-24-2012
    Filed under: PS Remoting, 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
  • Script to delete home folders for list of users

    I am trying to find a way to modify the script below or if anyone has a script that will delete home folders for a list of users if the user names are specified in a text or csv file, can anyone help? I would like to delete the user accounts as well, but the home folders is fine for now. I want to do...
    Posted to Ask Don Jones (Forum) by JakeS on 04-17-2012
    Filed under: scripts, PS Remoting, Server 2008 R2, Remote PowerShell, Active Directory, Powershell
  • Script/command - query sql server & configure firewall rules?

    I am trying to find a way to use powershell to query a sql server and provide back the instance names with the port numbers used, then ideally get the port numbers and add them to specific rules I create for the Windows firewall. Currently I use the netsh commands for the firewall config and go to the...
    Posted to Ask Don Jones (Forum) by JakeS on 04-25-2012
    Filed under: scripts, PS Remoting, Server 2008 R2, WMI, Database, Powershell, List
  • Re: Remote Powershell - options to run commands?

    Don, So I've read a fair amount since this post and I bought your last book, but I'm looking at the new "lunches series", and I think I'm still a beginner, but do I need to know powershell 1 or 2 before ordering the powershell 3 book series? I've read about 20 contradicting...
    Posted to Ask Don and Jeff (Forum) by JakeS on 06-21-2012
    Filed under: PS Remoting, Remote PowerShell, Powershell, Enter-PSSession
Page 1 of 3 (25 items) 1 2 3 Next >
Copyright 2012 PowerShell.com. All rights reserved.