PST search on remote computers
Hi,
I am seeking for a pst search in VB or dos to locate any pst on all drives on remote computers that will record pst file + size, inc username or computer name and log all this information to a central csv or txt file on a network.....please help.
To get the most mutable results, you can use this PowerShell script. You will need to provide a list of computers in a text file with each computer on a separate line.
Get-Content computers.txt |
%{Get-ChildItem "\\$_\c$" -Include *.pst -Recurse} |
Select Name,Directory,Length,LastAccessTime,LastWriteTime,CreationTime |
Export-Csv C:\results\PSTfiles.csv -NoTypeInformation
This assumes that you are only searching the C: drives of the computers. As noted, this script will take a long time to run based on the number of computers that you are running it against.
Rich Prescott | Infrastructure Architect, Windows Engineer and PowerShell blogger | MCITP, MCTS, MCP
Engineering Efficiency
@Rich_Prescott
Windows System Administration tool 2.0
AD User Creation tool
Similar Messages
-
Hi I am looking for a way to have trace32 open multiple files on remote computers
Simply put I am looking for someone who could afford to give me a basic script (vbs) that I could run from an elevated command prompt. It would need to be available for me to type in the name of a remote computer or (mulitple if possible) and also
allow me to choose log files to open or multiple files and then open them using trace 32. Hopefully it would detect the available log files and show me what is available to choose to open... anyone know of such a thing or know how to go about setting up something
like this for people to use?
EDIT
I was able to create a basic script to do what I wanted but I want to be able to add wildcards for the rollover logs... Can someone suggest the easiest way to do that as I am not sure how to add the wildcards directly before the .log
here is the script.
' ******Created by Luis Delgado*********
'This script will get a remote computers .log files depending on which documents you enter in the "files to open on remote computer using trace32" section
'Get and open log files on remote Computer
on error resume next
Set WshShell = Wscript.CreateObject("Wscript.Shell")
strcomputer = inputbox("Enter remote computer name or leave as localhost for this computer","Get log files from a remote computer with Trace32","Localhost")
If strComputer = "" Then
WScript.Quit
End If
'Opens trace32
wshShell.run "C:\Program Files\ConfigMgr 2007 Toolkit\CCM Tools\Trace32.exe"
'Files to open on remote computer using trace32
wshShell.Run "\\" & strcomputer & "\c$\Windows\System32\CCM\Logs\datatransferservice.log"
wshShell.Run "\\" & strcomputer & "\c$\Windows\System32\CCM\Logs\ccmexec.log"
wshShell.Run "\\" & strcomputer & "\c$\Windows\System32\CCM\Logs\locationservices.log"
!!!!NOTE!!!
What I need is for any file that starts with datatransferservices, ccmexec, or locationservices to open in trace32
my thought would be place a wild card in its respective spots but it does not work see below
wshShell.Run "\\" & strcomputer & "\c$\Windows\System32\CCM\Logs\datatransferservice*.log"
wshShell.Run "\\" & strcomputer & "\c$\Windows\System32\CCM\Logs\ccmexec*.log"
wshShell.Run "\\" & strcomputer & "\c$\Windows\System32\CCM\Logs\locationservices*.log"The roll over logs all have the same name exact the extension is .lo_ , So.. I'm not sure what you are looking for.
Garth Jones | My blogs: Enhansoft and
Old Blog site | Twitter:
@GarthMJ -
ARD report to find admin users on remote computers
It there a way to tell which users have administrator rights on the remote computers? I cannot find anything in the built in reports. I have found a way to do it via terminal by finding who is in the admin group, but was wondering if there is a report built into ARD that will do this.
Thanks!Here is Sherry's post:
http://mnscug.org/blogs/sherry-kissinger/244-all-members-of-all-local-groups-inventory-for-configmgr-2012
I hope that helps,
Nash
Nash Pherson, Senior Systems Consultant
Now Micro -
My Blog Posts
If you've found a bug or want the product worked differently,
share your feedback.
<-- If this post was helpful, please click "Vote as Helpful". -
Migration Assistant: Searching for other computers...
I got a new iMac 24" running Mac OS 10.5.6 (No new software updates available)
I want to transfer all my data from my old iMac, i.e.
iMac 17" running Mac OS 10.4.11 (No new software updates available).
The firewalls on both computers are disabled and they are on the same network.
I followed the instructions:
1. Opened Migration Assistant on the new machine
2. Chose 'From another Mac' - Use Network - it gave me a passcode and "Looking for other computers..."
3. I opened MA on the old machine
4. Chose 'To another Mac'
5. It found the new machine and asked for the passcode which I entered.
6. It said that all application will quit if I press continue, which I did.
7. It gave a 'Preparing information' message, BUT then again said that it found my new machine and asked for the passcode again - I entered it again.
8. It then gives me a 'Searching for other computers...' message...
And that is where stays... and stays...
please...So you are migrating from Intel to Intel.
On the 17" iMac... how much free space is there on the drive? Not enough disk space and that could be what's holding that up. Not certain, just could be.
Right or control click the MacintoshHD icon on your Desktop, then click: Get Info. In the Get Info window, click the discovery triangle so it's facing down. You will see; Capacity and Available Make sure you have 10% available disk space, 15% is better. Not enough available drive space can cause issues like you are experiencing.
In my opinion, the Migration Assistant can be more trouble than it's worth. I use Firewire Target Disk Mode between Macs to transfer files. It's so much easier.
http://support.apple.com/kb/HT1661
Carolyn -
Issue Binding remote computers
OK, have Advanced Leopard Server running, DNS and Open Directory setup. Can Bind local computers. Tried binding remote computers and does not see/find server in Directory Utility... yet I can sign in and mount NFS shares. Does a specific port need to be open in firewall to do the binding? - Lewis
Binding is largely for login. Yes some management settings, like printers, can be passed through this way.
To print from home you should be using a VPN. The Internet is not a safe place these days. VPN creates a virtual tunnel between home and the office and you can imagine a virtual Ethernet cable passing through that tunnel.
I think a combination of Mobile accounts and VPN may be the deal for you. You might not even need mobile accounts if your users have their own Mac and are already using a local account.
VPNs are meant to be the only entry point on to your network. So once you have a VPN setup then your Internet connection should only allow VPN traffic in and nothing else, e.g. LDAP.
Ok, two basic choices for VPNs... either your router is fancy enough to have its own VPN feature or you can setup your Leopard Server to be your VPN server. The router would then need to be configured to route incoming VPN requests to your Mac server. All other types of traffic pass through the VPN.
This isn't the place for detailing exact steps for this. It would get long and complicated and there are specific info needed about your actual setup. I have to refer you to the manuals in the first instance:
http://images.apple.com/server/macosx/docs/NetworkServices_Admin_v10.5_2ndEd.pdf
http://images.apple.com/server/macosx/docs/UserManagementv10.5.mnl.pdf
Other recommended reading:
Mac OS X Support Essentials v10.5 ISBN-13: 978-0321489814
Mac OS X Server Essentials v10.5 ISBN-13: 978-0321496607
Leader-led training:
http://training.apple.com/itpro/leopard101
http://training.apple.com/itpro/leopard201
Trust me... you will feel so enlightened. -
Hello,
I am working on a website where I need to read a few performance counters on remote computers.
I'm using the System.Diagnostics namespace and the following is a snipet of my code:
**************** CODE *********************************************************
Try
With perf_process
.MachineName = Hostname
.CategoryName = "Process"
.CounterName = "Private Bytes"
'Write entry to log here
tmp_working_set = perf_process.NextValue()
txtWorkingSet.Text = tmp_working_set
Select Case tmp_working_set
Case Is > 80000000
working_set_status = "Red"
Case 40000000 To 80000000
working_set_status = "Green"
Case 1000000 To 40000000
working_set_status = "Yellow"
Case Else
working_set_status = "Error"
End Select
If working_set_status = "Error" Then
txtWorkingSet.BackColor = Drawing.Color.Red
txtWorkingSet.Text = String.Format(CultureInfo.InvariantCulture, "{0:0,0.0}", working_set_status)
Else
txtWorkingSet.Text = String.Format(CultureInfo.InvariantCulture, "{0:0,0.0}", tmp_working_set)
txtWorkingSet.Text = tmp_working_set
End If
End With
Catch
ErrMsg = ("Error reading the Working Set (memory) counter on " & Hostname & "." & vbCrLf & "Error number is " & Err.Number & vbCrLf & "Error description:
" & Err.Description)
MsgBox(ErrMsg)
Write_Log_Entry(Now(), ErrMsg)
ErrMsg = ""
End Try
**************** CODE *********************************************************
I usually end up with an "Access Denied" error because the account I'm running under does not have the proper permissions on the remote computer to read the counters.
How can I pass and connect to the remote computer with a different set of credentials that have access to the counters?
Exactly what permissions do I need to access the remote counters? I can read them on some of my test computers and on others, I get the "Access Denied" error.
Thanks in Advance,
DetRich
DetRichhttp://forums.asp.net/
The ASP.NET forum is probably where you need to post. -
How can get value of registry DWORD value of remote computers with powershell
HI
I am using below script to get registry of remote computers with powershell but not desired result.
$computers = Import-Csv 'C:\New folder\dclist.csv'
$key = "SOFTWARE\Microsoft\Active Setup\Installed Components\{A509B1A7-37EF-4b3f-8CFC-4F3A74704073}"
foreach ($computer in $computers)
Get-RegDword -ComputerName $computer -Key $key -Value IsInstalled
As I have installed remoteregistry pssnapin a well..
Also How can i get this from Invoke-Command ............
Please help or guide meThis script may help (I haven't used it personally, but I know that many people have used it and thanked Jason for coming up with it):
http://gallery.technet.microsoft.com/scriptcenter/Enable-PSRemoting-Remotely-6cedfcb0
You can also configure remoting across your entire domain via GP:
http://www.briantist.com/how-to/powershell-remoting-group-policy/
http://blog.powershell.no/2010/03/04/enable-and-configure-windows-powershell-remoting-using-group-policy/
Don't retire TechNet! -
(Don't give up yet - 12,830+ strong and growing) -
Run Powershell in remote computers
Hi All,
I want to run Powershell function in a remote computers in AD
Here are the steps that i take but i got some errors
* I Import the ADComputer from Active directory
Get-ADComputer -Filter * -Property * | Select-Object Name,OperatingSystem,OperatingSystemServicePack,OperatingSystemVersion | Export-CSV C:\Users\Administrator\Documents\AllWindows.csv -NoTypeInformation -Encoding UTF8
*Then I create a script to run the function I got from net
$FilePath = "C:\Users\Administrator\Documents\AllWindows.csv"$ComputerName = Import-Csv -Path $FilePath -Delimiter ","foreach($CompName in $ComputerName){Invoke-Command -ComputerName $PSItem.Name -ScriptBlock ${function:Get-WindowsKey}}
But when i run above gives the following error
Invoke-Command : Cannot validate argument on parameter 'ComputerName'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again.
At C:\Users\Administrator\Desktop\GetWinKey.ps1:9 char:30
+ Invoke-Command -ComputerName $PSItem.Name -ScriptBlock ${function:Get-WindowsKey ...
+ ~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (:) [Invoke-Command], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.InvokeCommandCommand
Following is the function i run to get windows keys
function Get-WindowsKey { ## function to retrieve the Windows Product Key from any PC param ($targets = ".") $hklm = 2147483650 $regPath = "Software\Microsoft\Windows NT\CurrentVersion" $regValue = "DigitalProductId" Foreach ($target in $targets) { $productKey = $null $win32os = $null $wmi = [WMIClass]"\\$target\root\default:stdRegProv" $data = $wmi.GetBinaryValue($hklm,$regPath,$regValue) $binArray = ($data.uValue)[52..66] $charsArray = "B","C","D","F","G","H","J","K","M","P","Q","R","T","V","W","X","Y","2","3","4","6","7","8","9" ## decrypt base24 encoded binary data For ($i = 24; $i -ge 0; $i--) { $k = 0 For ($j = 14; $j -ge 0; $j--) { $k = $k * 256 -bxor $binArray[$j] $binArray[$j] = [math]::truncate($k / 24) $k = $k % 24 } $productKey = $charsArray[$k] + $productKey If (($i % 5 -eq 0) -and ($i -ne 0)) { $productKey = "-" + $productKey } } $win32os = Get-WmiObject Win32_OperatingSystem -computer $target $obj = New-Object Object $obj | Add-Member Noteproperty Computer -value $target $obj | Add-Member Noteproperty Caption -value $win32os.Caption $obj | Add-Member Noteproperty CSDVersion -value $win32os.CSDVersion $obj | Add-Member Noteproperty OSArch -value $win32os.OSArchitecture $obj | Add-Member Noteproperty BuildNumber -value $win32os.BuildNumber $obj | Add-Member Noteproperty RegisteredTo -value $win32os.RegisteredUser $obj | Add-Member Noteproperty ProductID -value $win32os.SerialNumber $obj | Add-Member Noteproperty ProductKey -value $productkey $obj }}
What i want is to run the Get-WindowsKey function in all AD computers
ThanksThe error tells you what is wrong, try changing this -
Invoke-Command -ComputerName $PSItem.Name to thisInvoke-Command -Computername $Compname.Name
You need to use the variable you declare in the foreach loop. -
Start and stop windows service for multiple remote computers
Hello,
Can someone show me how to Start and Stop windows service for multiple remote computers using Command Prompt or PowerShell or even Java?
Thank youYou asked a pure Windows related question at a pure Java related forum. We have advised you to look for a Windows related forum to post the question. Nothing special. It's like asking a car mechanican to help you with your migraine, he would advise you to look for a general practitioner.
But why are you so surprised and negative about this answer after all? Don't we have to help you? Don't you appreciate help? So be it then, but please stay away then if you keep this attitude. -
Search for [Remote Key] and [Remote System] in Data Manager
Hello all
I would like to be able to search on the remote key and the remote system in the MDM Data Manager is that not possible? I thought I remembered seeing that possibility under the Free-Form Search but now I can't find it.
I have, however, found this in the Data Manager reference guide:
REMOTE SYSTEM AND REMOTE KEY FIELDS
MDM uses the remote systems defined in the Remote Systems table
within the MDM Console to store and maintain key mapping information
for each record or text attribute. It does this using a virtual key
mapping field that you never see in the MDM Client.
This virtual key mapping field is very much like a qualified lookup field
into a virtual key mapping qualified lookup table.
Key Mapping information stored in virtual lookup field
The Remote System and Remote Key fields are normally not visible;
however, they do appear in several places in the MDM Client.
Specifically, both fields: (1) appear in the File > Export dialogs in Record
mode for exporting value pairs; (2) are recognized by the File > Import
dialog in Record mode for importing value pairs; and (3) appear in the
Edit Key Mappings dialogs in both Record mode and Taxonomy mode,
for viewing and editing value pairs.
Is there any way to search on the value in the remote key from the Data Manager?Not sure search i think not possible.
But you can see keys as mentioned:
Enable Key mapping in Console.
MDM Client maens MDM Data Manager.
They do appear in several places in the MDM Client or Data Manager. Three different methods to see in DM are given already below:
Specifically, both fields: (1) appear in the File > Export dialogs in Record mode for exporting value pairs; (2) are recognized by the File > Import dialog in Record mode for importing value pairs; and (3) appear in the Edit Key Mappings dialogs in both Record mode and Taxonomy mode, for viewing and editing value pairs.
BR,
Alok -
Syndication Search Using Remote System
Is there a way to use the Key Mapping's remote system as part of the search criteria for syndication?
I am not referring to the map property that allows you to suppress records that do not have a remote key.
For example, only send records when "remote system = DEV_100".
Thanks,
KeithHi,
When you create a map you have already defined the remote system for which is getting created and you have mapped key and name of that in the syndicator mapping.Suppose you craeted a map fro remote system DEV04
Now when you only want to syndicate the records for this remote system then you should define only this as a output remote systems and then if you have supressed records without key,then only records pertaining to the DEV04 system which have key will get syndicated and not others
Thanks
Vinay -
Labview developer-search for remote work
I have 3 year experience as Labview developer. I have good skils in controling devices using different interfaces and automated tests.
I'm searching for some small projects which can be resolved using remote work. If necessary I can travel several time (in Europe).
Also I can aproach any specific project if initial data & rquirement are very clear defined and is no time presure.
If interresed e-mail to [email protected] .
Thank you!Hi there,
Sorry but I have already taken on a new contract. If you send me your email address I can pass your request to some people who could help you.
Best regards
Neil
nrp
CLA -
Losing hypertrend data on remote computers in Lookout 6.1
I know this issue has occurred in the past, but because we ares still losing trends too often, I am at the point where I am going to have to create expressions on my client process file for every data member I want to have on a hypertrend so that I can have each client machine get its trend data from a local database rather than pulling the data from the database on the server. Before beginning this tedious task, I wanted to get some input on why this might be happening.
When we lose trends I have to restart the server in order for the trends to come back. At first I thought is was caused by nicitdl5.exe crashing but I went into the settings for this service and set it to restart everytime it crashes. This did not fix the problem.
My client process file contains approximately 250-300 hypertrends with 24hr. time periods trending both numeric and logical data members (water levels and pump run statuses). Could the number of trends I have in my process file could be causing the issue (too many)?
Also, when I lose trends I have opened NIMax to try and create a trace for one of the members being trended and I cannot view the trace either - (no data) is displayed in the trace description.
And, another strange thing that occurs is immediately after closing my server process file, the trends appear on the client machine before I restart the server process file.
Some things I have done to try and correct the problem are:
1.) reduced the resolution for the numerics from .001 to 0.01.
2.) the resolution for the logicals from .001 (default) to 0.1.
3.) reduced the lifespan from perpetual to 15 days (did that today).
My server machine is a Dell PWS690 with 3.25 GB of RAM running Windows XP Pro, Service Pack 2, and the lookout version I am running is 6.1 (build 3)
Due to the size and location of our client computers, they have to go through 2-3 subnets to get to our server where the database resides.
Could this be a network issue where Lookout for whatever reason is disallowing access to the database after a period of time or because of a networking "hiccup"?
Plus, would using a local database to to display the info on these trends be a viable option in your opinion?
Please note: I AM NOT losing communication with my server as far as information coming from my plcs and being transmitted to the clients from the server.
Thanks for any quick response.
Jason PhillipsMaybe Ryan and crew can clear this up....
All that is needed for the discreet object connection form a remote client to the server is an IP address of the server and firewall ports on the server to be properly opened. There are references online for the Firewall settings.
Hypertrend connections are a different animal and I would like NI to step in and explain this if possible:
What I have observed is that the traces must be using a commonly blocked (by ISP's) port. I have to use a VPN to get the traces to work from an internet client. I also must either be logged on to the domain of the server machine or map a local network drive to the server Citadel (Database) directory. The map only needs read permissions.
I haven't been able to find any documentation online explaining the differences between live oject data (Logos?) and trace data connections (also Logos?...but different somhow?) over the Internet with Lookout and/or DSC and I would like to understand this better myself.
Ed
Message Edited by erblock on 04-01-2008 09:29 AM -
Question on how to detect remotely, computers having issues processing GPO's
We are troubleshooting multiple Win7 computer issues with SCCM 2007 SP2 R3 SUP patching--the patches fail for some reason.
In checking multiple computers, runngin GPResults shows numerous 1085 and 1096 errors, with the 1096 error indicating that the registry.pol file cannot access (the data is invalid). After experimentation, it seems that deleting the file and rebooting
is fixing the computers, and SUP patching begins to work fine.
While we discussed simply creating an SCCM package to delete the file and reboot the computers, for all computers that are not patching--we are looking for a way to detect this issue, via SCCM HW or SW or DCM inventory methods, so we can correctly target.
Two questions:
1. Anyone have a method we can used to detect this problem remotely?
2. Any harm in just deleting this file, if we have a problem computer, in the hopes that will fix the issue?
Thanks!The customized group policy settings are stored into registry.pol. What i can assume is the corruption of the registry.pol file & there can be numerous reason for this such as viruses, disk corruption etc. To troubleshoot issues with the GPO at the advanced
level, you can make use of uderenv debug logging.
UserEnv Debugging Line by Line
http://blogs.msdn.com/b/richpec/archive/2009/07/20/userenv-debugging-line-by-line.aspx
What is logged to the Userenv.log file?
http://blogs.technet.com/b/instan/archive/2008/09/17/what-is-logged-to-the-userenv-log-file.aspx
Awinish Vishwakarma - MVP
My Blog: awinish.wordpress.com
Disclaimer This posting is provided AS-IS with no warranties/guarantees and confers no rights. -
Itunes 8 permanently searches for remote airport speakers
Hi All
I recently re-built my computer (format hard drive the re-install window XP etc.)
I installed iTunes and it worked ok.
I installed airport express but it didnt work well until i download the newer admin utility the appreared ok. When i tried to use the "Multiple Speakers" option all came unstuck
Itunes now loads and shows the library but is permanently searching for the remote speakers.
I have unistalled everything apple including the updates bonjour, quicktime and itunes, check the program files directory to make sure everthing is gone etc.
It still exibit the same fault of searching for the remote speakers. hing can be done to break the sycle short of using task manager to kill itunes.
I have repeated the process of uninstall many times. even intalling before install air express but it still seems to know about the remote speakers.
tried searching the registry but cvould find anything sensible
all ideas would be appreciated
GraemeRe-posted in "iTunes for Mac" ... more accurate section.
Maybe you are looking for
-
Run Reporting services 2005 with databases housed on SQL Server 2012?
Hi, I have a RS 2005 install in which the ReportServer and ReportServerTempDB databases reside on a different SQL Server 2005 server. I am planning to upgrade DB server to 2012 and would like to keep SSRS as 2005.As a second phase I will upgrade SSRS
-
My story so far, TROUBLES
Hi! I know there are a lot of complaints about the MBP in this forum, and unfurtunatly this will add to it somewhat, but most of all i am disapointed with the service of Apple's Techincal Support. So i have a MBP 1.83 gHZ week 12. It has always been
-
Messages are in schedule state in adapter engine
Hi PI Gurus, In Production system, I have a proxy to JDBC scenario (Using AAE). From ECC messages are flowing successfully, but when I check the WRB I found no message. When I checked the Message Monitoring I found, those messages were in schedule st
-
How do i get a refund for a song a downloaded twice
i accidentally bought a song "soundtrack 2 my life" which i already own... is there any way to get the song taken off and refunded?
-
Transferred data from ipad3 to new mini
Got Mini for Christmas. Transferred data from iPad3 to new Mini. Want to move data from iPad1 to iPad 3, but iPad3 is "disabled" & won't recognize old passcode. Tried to restore, but still can't get past old passcode login screen.