Powershell copy-item .exe has shield icon and wont run

Home Forums Scripting PowerShell Powershell copy-item .exe has shield icon and wont run

This topic contains 0 replies, has 1 voice, and was last updated by Avatar confuseis 2 years, 8 months ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • Avatar
    confuseis
    Participant
    #166848

    I am using a script that copies some exe file to a remote system to launch later using a log script

    tested fine on windows 7, On windows 10 however the .exe files have a shield icon and do not launch

    It looks like these files require elevation. I however need them to be run as the currently logged user not as an administrator

    Is there a way to copy these files and set them to run as a normal user ?

    I seen an unblock cmdlet Unblock-File

    However these files were not downloaded from the internet just copied from a file share, Is it the same command?

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.