Script to Export User info Including Folders
Posted: Mon Mar 13, 2017 1:48 pm
Hi
I am able to export basic user info using another script example (see below) that I run through the console.
But I need to add additional folder information to each user account as follows:
Home Folder
Other defined folder paths including virtual folders (and the underlying folder they point to).
Permissions of folder.
Can anyone help?
Below is my user account extraction script so far:
do
local strDomain = "MyDomain"
local strUserlist = c_GetUserList(strDomain)
local userlist = Split(strUserlist,"\n")
local strResult = ""
for _,username in pairs(userlist) do
local user = c_GetUser(strDomain,username)
strResult = strResult..strDomain.."\t"..username.."\t"..user.last_logintime.."\t"..user.expiretime.."\n"
end
local fp = assert(io.open("c:/temp/MACE-user-info.txt", "wb"))
fp:write(strResult)
fp:close()
end
I am able to export basic user info using another script example (see below) that I run through the console.
But I need to add additional folder information to each user account as follows:
Home Folder
Other defined folder paths including virtual folders (and the underlying folder they point to).
Permissions of folder.
Can anyone help?
Below is my user account extraction script so far:
do
local strDomain = "MyDomain"
local strUserlist = c_GetUserList(strDomain)
local userlist = Split(strUserlist,"\n")
local strResult = ""
for _,username in pairs(userlist) do
local user = c_GetUser(strDomain,username)
strResult = strResult..strDomain.."\t"..username.."\t"..user.last_logintime.."\t"..user.expiretime.."\n"
end
local fp = assert(io.open("c:/temp/MACE-user-info.txt", "wb"))
fp:write(strResult)
fp:close()
end