Apart from the fact that it is recommended to make a backup and turn off the antivirus,
the problem occurs with antiviruses mainly in the .ps1 file, not the old .bat version.
More precisely, antiviruses block lines of code such as:
This part of the script re-run script as an Administrator with -RunAs
So far, other parts of the code do not cause the above-mentioned problems in the operation of the script.
On the one hand, .bat files are either a high threat to antiviruses, and on the other hand, they are completely invisible to them what they hide inside, because in version 5.2 of the script, the implementation of the GUI code was done on the principle of one script in another [ BAT (PS1) ]
I am still working on a solution. The only thing so far is to add a line to the code:
#Requires -RunAsAdministrator
The downside of this solution is that the user have to manually run powershell console as an administrator and execute the .ps1 script
I don't see any more advantages... I will gladly accept any advice.
Apart from the fact that it is recommended to make a backup and turn off the antivirus, the problem occurs with antiviruses mainly in the .ps1 file, not the old .bat version.
More precisely, antiviruses block lines of code such as:
This part of the script re-run script as an Administrator with -RunAs
This part of the script brings up a message box (This has already been replaced and fixed)
So far, other parts of the code do not cause the above-mentioned problems in the operation of the script.
On the one hand, .bat files are either a high threat to antiviruses, and on the other hand, they are completely invisible to them what they hide inside, because in version 5.2 of the script, the implementation of the GUI code was done on the principle of one script in another [ BAT (PS1) ]
I am still working on a solution. The only thing so far is to add a line to the code:
The downside of this solution is that the user have to manually run powershell console as an administrator and execute the .ps1 script I don't see any more advantages... I will gladly accept any advice.