-
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
-
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
-
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
-
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...
-
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...
-
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...
-
Hello, I now know the best methods of remoting thanks to Don & the folks here. But I have to use the Quest shell as we utilize their Active Role solution and I need to write a script that runs when something is done to users accounts through that system. I know how to set it up and what commands...
-
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...
-
Hi - I realize thanks to Don that remote "profiles" aren't exactly possible right now in Powershell. But if I want to remote into 1 system that has the tools I need, Exchange mgmt shell, AD shell, quest cmdlets, etc, how can I remote into that system, have a custom shell open so that I...