clong / clong/DetectionLab

win10 join-domain.ps1 fails due to malicious content

Open
#862 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
5k
Forks
1k
PR merge metrics
No merged PRs in 30d

Description

* 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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.