From 44741e4d28cc96e38190cfe4b21101d0bca9b41a Mon Sep 17 00:00:00 2001 From: Raghib <raghib2@illinois.edu> Date: Wed, 8 Apr 2020 22:40:34 -0500 Subject: [PATCH] Fix variable reference in string --- count-ad-objects.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/count-ad-objects.ps1 b/count-ad-objects.ps1 index 971b007..8057915 100644 --- a/count-ad-objects.ps1 +++ b/count-ad-objects.ps1 @@ -42,7 +42,7 @@ debug "Creating PSCredential object..." $psCreds = New-Object -typename System.Management.Automation.PSCredential -argumentlist $user, $secpass # Copy AD module files from wintools to correct locations -$dest = "$RootDriveLetter:\windows" +$dest = "${RootDriveLetter}:\windows" robocopy /s /r:3 /w:5 $ADModuleSource $dest *.* 2>&1 # Import PowerShell AD module -- GitLab