propecia kaufen

 08 Feb 2016 @ 9:54 AM 

Every now and them I get to a customer where they want me to write some code that will be executed at desktops.
However, most of the times I’m part of a team that’s responsible for managing servers and not desktops.
Desktops are managed by another team, sometimes it’s even outsourced.
…and they have the execution policy for desktop set to anything but Unrestricted, or even Bypass.
There are quite a few ways to work around this, but here comes one of my favorites:

  1. Create your script (in my case \\server\share\myscript.ps1)
  2. Create a *.cmd which executes your *.ps1 file:
    powershell.exe -NoLogo -ExecutionPolicy bypass -File \\server\share\myscript.ps1
  3. Execute the *.cmd you’ve created

This script assumes you’re allowed to execute *.cmd files and have access to the *.ps1 file you want to execute. Also, if the *.ps1 file performs tasks that you’re user account doen’t have the permissions to, it will fail. Well duuhh, but I still want to mention it 😉

Note that this is not a security leak, it completely works as designed… as described in the ExecutionPolicy help :-)

Posted By: Jeff Wouters
Last Edit: 08 Feb 2016 @ 09:54 AM

EmailPermalinkComments (0)
Categories: DevOps, DuPSUG, PowerShell

 27 Jan 2016 @ 8:17 AM 

A few weeks ago I started writing a PowerShell module for the SCRUM methodology supporting online service named Trello.

To give you an idea, here’s a screenshot 3 days into this project:

Trello Functions

I’m happy to announce that I’ll be releasing this module during the PowerShell Conference EU 2016 event.
If you’re into Windows PowerShell and haven’t registered for the event yet, I strongly suggest you take a look at the website and decide accordingly 😉

Hope to see you there! :-)

Posted By: Jeff Wouters
Last Edit: 27 Jan 2016 @ 08:17 AM

EmailPermalinkComments (0)
Categories: DevOps, DuPSUG, PowerShell

 Last 50 Posts
Change Theme...
  • Users » 1
  • Posts/Pages » 365
  • Comments » 561
Change Theme...
  • VoidVoid « Default
  • LifeLife
  • EarthEarth
  • WindWind
  • WaterWater
  • FireFire
  • LightLight


    No Child Pages.


    No Child Pages.


    No Child Pages.

Health Check

    No Child Pages.