mirror of
https://github.com/Corsinvest/cv4pve-api-powershell.git
synced 2026-04-25 12:15:48 +03:00
[GH-ISSUE #14] Windows Specific command execution #10
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/cv4pve-api-powershell#10
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @AdminSecNum on GitHub (Jan 30, 2024).
Original GitHub issue: https://github.com/Corsinvest/cv4pve-api-powershell/issues/14
What happened?
Hello, I have a few questions.
I'm coming from VMware and was using PowerCLI to do my VM creation + configuration.
However with ( cv4pve-api-powershell | PVE-API ) I encounter some problems:
1 - I have the impression that anything related to url encoding is prohibited.
1.1 - For example if I have a password like "P@s+w0r&&rd!", I receive a failed authentication; if I use "P@ssw0rd!" No problem
How to avoid this kind of problem? (For example passwords are generated randomly and removing possible chars from url encoding is not an option)
2 - Sending a command does not allow you to send a group of commands:
Same as for point 1, if I use &&
How can I send blocks of orders?
The goal being that under Windows if the commands "follow each other" in the terminal I can use the variables sent previously such as for example:
(The tild allows me that powershell does not interpret the variable currently, but that the vm which receives it does (The tild is removed when it is received by the vm) finally it worked under PowerCli->Windows I think that will be the case here too I haven't tested)
the try with
Work for the cmd3 example but not with the Tild example
The final goal is to be able to fully configure a Windows server, for example, via this API:
Perhaps one or more elements are the "fault" of the PVE API and necessarily of the Powershell module, I'm just trying to understand how to migrate my massive scripts to this module without "too much" change.
Even if I more or less understood that the simplest would be to send the scripts 1 by 1 to the VM rather than direct execution through the API.
Expected behavior
N/A
Relevant log output
No response
Proxmox VE Version
5.15.131-3
Version (bug)
1.0.0
Version (working)
No response
On what operating system are you experiencing the issue?
Windows
Pull Request
@franklupo commented on GitHub (Jan 31, 2024):
Hi,
the version of Proxmox VE you are using is no longer supported. I advise you to update it to 8.
As regards the commands you need to read the Promoxm VE API documentation https://pve.proxmox.com/pve-docs/api-viewer/
best reagrds
@AdminSecNum commented on GitHub (Feb 1, 2024):
Proxmox updated in 8.1.4, but still the same
Exception: authentication failurewith complex password with+or#and&Can be solved with :
@AdminSecNum commented on GitHub (Feb 1, 2024):
Trying to pass command with argument not work
I can see in the debug log on the windows machine no argument are passed
In PVE shell with
i can retrieve the args
Any advice ?
@franklupo commented on GitHub (Feb 12, 2024):
now add support encription password
@franklupo commented on GitHub (Feb 13, 2024):
Fix in new version