How do you install .net4 on a Server 2008 r2 machine through psremoting in powershell?












3















I need to write a script that installs .net 4 remotely using powershell to a group of Server 2008 R2 machines. I based my script off of http://social.technet.microsoft.com/Forums/en-US/winserverpowershell/thread/3045eb24-7739-4695-ae94-5aa7052119fd/.



enter-pssession -computername localhost
$arglist = "/q /norestart /log C:UserstempuserDesktopdotnetfx4"
$filepath = "C:UserstempuserDesktopdotNetFx40_Full_setup.exe"
Start-Process -FilePath $filepath -ArgumentList $arglist -Wait -PassThru


After running the command I would get the following log errors (running the same lines locally would install .net without error):



Action: Downloading Item 
Failed to CreateJob : hr= 0x80200014
Action: Performing actions on all Items
Action: Performing Action on Exe at C:UserstempuserDesktopdotnetfx4SetupUtility.exe
Exe (C:UserstempuserDesktopdotnetfx4SetupUtility.exe) succeeded.
Exe Log File: dd_SetupUtility.txt
Action complete
Action: ServiceControl - Stop clr_optimization_v2.0.50727_32
ServiceControl operation succeeded!
Action complete
Action: ServiceControl - Stop clr_optimization_v2.0.50727_64
ServiceControl operation succeeded!
Action complete
Action: Performing Action on Exe at C:UserstempuserAppDataLocalTempMicrosoft .NET Framework 4 Setup_4.0.30319Windows6.1-KB958488-v6001-x64.msu
Exe (C:UserstempuserAppDataLocalTempMicrosoft .NET Framework 4 Setup_4.0.30319Windows6.1-KB958488-v6001-x64.msu) failed with 0x5 - Access is denied. .
PerformOperation on exe returned exit code 5 (translates to HRESULT = 0x5)
Action complete
OnFailureBehavior for this item is to Rollback.
Action: Performing actions on all Items
Action complete
Action complete
Action: Downloading http://go.microsoft.com/fwlink/?LinkId=164184&clcid=0x409 using WinHttp
WinHttpDetectAutoProxyConfigUrl failed with error: 12180
Unable to retrieve Proxy information although WinHttpGetIEProxyConfigForCurrentUser called succeeded
Action complete
C:UserstempuserAppDataLocalTempMicrosoft .NET Framework 4 Setup_4.0.30319TMPF279.tmp.exe: Verifying signature for netfx_Core.mzz
C:UserstempuserAppDataLocalTempMicrosoft .NET Framework 4 Setup_4.0.30319TMPF279.tmp.exe Signature verified successfully for netfx_Core.mzz
Action complete
Decompression completed with code: 16389
Decompression of payload failed: C:UserstempuserAppDataLocalTempMicrosoft .NET Framework 4 Setup_4.0.30319netfx_Core.mzz
Action complete
Final Result: Installation failed with error code: (0x80074005) (Elapsed time: 0 00:00:28).


Is there some security setting or perhaps something else I've missed?










share|improve this question




















  • 1





    Seems like a permission issue, How are you running the script?

    – Ƭᴇcʜιᴇ007
    Nov 18 '11 at 20:59













  • I've been running this as admin with a user that's part of the administrator group. Running the script without the "enter-pssession" line seems to work no problem.

    – Jake
    Nov 21 '11 at 16:19













  • Like right-click->Run As Administrator on the .PS1?

    – Ƭᴇcʜιᴇ007
    Nov 21 '11 at 16:25











  • I'm actually doing that on powershell.exe and running this through a console.

    – Jake
    Nov 21 '11 at 22:03











  • Hope you are using ps 3.0 and server 2008 r2 systems are up to date with sp1. By the way, you can have a look at calegp.com/?p=247&cpage=1#comment-177.

    – Lasith
    Jan 30 '13 at 13:15
















3















