DetectionLab icon indicating copy to clipboard operation
DetectionLab copied to clipboard

win10 join-domain.ps1 fails due to malicious content

Open rufflabs opened this issue 3 years ago • 1 comments

  • Operating System Version: Windows 10 21H1
  • Deploying via (VirtualBox/VMWare/AWS/Azure/ESXi): VMware Workstation
  • Vagrant Version (if applicable): 2.3.2

Please verify that you are building from an updated Master branch before filing an issue.

Description of the issue:

During Win10 build the join-domain.ps1 script is blocked due to malicious content.

[20:14] Current domain is set to 'workgroup'. Time to join the domain!
[20:14] My hostname is WIN10




Stderr from the command:

powershell.exe : At C:\vagrant\scripts\join-domain.ps1:1 char:1
    + CategoryInfo          : NotSpecified: (At C:\vagrant\s...in.ps1:1 char:1:String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError
+ # Purpose: Joins a Windows host to the windomain.local domain which w ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This script contains malicious content and has been blocked by your antivirus software.
    + CategoryInfo          : ParserError: (:) [], ParseException
    + FullyQualifiedErrorId : ScriptContainedMaliciousContent

PS E:\DetectionLab\Vagrant>

Link to Gist Containing Build Logs:

I don't have any /DetectionLab/Vagrant/vagrant_up_$host.log logs.

rufflabs avatar Oct 19 '22 20:10 rufflabs

I have the same issue on an up-to date build I tried today.

I also got it while running "vagrant up" and in the end at the process of installing windows machine.

GeorgePanagiotakopoulos avatar Oct 24 '22 00:10 GeorgePanagiotakopoulos