[wpkg-users] Trouble enabling PowerShell Remoting from WPKG

Keith Jones K.E.Jones at brighton.ac.uk
Sat May 24 01:50:39 CEST 2014


Okay.

 I can't see much wrong there either :-(

 It's now almost 1:00am here so I'd best run away but I'll work on this tomorrow morning. 

Keith
 

-----Original Message-----
From: wpkg-users-bounces at lists.wpkg.org [mailto:wpkg-users-bounces at lists.wpkg.org] On Behalf Of Keith Jones
Sent: 23 May 2014 23:24
To: Paul Griffith
Cc: wpkg-users at lists.wpkg.org
Subject: Re: [wpkg-users] Trouble enabling PowerShell Remoting from WPKG

Cool.

 Everything you've done so far looks right to me too. I'm just going to have a quick look at the powershell code. Brb

Keith

-----Original Message-----
From: Paul Griffith [mailto:paulg at cse.yorku.ca]
Sent: 23 May 2014 22:59
To: Keith Jones
Cc: wpkg-users at lists.wpkg.org
Subject: Re: [wpkg-users] Trouble enabling PowerShell Remoting from WPKG

Hi Keith,

    WPKG runs under the SYSTEM account, from the WPKG service.

Paul

Quoting Keith Jones <K.E.Jones at brighton.ac.uk>:

> Hi Paul.
>
>  WPKG only has the privs that the account it runs from/under has.  
> How/when are you running it?
>
> Keith
>
> -----Original Message-----
> From: wpkg-users-bounces at lists.wpkg.org 
> [mailto:wpkg-users-bounces at lists.wpkg.org] On Behalf Of Paul Griffith
> Sent: 23 May 2014 19:54
> To: wpkg-users at lists.wpkg.org
> Subject: [wpkg-users] Trouble enabling PowerShell Remoting from WPKG
>
> 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





___________________________________________________________
This email has been scanned by MessageLabs' Email Security System on behalf of the University of Brighton.
For more information see http://www.brighton.ac.uk/is/spam/
___________________________________________________________

___________________________________________________________
This email has been scanned by MessageLabs' Email Security System on behalf of the University of Brighton.
For more information see http://www.brighton.ac.uk/is/spam/
___________________________________________________________
-------------------------------------------------------------------------
Vacation Rentals, Homes, Apartments & Rooms - sign up and get $25 off your first booking! http://www.ptraveler.com/redir/airbnb
-------------------------------------------------------------------------
wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/
_______________________________________________
wpkg-users mailing list
wpkg-users at lists.wpkg.org
http://lists.wpkg.org/mailman/listinfo/wpkg-users

___________________________________________________________
This email has been scanned by MessageLabs' Email Security System on behalf of the University of Brighton.
For more information see http://www.brighton.ac.uk/is/spam/
___________________________________________________________

___________________________________________________________
This email has been scanned by MessageLabs' Email Security
System on behalf of the University of Brighton.
For more information see http://www.brighton.ac.uk/is/spam/
___________________________________________________________



More information about the wpkg-users mailing list