Lansweeper logo
Home Download Features Demo Buy now Help Support forum
 
    Most requested support articles:
  Lansweeper troubleshooting guide.
  The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)
  WMI Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
  How to configure the windows firewall using group policies.
  Support:  
 support@lansweeper.com  
Skype: Lansweeper  
  Mo-Fri 9h-17h CET  
Welcome Guest Search | Active Topics | Log In | Register

Untag as favorite
SOLVED: report for offline files enabled Win7 and XP
ChrisS
#1 Posted : Friday, January 06, 2012 11:57:28 AM

Rank: Premium user

Groups: Member, Premium Users
Posts: 13
Location: Newcastle, UK
Hi all,

I need a report that tells me which computers have offline files enabled for a large scale migration we are doing.

The location, at least for Windows 7 in WMI is:
Win32_OfflineFilesCache

Code:
on my PC (which has offline files enabled) it reports:
Active    Enabled        Location
True    True        C:\Windows\CSC


How can i query for this info in Lansweeper, and is the wmi class valid for xp also?

Many thanks for any help.

CS
Lansweeper
#2 Posted : Monday, January 09, 2012 4:46:20 PM

Rank: Administration

Groups: Administration, Premium Users
Posts: 10,378
The Win32_OfflineFilesCache WMI class is not scanned by Lansweeper.
ChrisS
#3 Posted : Tuesday, January 10, 2012 10:24:13 AM

Rank: Premium user

Groups: Member, Premium Users
Posts: 13
Location: Newcastle, UK
I understand that it isn't scanned by Lansweeper, but because this is a help forum, is there a way to get this information?

Thanks
Lansweeper
#4 Posted : Tuesday, January 10, 2012 11:01:04 AM

Rank: Administration

Groups: Administration, Premium Users
Posts: 10,378
In Windows 7 there is a service called "Offline Files". If it is started, offline files is enabled. Use the report below to find Windows 7 machines with offline files enabled.

Quote:
Select tblComputers.Computername, tblComputers.ComputerUnique,
tblComputers.Domain, tblServices.Caption, tblServices.Name,
tblServices.Pathname, tblServices.Started, tblServices.State
From tblComputers Inner Join
tblServices On tblComputers.Computername = tblServices.Computername
Where tblServices.Name = 'CscService' And tblServices.State = 'running'


For other operating systems you will have to scan registry keys. This article may provide some help.
ChrisS
#5 Posted : Tuesday, January 10, 2012 11:32:59 AM

Rank: Premium user

Groups: Member, Premium Users
Posts: 13
Location: Newcastle, UK
THANKYOU

That report is exactly what I'm after. Very helpful :-)

my next question, is there a similar path/service for Windows XP?

Code:
EDIT: I have read there is no such service for XP, but any other help is appreciated


Thanks again

ChrisS
Lansweeper
#6 Posted : Tuesday, January 10, 2012 12:49:43 PM

Rank: Administration

Groups: Administration, Premium Users
Posts: 10,378
Please have a look at the article linked in our previous post. You may be able to determine your other computers' offline files status through the registry keys mentioned there.
ChrisS
#7 Posted : Wednesday, January 11, 2012 11:04:44 AM

Rank: Premium user

Groups: Member, Premium Users
Posts: 13
Location: Newcastle, UK
Hi All,

I have worked this out and it seems to work well for me.
I have edited the report LanSweeper gave above for windows 7

Windows 7
Code:
Select Top 1000000 tblComputers.Computername, tblComputers.ComputerUnique,
  tblComputers.Domain, tblComputers.LastknownIP, web40AllIPLocations.IPLocation,
  tblServices.Name As Service, tblServices.Started, tblServices.State
From tblComputers Inner Join
  tblServices On tblComputers.Computername = tblServices.Computername Inner Join
  web40AllIPLocations On tblComputers.Computername =
    web40AllIPLocations.Computername
Where tblServices.Name = 'CscService' And tblServices.State = 'running'
Order By tblComputers.Domain, web40AllIPLocations.IPLocation,
  tblComputers.LastknownIP



For Windows XP

1. You need to add a registry scanning Key 1st
HKEY_LOCAL_MACHINE
SYSTEM\CurrentControlSet\Services\MRxSmb\Parameters
CSCEnabled

2. Then scan your Computers

3. Add the following report:

Code:
Select Top 1000000 tblComputers.Computername, tblComputers.ComputerUnique, tblComputers.Domain, tblComputers.LastknownIP, web40AllIPLocations.IPLocation, tblRegistry.Valuename As [Key], tblRegistry.Value As Enabled
From tblComputers Inner Join web40AllIPLocations OntblComputers.Computername = web40AllIPLocations.Computername Inner Join tblRegistry On tblComputers.Computername = tblRegistry.Computername
Where tblRegistry.Valuename = 'CSCEnabled' Order BytblComputers.Domain, web40AllIPLocations.IPLocation, tblComputers.LastknownIP


This is a good report for when you need to do migrations as it is important to take into account if a user is using offline files!

thanks

ChrisS
Users browsing this topic
Guest
Untag as favorite
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Contact: E-mail Lansweeper - Skype : Lansweeper
Copyright 2004 - 2011 © Hemoco bvba