I need to write a script that installs .net 4 remotely using powershell to a group of Server 2008 R2 machines. I based my script off of http://social.technet.microsoft.com/Forums/en-US/winserverpowershell/thread/3045eb24-7739-4695-ae94-5aa7052119fd/.



enter-pssession -computername localhost
$arglist = "/q /norestart /log C:UserstempuserDesktopdotnetfx4"
$filepath = "C:UserstempuserDesktopdotNetFx40_Full_setup.exe"
Start-Process -FilePath $filepath -ArgumentList $arglist -Wait -PassThru


After running the command I would get the following log errors (running the same lines locally would install .net without error):



Action: Downloading Item 
Failed to CreateJob : hr= 0x80200014
Action: Performing actions on all Items
Action: Performing Action on Exe at C:UserstempuserDesktopdotnetfx4SetupUtility.exe
Exe (C:UserstempuserDesktopdotnetfx4SetupUtility.exe) succeeded.
Exe Log File: dd_SetupUtility.txt
Action complete
Action: ServiceControl - Stop clr_optimization_v2.0.50727_32
ServiceControl operation succeeded!
Action complete
Action: ServiceControl - Stop clr_optimization_v2.0.50727_64
ServiceControl operation succeeded!
Action complete
Action: Performing Action on Exe at C:UserstempuserAppDataLocalTempMicrosoft .NET Framework 4 Setup_4.0.30319Windows6.1-KB958488-v6001-x64.msu
Exe (C:UserstempuserAppDataLocalTempMicrosoft .NET Framework 4 Setup_4.0.30319Windows6.1-KB958488-v6001-x64.msu) failed with 0x5 - Access is denied. .
PerformOperation on exe returned exit code 5 (translates to HRESULT = 0x5)
Action complete
OnFailureBehavior for this item is to Rollback.
Action: Performing actions on all Items
Action complete
Action complete
Action: Downloading http://go.microsoft.com/fwlink/?LinkId=164184&clcid=0x409 using WinHttp
WinHttpDetectAutoProxyConfigUrl failed with error: 12180
Unable to retrieve Proxy information although WinHttpGetIEProxyConfigForCurrentUser called succeeded
Action complete
C:UserstempuserAppDataLocalTempMicrosoft .NET Framework 4 Setup_4.0.30319TMPF279.tmp.exe: Verifying signature for netfx_Core.mzz
C:UserstempuserAppDataLocalTempMicrosoft .NET Framework 4 Setup_4.0.30319TMPF279.tmp.exe Signature verified successfully for netfx_Core.mzz
Action complete
Decompression completed with code: 16389
Decompression of payload failed: C:UserstempuserAppDataLocalTempMicrosoft .NET Framework 4 Setup_4.0.30319netfx_Core.mzz
Action complete
Final Result: Installation failed with error code: (0x80074005) (Elapsed time: 0 00:00:28).


Is there some security setting or perhaps something else I've missed?










share|improve this question




















  • 1





    Seems like a permission issue, How are you running the script?

    – Ƭᴇcʜιᴇ007
    Nov 18 '11 at 20:59













  • I've been running this as admin with a user that's part of the administrator group. Running the script without the "enter-pssession" line seems to work no problem.

    – Jake
    Nov 21 '11 at 16:19













  • Like right-click->Run As Administrator on the .PS1?

    – Ƭᴇcʜιᴇ007
    Nov 21 '11 at 16:25











  • I'm actually doing that on powershell.exe and running this through a console.

    – Jake
    Nov 21 '11 at 22:03











  • Hope you are using ps 3.0 and server 2008 r2 systems are up to date with sp1. By the way, you can have a look at calegp.com/?p=247&cpage=1#comment-177.

    – Lasith
    Jan 30 '13 at 13:15














3












3








3


2






I need to write a script that installs .net 4 remotely using powershell to a group of Server 2008 R2 machines. I based my script off of http://social.technet.microsoft.com/Forums/en-US/winserverpowershell/thread/3045eb24-7739-4695-ae94-5aa7052119fd/.



