itglue / automation

A place for IT Glue's user community to learn ways of automating their documentation.
Apache License 2.0
100 stars 34 forks source link

PowerShell Core? #14

Open KonTheCat opened 6 years ago

KonTheCat commented 6 years ago

For reasons, in our environment we are using PowerShell Core as our primary PowerShell, reaching into the locally installed PowerShell when needed. I'm assuming your scripts are not going to support that, or will have issues with that. Is that correct? If I end up producing PowerShell Core scripts would you accept them for your collection?

CalebAlbers commented 6 years ago

Hey @KonTheCat,

You are correct - the scripts do not currently support PowerShell Core. The scripts rely on the IT Glue PowerShell Module, which utilizes the .NET SecureString type for storing API keys. Although this makes managing secure access for the API key easy, it relies on Microsoft's Data Protection API (DPAPI), which is not supported in PS Core.

I put in an Issue (https://github.com/itglue/powershellwrapper/issues/43) to gauge interest in changing from SecureString to some sort of key-based storage method. I'm still playing around with what the best approach is because I want it to work on stateless systems like AWS Lambda, too.

Once the PowerShell module works on PS Core, the scripts should work no problem (some modification may be needed on the file shares script).

I'd definitely be open to suggestions or contributions!