请管理员及各位版主大大帮忙看看2个问题,跪求解决方法。
problem 1
I have a VBScript to add users to AD using a .csv file for input. I want to add a Home Drive and Directory to the profile. I have the directory as '\\server\users\%username%" . When I process the script the profile shows the "\\server\users\%username%' as the home directory, but it hasn't been applied to translate the %username% or create the folder. However, if I manually apply the change, it does create the folder correctly.
Is there a way to create the folder when the user is added, or do I need to create the folder and assign permissions as a sparate step in the script?
problem 2
由于通过这样方式建立帐户,%username%这个folder的ntfs权限有users group,如何能通过脚本或者其他什么方法一次性把%username%文件夹里users组remove?
这2个问题小弟再次感激不尽,谢谢