enter-pssession -computername localhost
$arglist = "/q /norestart /log C:UserstempuserDesktopdotnetfx4"
$filepath = "C:UserstempuserDesktopdotNetFx40_Full_setup.exe"
Start-Process -FilePath $filepath -ArgumentList $arglist -Wait -PassThru


After running the command I would get the following log errors (running the same lines locally would install .net without error):



Action: Downloading Item 
Failed to CreateJob : hr= 0x80200014
Action: Performing actions on all Items
Action: Performing Action on Exe at C:UserstempuserDesktopdotnetfx4SetupUtility.exe
Exe (C:UserstempuserDesktopdotnetfx4SetupUtility.exe) succeeded.
Exe Log File: dd_SetupUtility.txt
Action complete
Action: ServiceControl - Stop clr_optimization_v2.0.50727_32
ServiceControl operation succeeded!
Action complete
Action: ServiceControl - Stop clr_optimization_v2.0.50727_64
ServiceControl operation succeeded!
Action complete
Action: Performing Action on Exe at C:UserstempuserAppDataLocalTempMicrosoft .NET Framework 4 Setup_4.0.30319Windows6.1-KB958488-v6001-x64.msu
Exe (C:UserstempuserAppDataLocalTempMicrosoft .NET Framework 4 Setup_4.0.30319Windows6.1-KB958488-v6001-x64.msu) failed with 0x5 - Access is denied. .
PerformOperation on exe returned exit code 5 (translates to HRESULT = 0x5)
Action complete
OnFailureBehavior for this item is to Rollback.
Action: Performing actions on all Items
Action complete
Action complete
Action: Downloading http://go.microsoft.com/fwlink/?LinkId=164184&clcid=0x409 using WinHttp
WinHttpDetectAutoProxyConfigUrl failed with error: 12180
Unable to retrieve Proxy information although WinHttpGetIEProxyConfigForCurrentUser called succeeded
Action complete
C:UserstempuserAppDataLocalTempMicrosoft .NET Framework 4 Setup_4.0.30319TMPF279.tmp.exe: Verifying signature for netfx_Core.mzz
C:UserstempuserAppDataLocalTempMicrosoft .NET Framework 4 Setup_4.0.30319TMPF279.tmp.exe Signature verified successfully for netfx_Core.mzz
Action complete
Decompression completed with code: 16389
Decompression of payload failed: C:UserstempuserAppDataLocalTempMicrosoft .NET Framework 4 Setup_4.0.30319netfx_Core.mzz
Action complete
Final Result: Installation failed with error code: (0x80074005) (Elapsed time: 0 00:00:28).


Is there some security setting or perhaps something else I've missed?










share|improve this question
















I need to write a script that installs .net 4 remotely using powershell to a group of Server 2008 R2 machines. I based my script off of http://social.technet.microsoft.com/Forums/en-US/winserverpowershell/thread/3045eb24-7739-4695-ae94-5aa7052119fd/.



enter-pssession -computername localhost
$arglist = "/q /norestart /log C:UserstempuserDesktopdotnetfx4"
$filepath = "C:UserstempuserDesktopdotNetFx40_Full_setup.exe"
Start-Process -FilePath $filepath -ArgumentList $arglist -Wait -PassThru


After running the command I would get the following log errors (running the same lines locally would install .net without error):



