Greetings, I have been running into a brick wall trying to turn on PowerShell Remoting via WPKG, all attempts have failed. If I run the wpkg package from a admin prompt, it works. When I try the same thing from the WPKG it fails. Is there anything special I have to do to enable PowerShell Remoting from the system account ? In the Eventlog I see the error message "Connecting to the remote server failed with the following message: Access is denied" Any pointers? Do need to do something with the System account ? Here is my package file, I adapted from Dafydd Jones. ----snip---- <?xml version="1.0" encoding="UTF-8"?> <packages:packages xmlns:packages="http://www.wpkg.org/packages" xmlns:wpkg="http://www.wpkg.org/wpkg" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.wpkg.org/packages ../../xsd/packages.xsd" > <package id="ps-remoting" name="Enable Powershell Remoting" revision="%PKG_VERSION%rc1" reboot="false" priority="10"> <variable name="PKG_VERSION" value="1" /> <variable name="PKG_NAME" value="ps-remoting" /> <variable name="PKG_SOURCE" value="%SOFTWARE%\"/> <variable name="PKG_DESTINATION" value="%ProgramFiles%\" architecture="x86"/> <variable name="PKG_DESTINATION" value="%ProgramFiles(x86)%\" architecture="x64"/> <check type="execute" path='powershell -NonInteractive -Command "if (Invoke-Command localhost {1}) {exit 0} else {exit 1}"' condition="exitcodeequalto" value="0"/> <install cmd='powershell -ExecutionPolicy Unrestricted -NonInteractive -Command "Enable-PSRemoting -Force" '/> <install cmd='powershell -ExecutionPolicy Unrestricted -NonInteractive -Command "Set-Item WSMan:\localhost\Client\TrustedHosts -Value * -Force" '/> <upgrade include="install" /> <remove cmd='powershell -ExecutionPolicy Unrestricted -NonInteractive -Command "Disable-PSRemoting -Force" '/> </package> </packages:packages> ----snip---- Thank You Paul |