Give more detail of what is happening when running with SYSTEM privs

git-svn-id: file:///home/svn/framework3/trunk@9775 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Carlos Perez 2010-07-11 01:32:13 +00:00
parent 1add80fe24
commit 5787ef30c0
1 changed files with 3 additions and 1 deletions

View File

@ -25,7 +25,7 @@ def enum_users
path4users = ""
sysdrv = @client.fs.file.expand_path("%SystemDrive%")
if os =~ /7|Vista|2008/
if os =~ /Windows 7|Vista|2008/
path4users = sysdrv + "\\Users\\"
profilepath = "\\Documents\\WindowsPowerShell\\"
else
@ -91,7 +91,9 @@ def enum_powershell
end
end
tmpout = []
print_status("Checking if users have Powershell profiles")
enum_users.each do |u|
print_status("Checking #{u['username']}")
begin
@client.fs.dir.foreach(u["userappdata"]) do |p|
next if p =~ /^(\.|\.\.)$/