Action: Downloading Item 
Failed to CreateJob : hr= 0x80200014
Action: Performing actions on all Items
Action: Performing Action on Exe at C:UserstempuserDesktopdotnetfx4SetupUtility.exe
Exe (C:UserstempuserDesktopdotnetfx4SetupUtility.exe) succeeded.
Exe Log File: dd_SetupUtility.txt
Action complete
Action: ServiceControl - Stop clr_optimization_v2.0.50727_32
ServiceControl operation succeeded!
Action complete
Action: ServiceControl - Stop clr_optimization_v2.0.50727_64
ServiceControl operation succeeded!
Action complete
Action: Performing Action on Exe at C:UserstempuserAppDataLocalTempMicrosoft .NET Framework 4 Setup_4.0.30319Windows6.1-KB958488-v6001-x64.msu
Exe (C:UserstempuserAppDataLocalTempMicrosoft .NET Framework 4 Setup_4.0.30319Windows6.1-KB958488-v6001-x64.msu) failed with 0x5 - Access is denied. .
PerformOperation on exe returned exit code 5 (translates to HRESULT = 0x5)
Action complete
OnFailureBehavior for this item is to Rollback.
Action: Performing actions on all Items
Action complete
Action complete
Action: Downloading http://go.microsoft.com/fwlink/?LinkId=164184&clcid=0x409 using WinHttp
WinHttpDetectAutoProxyConfigUrl failed with error: 12180
Unable to retrieve Proxy information although WinHttpGetIEProxyConfigForCurrentUser called succeeded
Action complete
C:UserstempuserAppDataLocalTempMicrosoft .NET Framework 4 Setup_4.0.30319TMPF279.tmp.exe: Verifying signature for netfx_Core.mzz
C:UserstempuserAppDataLocalTempMicrosoft .NET Framework 4 Setup_4.0.30319TMPF279.tmp.exe Signature verified successfully for netfx_Core.mzz
Action complete
Decompression completed with code: 16389
Decompression of payload failed: C:UserstempuserAppDataLocalTempMicrosoft .NET Framework 4 Setup_4.0.30319netfx_Core.mzz
Action complete
Final Result: Installation failed with error code: (0x80074005) (Elapsed time: 0 00:00:28).


Is there some security setting or perhaps something else I've missed?







powershell windows-server-2008-r2 .net-framework deployment .net-4.0






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Oct 12 '15 at 7:35









ElektroStudios

70361444




70361444










asked Nov 18 '11 at 20:14









JakeJake

1612




1612








  • 1





    Seems like a permission issue, How are you running the script?

    – Ƭᴇcʜιᴇ007
    Nov 18 '11 at 20:59













  • I've been running this as admin with a user that's part of the administrator group. Running the script without the "enter-pssession" line seems to work no problem.

    – Jake
    Nov 21 '11 at 16:19













  • Like right-click->Run As Administrator on the .PS1?

    – Ƭᴇcʜιᴇ007
    Nov 21 '11 at 16:25











  • I'm actually doing that on powershell.exe and running this through a console.

    – Jake
    Nov 21 '11 at 22:03











  • Hope you are using ps 3.0 and server 2008 r2 systems are up to date with sp1. By the way, you can have a look at calegp.com/?p=247&cpage=1#comment-177.

    – Lasith
    Jan 30 '13 at 13:15














  • 1





    Seems like a permission issue, How are you running the script?

    – Ƭᴇcʜιᴇ007
    Nov 18 '11 at 20:59













  • I've been running this as admin with a user that's part of the administrator group. Running the script without the "enter-pssession" line seems to work no problem.

    – Jake
    Nov 21 '11 at 16:19













  • Like right-click->Run As Administrator on the .PS1?

    – Ƭᴇcʜιᴇ007
    Nov 21 '11 at 16:25











  • I'm actually doing that on powershell.exe and running this through a console.

    – Jake
    Nov 21 '11 at 22:03











  • Hope you are using ps 3.0 and server 2008 r2 systems are up to date with sp1. By the way, you can have a look at calegp.com/?p=247&cpage=1#comment-177.

    – Lasith
    Jan 30 '13 at 13:15








1




1





Seems like a permission issue, How are you running the script?

– Ƭᴇcʜιᴇ007
Nov 18 '11 at 20:59







Seems like a permission issue, How are you running the script?

– Ƭᴇcʜιᴇ007
Nov 18 '11 at 20:59















