Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IcingaForWindows.ps1 - Problems with $env:temp #762

Open
Fail-Unsafe opened this issue Nov 14, 2024 · 0 comments
Open

IcingaForWindows.ps1 - Problems with $env:temp #762

Fail-Unsafe opened this issue Nov 14, 2024 · 0 comments

Comments

@Fail-Unsafe
Copy link

I'm trying to install the Icinga Framework for Windows using the script IcingaForWindows.ps1.

However it seems to use the variable $env:temp everywhere to write temporary files in to the user's temp directory.

This causes problems on our systems as the usernames seem to be garbled up by Powershell, e.g. the username t.bruns-t2 becomes C:\Users\T6CBA~1.BRU\AppData\Local\Temp and this causes problems like this one:

Remove-Item : An object at the specified path C:\Users\T6CBA~1.BRU does not exist.

This is probably because of PowerShell/PowerShell#17359 (comment)

Is there a way to consistently use a well-known directory like C:\Windows\Temp?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant