Search found 5 matches

by 4100260298
Fri Feb 10, 2017 11:37 am
Forum: Windows PowerShell
Topic: Obfuscate script code when generating an EXE?
Replies: 2
Views: 1315

Obfuscate script code when generating an EXE?

So, we have a section in the code that creates a PSCredential for the rest of the code to use. The person who wrote it put the username and password in the clear in the code. I am wondering if it is possible to obfuscate the code so that the login cred will be protected?
by 4100260298
Tue Jan 31, 2017 2:05 pm
Forum: PowerShell Studio
Topic: EXE not working with Import-Module
Replies: 3
Views: 975

Re: EXE not working with Import-Module

Thank you both! I followed the instructions provided, and they partially resolved the problem. I can run the EXE from explorer, and it works correctly. However, it would not run in the scheduled task. After more troubleshooting, I decided to delete the scheduled task and recreate it. Doing this then...
by 4100260298
Tue Jan 31, 2017 11:15 am
Forum: PowerShell Studio
Topic: EXE not working with Import-Module
Replies: 3
Views: 975

EXE not working with Import-Module

Pwoershell Studio 5.4.134 in Sapien Studio 64 bit 64 bit OS PowerShell Version: v5, v3 same result I've got a script that loads the active directory module. It then uses it to make changes to AD objects. This works fine when I run it in PS Studio, in an Powershell window, and at the DOS prompt. BUT,...
by 4100260298
Thu Jan 26, 2017 10:10 am
Forum: PowerShell Studio
Topic: Import-Module embed in EXE?
Replies: 1
Views: 671

Import-Module embed in EXE?

Product, version and build: Powershell Studio 2017 (Sapien Studio 2017) 5.4.134 (*** Please do not write "latest" as a version, specify a version number ***) 32 or 64 bit version of product: 64 Operating system: 32 or 64 bit OS: 64 Server 2012R2 PowerShell Version: PSv3 for backward compatibility I ...
by 4100260298
Wed Feb 03, 2016 7:28 am
Forum: Windows PowerShell
Topic: Write a service in powershell
Replies: 1
Views: 2233

Write a service in powershell

I need to do some testing with a service. I'm wondering if it is possible to write a service with the appropriate handlers in powershell?