I've been running this as admin with a user that's part of the administrator group. Running the script without the "enter-pssession" line seems to work no problem.

– Jake
Nov 21 '11 at 16:19







I've been running this as admin with a user that's part of the administrator group. Running the script without the "enter-pssession" line seems to work no problem.

– Jake
Nov 21 '11 at 16:19















Like right-click->Run As Administrator on the .PS1?

– Ƭᴇcʜιᴇ007
Nov 21 '11 at 16:25





Like right-click->Run As Administrator on the .PS1?

– Ƭᴇcʜιᴇ007
Nov 21 '11 at 16:25













I'm actually doing that on powershell.exe and running this through a console.

– Jake
Nov 21 '11 at 22:03





I'm actually doing that on powershell.exe and running this through a console.

– Jake
Nov 21 '11 at 22:03













Hope you are using ps 3.0 and server 2008 r2 systems are up to date with sp1. By the way, you can have a look at calegp.com/?p=247&cpage=1#comment-177.

– Lasith
Jan 30 '13 at 13:15





Hope you are using ps 3.0 and server 2008 r2 systems are up to date with sp1. By the way, you can have a look at calegp.com/?p=247&cpage=1#comment-177.

– Lasith
Jan 30 '13 at 13:15










2 Answers
2






active

oldest

votes


















0














I figured out how to make it work using Opalis. There is an option for running the process "Interactively" instead of in the background. It still runs remotely, so I can run it against multiple machines. This is what did the trick for me. Here is how Opalis defines the different modes of execution:



Interactive - Select this option to display a user interface on the computer where the command or program is run. A user interface, if available, appears in a user session that is defined by the user credentials specified in the Run as boxs (User name, Password) on the Advanced tab.



Background, normal priority - Select this option to run the command or program in the background with the process priority set to normal. In this mode no user interface will be displayed.



Background, low priority - Select this option to run the command or program in the background with the process priority set to low. In this mode no user interface will be displayed. Some programs may not function correctly when set to low priority. If this is the case, use the Interactive or Backgroud, normal priority settings instead.






share|improve this answer


























  • I won't be able to use Opalis due to legal issues, cost, and setup. Powershell was picked because of it's remoting capabilities, minimal setup, and it already being installed in Server 2008 R2 machines. Hopefully this solution helps someone else!

    – Jake
    Nov 30 '11 at 0:07





















0














I've found a workaround for this issue using scheduled tasks. The .net 4 installer has no problem with running through a scheduled task as the current admin user that it fails to run under directly through powershell.



Creating, running, and deleting said task through a psremoting session works fine.




schtasks /create /tn net4install /sc once /st 12:34 /sd 01/02/2003 /f /np /RL
highest /tr M:SharedDriveLocationdotNetFx40_Full_setup.exe /q /norestart



schtasks /run /tn net4install /i



schtasks /delete /tn installdotnet4 /f




Ugly, but it works. If anyone finds a more elegant way to solve this, I'm all ears =)






share|improve this answer
























  • any final solution ? what is it "installdotnet4" ?

    – Kiquenet
    Jun 18 '13 at 6:29











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f359019%2fhow-do-you-install-net4-on-a-server-2008-r2-machine-through-psremoting-in-power%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














I figured out how to make it work using Opalis. There is an option for running the process "Interactively" instead of in the background. It still runs remotely, so I can run it against multiple machines. This is what did the trick for me. Here is how Opalis defines the different modes of execution:



Interactive - Select this option to display a user interface on the computer where the command or program is run. A user interface, if available, appears in a user session that is defined by the user credentials specified in the Run as boxs (User name, Password) on the Advanced tab.



Background, normal priority - Select this option to run the command or program in the background with the process priority set to normal. In this mode no user interface will be displayed.



Background, low priority - Select this option to run the command or program in the background with the process priority set to low. In this mode no user interface will be displayed. Some programs may not function correctly when set to low priority. If this is the case, use the Interactive or Backgroud, normal priority settings instead.






