I feel like this line could be something like :

```
if copy_ntds(@ip, vscpath, text) and copy_sys_hive(@ip)
```

right? Always is a good idea try to keep code and conditions as simple as possible. Code is more readable :)