Skip to content

Commit 323fb85

Browse files
Update TerminateUser.ps1
1 parent 6c5f480 commit 323fb85

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

TerminateUser.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ Write-Host "$Username Groups exported"
8484
Get-ADPrincipalGroupMembership -Identity $Username | where {$_.Name -notlike "Domain Users"} |% {Remove-ADPrincipalGroupMembership -Identity $Username -MemberOf $_ -Confirm:$false}
8585
Write-Host "$Username removed from groups"
8686

87-
#Archive folders onto MJNAS
87+
#Archive folders to FileServer
8888
Move-Item -path "\\FileServer\Users\$Username" -Destination "\\FileServer\EmployeeArchive\$Username" -force
8989
Write-Host "$Username Home Drive archived to \\FileServer\EmployeeArchive\$Username"
9090
Move-Item -path "\\AppServer\Users\$Username" -Destination "\\FileServer\EmployeeArchive\$Username\AppName" -force
@@ -154,4 +154,4 @@ Write-Host "##############################################"
154154
Write-Host " "
155155

156156
Write-Host "Press any key to continue ..."
157-
$x = $host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown")
157+
$x = $host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown")

0 commit comments

Comments
 (0)