share|improve this answer


























  • I won't be able to use Opalis due to legal issues, cost, and setup. Powershell was picked because of it's remoting capabilities, minimal setup, and it already being installed in Server 2008 R2 machines. Hopefully this solution helps someone else!

    – Jake
    Nov 30 '11 at 0:07


















0














I figured out how to make it work using Opalis. There is an option for running the process "Interactively" instead of in the background. It still runs remotely, so I can run it against multiple machines. This is what did the trick for me. Here is how Opalis defines the different modes of execution:



Interactive - Select this option to display a user interface on the computer where the command or program is run. A user interface, if available, appears in a user session that is defined by the user credentials specified in the Run as boxs (User name, Password) on the Advanced tab.



Background, normal priority - Select this option to run the command or program in the background with the process priority set to normal. In this mode no user interface will be displayed.



Background, low priority - Select this option to run the command or program in the background with the process priority set to low. In this mode no user interface will be displayed. Some programs may not function correctly when set to low priority. If this is the case, use the Interactive or Backgroud, normal priority settings instead.






share|improve this answer


























  • I won't be able to use Opalis due to legal issues, cost, and setup. Powershell was picked because of it's remoting capabilities, minimal setup, and it already being installed in Server 2008 R2 machines. Hopefully this solution helps someone else!

    – Jake
    Nov 30 '11 at 0:07
















0












0








0







I figured out how to make it work using Opalis. There is an option for running the process "Interactively" instead of in the background. It still runs remotely, so I can run it against multiple machines. This is what did the trick for me. Here is how Opalis defines the different modes of execution:



Interactive - Select this option to display a user interface on the computer where the command or program is run. A user interface, if available, appears in a user session that is defined by the user credentials specified in the Run as boxs (User name, Password) on the Advanced tab.



Background, normal priority - Select this option to run the command or program in the background with the process priority set to normal. In this mode no user interface will be displayed.



Background, low priority - Select this option to run the command or program in the background with the process priority set to low. In this mode no user interface will be displayed. Some programs may not function correctly when set to low priority. If this is the case, use the Interactive or Backgroud, normal priority settings instead.






share|improve this answer















I figured out how to make it work using Opalis. There is an option for running the process "Interactively" instead of in the background. It still runs remotely, so I can run it against multiple machines. This is what did the trick for me. Here is how Opalis defines the different modes of execution:



Interactive - Select this option to display a user interface on the computer where the command or program is run. A user interface, if available, appears in a user session that is defined by the user credentials specified in the Run as boxs (User name, Password) on the Advanced tab.



Background, normal priority - Select this option to run the command or program in the background with the process priority set to normal. In this mode no user interface will be displayed.



Background, low priority - Select this option to run the command or program in the background with the process priority set to low. In this mode no user interface will be displayed. Some programs may not function correctly when set to low priority. If this is the case, use the Interactive or Backgroud, normal priority settings instead.







share|improve this answer














share|improve this answer



share|improve this answer








edited Nov 28 '11 at 23:09









Simon Sheehan

7,705124269




7,705124269










answered Nov 28 '11 at 18:00









rezilientrezilient

11




11













  • I won't be able to use Opalis due to legal issues, cost, and setup. Powershell was picked because of it's remoting capabilities, minimal setup, and it already being installed in Server 2008 R2 machines. Hopefully this solution helps someone else!

    – Jake
    Nov 30 '11 at 0:07





















  • I won't be able to use Opalis due to legal issues, cost, and setup. Powershell was picked because of it's remoting capabilities, minimal setup, and it already being installed in Server 2008 R2 machines. Hopefully this solution helps someone else!

    – Jake
    Nov 30 '11 at 0:07



















I won't be able to use Opalis due to legal issues, cost, and setup. Powershell was picked because of it's remoting capabilities, minimal setup, and it already being installed in Server 2008 R2 machines. Hopefully this solution helps someone else!

