-
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
-
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...
-
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...
-
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
-
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...