Search found 6 matches

by mkedaj
Tue Jun 24, 2014 4:26 am
Forum: PowerShell Studio
Topic: PowerShell Studio problems with alternate credentials
Replies: 5
Views: 3158

Re: PowerShell Studio problems with alternate credentials

Hi, another finding related to this issue: I created a package and when I tried to execute it I received an "access denied" error. I copied the file into the same directory and the copy worked. I compared the security permissions of the files and recognized that the package created by PowerShell Stu...
by mkedaj
Tue Jun 24, 2014 3:04 am
Forum: PowerShell Studio
Topic: PSS 2014 How to return an exit code from Windows Package
Replies: 0
Views: 6979

PSS 2014 How to return an exit code from Windows Package

Hi, I want to package a script as Windows exe. My sample code: $script:ExitCode = 2 $global:ExitCode = 3 Packaged with "V3 Host (Command line) x64" : PS C:\Test> .\TestExit.exe;$?;$LASTEXITCODE False 3 Packaged with "V3 Host (Windows) x64" : PS C:\Test> .\TestExit.exe;$?;$LASTEXITCODE True Is there ...
by mkedaj
Thu Jun 19, 2014 4:33 am
Forum: PowerShell Studio
Topic: Alternate credentials on Windows 8.1
Replies: 5
Views: 2701

Re: Alternate credentials on Windows 8.1

Hi Sam, I work on a similar script: Some of our field staff use an application which needs regular updates. The update process needs to be elevated for correct execution. The staff has simple user account with no admin permission. So I need a program that can be elevated without knowing the credenti...
by mkedaj
Thu Jun 12, 2014 12:05 pm
Forum: PowerShell Studio
Topic: PowerShell Studio problems with alternate credentials
Replies: 5
Views: 3158

Re: PowerShell Studio problems with alternate credentials

Hi Alexander, it doesn't matter what mode - it's all the same. But a fortunate coincidence brouhgt me forward. Let me explain: Today I worked at my company on my project and I thougt that it could be a good idea to convert my psf file into a project. I created a new form project and placed the proje...
by mkedaj
Thu Jun 12, 2014 2:38 am
Forum: PowerShell Studio
Topic: PowerShell Studio problems with alternate credentials
Replies: 5
Views: 3158

Re: PowerShell Studio problems with alternate credentials

Additiononal Info: A local account is used. This happens with my privat installation with Windows 7 Pro x64 and also with my installation at work (4.1.57) on Windows 7 Enterprise x64. I can't use alternate credentials to start a process in any way: no packaging with impersonation no packaging with R...
by mkedaj
Tue Jun 10, 2014 2:59 pm
Forum: PowerShell Studio
Topic: PowerShell Studio problems with alternate credentials
Replies: 5
Views: 3158

PowerShell Studio problems with alternate credentials

My environment: Windows 7 x64 PowerShell Studio 4.1.61 I tried to use the runas and impersonate features of the packager and recognized that the do not work in my sample. I then made a simple test case with the credential object: $username = "Test" $secstr = ConvertTo-SecureString -String 'Pa$$w0rd'...