This forum can be browsed by the general public. Posting is limited to current SAPIEN license holders with active maintenance and does not offer a response time guarantee.
Forum rules DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM. Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 1 year and 2 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
I made a tool which need RSAT AD on computer.
I try to install it if not present and do a loop to wait if it is installed before continue startup.pss with another form.
In standard user when i launch this command in Powershell ISE RSAT got installed :
Is it not working when you run your project (F5) or is it not working when you package it as an executable? You say 'compiled' so I just need to clarify.
It is ever reaching the code to install? Have you tried putting a breakpoint on the line to see?
it is not working when i package it as an executable.
i have install powershell studio on the AD server in my lab test, and try to launch the exe on client side so i can not see what happen on client i just launch the .exe file.
When i launch all commands in powershell_ise on client everything is ok.
*** Please fill in the fields below. If you leave fields empty or specify 'latest' rather than the actual version your answer will be delayed as we will be forced to ask you for this information. ***
Product, version and build:
Operating system:
PowerShell version(s):
*** Please add details and screenshots as needed below. ***
-Does your form project run (F5) in PowerShell Studio without any errors?
-Are there any errors when you run your executable? For example, are there any popups when you run or errors reported to Event Viewer?
-Are you sure you don't need administrator rights on the "client computer"?
-Have you tested just running your project exported as a script (not executable) on the 'client' machine to verify that it runs? If not, please try.
Can you please provide a screenshot of the error you are receiving when you run the exported script? Just to clarify, the "error in file path with start process" is when you run the exported script on the client computer? How are you running the exported script on the client machine?
The more details provided, the easier it will be to assist you.
The strange thing is if i launch commands with standard user rights in powershell_ise directly there is no error, all run fine.
When i export my projet in ps1 or if i put commands in .ps1 file directly i have this error.
This happen on client where i want to install RSAT AD plugin.
When i run ps1 files with admin rights i have no problem at all.
I do not understand the differences launching commands in powershell_ISE and commands in PS1 files in standard user because i use admin credentials in my script.
This topic is 1 year and 2 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.