Open drandreas opened 3 years ago
Describe the bug
convert to securestring
ConvertFrom-SecureString : Access is denied.
Run PSM registration
ConvertTo-SecureString : Key not valid for use in specified state.
Run PSM hardening
... some steps failed: AppLocker
To Reproduce Run psm role on Windows Server 2019 with latest Patches installed.
Expected behavior No error, successful PSM-Installation.
Additional context After some googling I think the issue is related to those commands requiring a "user"-session: https://www.reddit.com/r/PowerShell/comments/jafyin/convertfromsecurestring_in_pssession_results_in/
I got the automation working by adding become (https://docs.ansible.com/ansible/latest/user_guide/become.html) to those 3 steps:
become
- name: Run PSM hardening become: yes become_method: runas become_user: Administrator win_shell: | ...
Is there coming an official patch from cyberark on this one, or are you accepting patches?
Describe the bug
convert to securestring
fails withConvertFrom-SecureString : Access is denied.
Run PSM registration
fails withConvertTo-SecureString : Key not valid for use in specified state.
Run PSM hardening
fails with... some steps failed: AppLocker
To Reproduce Run psm role on Windows Server 2019 with latest Patches installed.
Expected behavior No error, successful PSM-Installation.
Additional context After some googling I think the issue is related to those commands requiring a "user"-session: https://www.reddit.com/r/PowerShell/comments/jafyin/convertfromsecurestring_in_pssession_results_in/
I got the automation working by adding
become
(https://docs.ansible.com/ansible/latest/user_guide/become.html) to those 3 steps: