Hello,
I cannot seem to get the below section to work. I would like for the script to copy a file based on the users group membership within AD. Can someone please tell me where I am going wrong?
Thank you,
Daniel
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Script section below
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
For Each GroupObj In UserObj.Groups
Select Case UCase(GroupObj.Name)
Case "URLshortcut"
set objFSO = CreateObject("Scripting.FileSystemObject")
strSource = "\\testserv\UserSetup\XXXXXXXXX.url"
strDestination = "C:\Documents and settings\" & UserString & "\Desktop"
objFSO.CopyFile strSource, strDestination, true
I cannot seem to get the below section to work. I would like for the script to copy a file based on the users group membership within AD. Can someone please tell me where I am going wrong?
Thank you,
Daniel
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Script section below
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
For Each GroupObj In UserObj.Groups
Select Case UCase(GroupObj.Name)
Case "URLshortcut"
set objFSO = CreateObject("Scripting.FileSystemObject")
strSource = "\\testserv\UserSetup\XXXXXXXXX.url"
strDestination = "C:\Documents and settings\" & UserString & "\Desktop"
objFSO.CopyFile strSource, strDestination, true