<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://powershell.com/cs/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Search results for '(app:forums OR groupid:24)' matching tags 'Remote PowerShell' and 'windowss 2008 r2'</title><link>http://powershell.com/cs/search/SearchResults.aspx?q=(app:forums+OR+groupid:24)&amp;tag=Remote+PowerShell,windowss+2008+r2&amp;orTags=0&amp;o=DateDescending</link><description>Search results for '(app:forums OR groupid:24)' matching tags 'Remote PowerShell' and 'windowss 2008 r2'</description><dc:language>en-US</dc:language><generator>CommunityServer 2008.5 (Build: 30929.2835)</generator><item><title>Power shell connectivity issue</title><link>http://powershell.com/cs/forums/thread/16362.aspx</link><pubDate>Fri, 04 May 2012 05:00:00 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:16362</guid><dc:creator>sooraj123</dc:creator><description>&lt;p&gt;Hi..&lt;/p&gt;
&lt;p&gt;I installed a fresh copy of windows 2008 server R2 and enabled powershell using the following commands..&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Enable-PSRemoting &amp;nbsp;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Set-Item WSMan:\localhost\Client\TrustedHosts *&amp;nbsp;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Restart-Service winrm&lt;/b&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;After that I can connect to the local machine using the command &amp;quot;&lt;b&gt;Enter-PSSession 192.168.1.230&lt;/b&gt;&amp;quot;&lt;/p&gt;
&lt;p&gt;But I can&amp;#39;t connect to it from any other machine using the same command..&lt;/p&gt;
&lt;p&gt;Is any other configuration changes needed for it&lt;/p&gt;
&lt;p&gt;any help would be appreciable&lt;/p&gt;
&lt;p&gt;Thanks in advance&lt;/p&gt;
&lt;p&gt;Sooraj&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Install .net framework 4 on remote servers</title><link>http://powershell.com/cs/forums/thread/14177.aspx</link><pubDate>Wed, 25 Jan 2012 06:00:00 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:14177</guid><dc:creator>virtuallynothere</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I am trying to get .net 4 framework installed on remote servers. &amp;nbsp;I have the script pasted below and I keep running into 2 issues.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;1. &amp;nbsp;The file will not copy, the file share permissions are fine as I used a separate script that just copies the installer to the remote servers, but in this script the copy fails.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;2. &amp;nbsp;The install of .net framework fails with exit code 5 and I am not sure why. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
&lt;pre class="notpretty" id="codeSnippet8247782"&gt;[ScriptBlock] $script = {
    #$ErrorActionPreference = &amp;quot;Stop&amp;quot;
    $MachineName= gc env:computername
    C:\Windows\System32\net.exe use Z: &amp;quot;\\RemoteMachine\SharedFolder\DotnetFrameWork 4.0&amp;quot; password /user:domain\username
    if(!(Test-Path &amp;quot;C:\Temp&amp;quot;))
    {
        New-Item -Path &amp;quot;C:\Temp&amp;quot; -ItemType directory
    }
    Copy-Item -Path &amp;quot;Z:\dotNetFx40_Full_x86_x64.exe&amp;quot; -Destination &amp;quot;C:\Temp&amp;quot; -Force -Recurse    
    function LaunchProcessAndWait([string] $FileName, [string] $CommandLineArgs)
    {
        #preferences
        $ErrorActionPreference=&amp;quot;Stop&amp;quot;
        try
        {
            Write-Host &amp;quot;Starting process $FileName on machine $($MachineName)&amp;quot;
            $p = Start-Process -FilePath $FileName -ArgumentList $CommandLineArgs -Wait -PassThru
            Write-Host &amp;quot;The process $FileName exit code is $($p.exitcode)&amp;quot;
            return $p.ExitCode            
        }
        catch
        {
            Write-Host &amp;quot;Error launching process $FileName&amp;quot;
            throw
        }
    }
    LaunchProcessAndWait &amp;quot;C:\Temp\dotNetFx40_Full_x86_x64.exe&amp;quot; &amp;quot;/I /q&amp;quot;
}
$cred = Get-Credential
$sessions = $Hosts | New-PSSession -Credential $cred
Invoke-Command -ScriptBlock $script -Session $sessions
$sessions | Remove-PSSession&lt;/pre&gt;
&lt;/p&gt;</description></item><item><title>Re: Install Dotnet Framework 4 using powershell.</title><link>http://powershell.com/cs/forums/thread/14193.aspx</link><pubDate>Wed, 25 Jan 2012 06:00:00 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:14193</guid><dc:creator>virtuallynothere</dc:creator><description>&lt;p&gt;Thanks, remoting is enabled and I will verify credssp is enabled as I am not positive about that. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;Why would credssp be required for this script if the client computer and destination server are in the same domain and the account used to login and also to run the remote powershell session are both domain admin accounts?&lt;br /&gt;&lt;br /&gt;I know credssp is for multi-hop authentication, but it didn&amp;#39;t look like that was required in this configuration I am using.&lt;/p&gt;
&lt;p&gt;Also, for the file copy portion, I have another script that just copies a file and that works fine being run exactly as I ran this. &amp;nbsp;How does that work? &amp;nbsp;That script is below and I&amp;#39;ve not had any issues with it.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Import-Csv c:\Scripts\servers.txt | foreach {&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;$server = $_.name&amp;nbsp;&lt;/p&gt;
&lt;p&gt;$location = &amp;quot;\c:\Temp&amp;quot;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Copy-Item &amp;quot;\\server\Applications\dotnet4\dotNetFx40_Full_x86_x64.exe&amp;quot; -Destination $location -Force -ErrorAction silentlyContinue | out-null&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;if(-not $?)&amp;nbsp;&lt;/p&gt;
&lt;p&gt;{&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;quot;ERROR: could not copy file(s) to: $server at $location&amp;quot;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;}&amp;nbsp;&lt;/p&gt;
&lt;p&gt;} | out-file errors.txt&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>