# Install Office Service pack 2

**URL:** <https://forums.powershell.org/t/install-office-service-pack-2/3787>\
**Category:** PowerShell Help\
**Created:** [February 20, 2015, 6:24am UTC](https://forums.powershell.org/t/install-office-service-pack-2/3787 "2015-02-20T06:24:04Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![imessage357\_h1](https://avatars.discourse-cdn.com/v4/letter/i/91b2a8/32.png) [@imessage357\_h1](https://forums.powershell.org/u/imessage357_h1)\
**Post date:** [February 20, 2015, 6:24am UTC](https://forums.powershell.org/t/install-office-service-pack-2/3787/1 "2015-02-20T06:24:04Z")

</div>

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

       }
```

---

<div class="post-metadata">

**Author:** ![donj](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/donj/32/137_2.png) [@donj](https://forums.powershell.org/u/donj)\
**Post date:** [February 20, 2015, 6:32am UTC](https://forums.powershell.org/t/install-office-service-pack-2/3787/2 "2015-02-20T06:32:25Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![imessage357\_h1](https://avatars.discourse-cdn.com/v4/letter/i/91b2a8/32.png) [@imessage357\_h1](https://forums.powershell.org/u/imessage357_h1)\
**Post date:** [February 20, 2015, 8:00am UTC](https://forums.powershell.org/t/install-office-service-pack-2/3787/3 "2015-02-20T08:00:42Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![donj](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/donj/32/137_2.png) [@donj](https://forums.powershell.org/u/donj)\
**Post date:** [February 20, 2015, 8:47am UTC](https://forums.powershell.org/t/install-office-service-pack-2/3787/4 "2015-02-20T08:47:48Z")

</div>

Nope.

---

<div class="post-metadata">

**Author:** ![dotnVo](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dotnVo](https://forums.powershell.org/u/dotnVo)\
**Post date:** [May 16, 2024, 8:46pm UTC](https://forums.powershell.org/t/install-office-service-pack-2/3787/5 "2024-05-16T20:46:20Z")

</div>

Closed on May 16, 2024, 8:46pm UTC


