Install Office Service pack 2

This topic contains 3 replies, has 2 voices, and was last updated by Profile photo of Don Jones Don Jones 1 year, 9 months ago.

  • Author
    Posts
  • #22793
    Profile photo of H Man
    H Man
    Participant

    I would like to install office sp2 remotely by creating a PSSession.

    I will have the kb package in a share .. This is what I have so far

    
    $COMPAREDATE=GET-DATE 
    $NumberDays=14
    $Pcs = $computers  | Get-QADComputer -SizeLimit 0 -IncludedProperties LastLogonTimeStamp | where { ($CompareDate-$_.LastLogonTimeStamp).Days -lt $NumberDays } 
    
    
    $s = new-PSSession -computername ($PCs  |  select -ExpandProperty name)  -ErrorAction SilentlyContinue
    
    
    Invoke-Command -Session $s  -ScriptBlock {  
                            
         net use z: \\Servre01\Share  
    
         .\officesp2010-kb2687455-fullfile-x64-en-us.exe /quiet /norestart /log:c:\office.txt
    
           }
    
    
  • #22795
    Profile photo of Don Jones
    Don Jones
    Keymaster

    You have a couple of problems, one being that the second-hop from the computer to the file share will be un-authenticated unless you've set up multi-hop delegation already. The second is that the installer may not run correctly without a user being logged on at the time; you'll need to test that.

  • #22797
    Profile photo of H Man
    H Man
    Participant

    Thanks Don I Plan on enabling CredSSP, Do you have any suggestions with CredSSp enabled?

  • #22800
    Profile photo of Don Jones
    Don Jones
    Keymaster

    Nope.

You must be logged in to reply to this topic.