– Jake
Nov 30 '11 at 0:07







I won't be able to use Opalis due to legal issues, cost, and setup. Powershell was picked because of it's remoting capabilities, minimal setup, and it already being installed in Server 2008 R2 machines. Hopefully this solution helps someone else!

– Jake
Nov 30 '11 at 0:07















0














I've found a workaround for this issue using scheduled tasks. The .net 4 installer has no problem with running through a scheduled task as the current admin user that it fails to run under directly through powershell.



Creating, running, and deleting said task through a psremoting session works fine.




schtasks /create /tn net4install /sc once /st 12:34 /sd 01/02/2003 /f /np /RL
highest /tr M:SharedDriveLocationdotNetFx40_Full_setup.exe /q /norestart



schtasks /run /tn net4install /i



schtasks /delete /tn installdotnet4 /f




Ugly, but it works. If anyone finds a more elegant way to solve this, I'm all ears =)






share|improve this answer
























  • any final solution ? what is it "installdotnet4" ?

    – Kiquenet
    Jun 18 '13 at 6:29
















0














I've found a workaround for this issue using scheduled tasks. The .net 4 installer has no problem with running through a scheduled task as the current admin user that it fails to run under directly through powershell.



Creating, running, and deleting said task through a psremoting session works fine.




schtasks /create /tn net4install /sc once /st 12:34 /sd 01/02/2003 /f /np /RL
highest /tr M:SharedDriveLocationdotNetFx40_Full_setup.exe /q /norestart



schtasks /run /tn net4install /i



schtasks /delete /tn installdotnet4 /f




Ugly, but it works. If anyone finds a more elegant way to solve this, I'm all ears =)






share|improve this answer
























  • any final solution ? what is it "installdotnet4" ?

    – Kiquenet
    Jun 18 '13 at 6:29














0












0








0







I've found a workaround for this issue using scheduled tasks. The .net 4 installer has no problem with running through a scheduled task as the current admin user that it fails to run under directly through powershell.



Creating, running, and deleting said task through a psremoting session works fine.




schtasks /create /tn net4install /sc once /st 12:34 /sd 01/02/2003 /f /np /RL
highest /tr M:SharedDriveLocationdotNetFx40_Full_setup.exe /q /norestart



schtasks /run /tn net4install /i



schtasks /delete /tn installdotnet4 /f




Ugly, but it works. If anyone finds a more elegant way to solve this, I'm all ears =)






share|improve this answer













I've found a workaround for this issue using scheduled tasks. The .net 4 installer has no problem with running through a scheduled task as the current admin user that it fails to run under directly through powershell.



Creating, running, and deleting said task through a psremoting session works fine.




schtasks /create /tn net4install /sc once /st 12:34 /sd 01/02/2003 /f /np /RL
highest /tr M:SharedDriveLocationdotNetFx40_Full_setup.exe /q /norestart



schtasks /run /tn net4install /i



schtasks /delete /tn installdotnet4 /f




Ugly, but it works. If anyone finds a more elegant way to solve this, I'm all ears =)







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 30 '11 at 0:20









JakeJake

1612




1612













  • any final solution ? what is it "installdotnet4" ?

    – Kiquenet
    Jun 18 '13 at 6:29



















  • any final solution ? what is it "installdotnet4" ?

    – Kiquenet
    Jun 18 '13 at 6:29

















any final solution ? what is it "installdotnet4" ?

– Kiquenet
Jun 18 '13 at 6:29





any final solution ? what is it "installdotnet4" ?

– Kiquenet
Jun 18 '13 at 6:29


















draft saved

draft discarded




















































Thanks for contributing an answer to Super User!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f359019%2fhow-do-you-install-net4-on-a-server-2008-r2-machine-through-psremoting-in-power%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Сан-Квентин

8-я гвардейская общевойсковая армия

Алькесар