none
Particular file modified date RRS feed

  • Question

  • Hi team,

    i have file :

    c:\windows\system32\ccmsetup under ccmsetup.log. I want to fetch modified date of this file in all the remote computer provided in txt file. and out put shout in CSV  ( System name,modified date)

    Tuesday, October 7, 2014 5:33 AM

Answers

  • Hi Gokulnatharavind

    Do you have admin access on the remote machine?

    help Get-Item -Examples
    
    help Get-Item -Detailed

    Sample Code - Ensure access available for your ID on remote machines

    'Server1' , 'Server2'  | %{Get-Item \\$_\C$\Windows\System32\ccmsetup\ccmsetup.log | Select Name , LastWriteTime}

    Example output of file in local machine


    Regards Chen V [MCTS SharePoint 2010]



    • Edited by Chen VMVP Tuesday, October 7, 2014 8:48 AM
    • Marked as answer by Gokulnatharavind Tuesday, October 7, 2014 10:19 AM
    Tuesday, October 7, 2014 7:54 AM

All replies

  • Hi Gokulnatharavind

    Do you have admin access on the remote machine?

    help Get-Item -Examples
    
    help Get-Item -Detailed

    Sample Code - Ensure access available for your ID on remote machines

    'Server1' , 'Server2'  | %{Get-Item \\$_\C$\Windows\System32\ccmsetup\ccmsetup.log | Select Name , LastWriteTime}

    Example output of file in local machine


    Regards Chen V [MCTS SharePoint 2010]



    • Edited by Chen VMVP Tuesday, October 7, 2014 8:48 AM
    • Marked as answer by Gokulnatharavind Tuesday, October 7, 2014 10:19 AM
    Tuesday, October 7, 2014 7:54 AM
  • Hi Gokulnatharavind

    Do you have admin access on the remote machine?

    help Get-Item -Examples
    
    help Get-Item -Detailed

    Sample Code - Ensure remoting enabled on the remote servers

    'Server1' , 'Server2'  | %{Get-Item \\$_\C$\Windows\System32\ccmsetup\ccmsetup.log | Select Name , LastWriteTime}

    Example output of file in local machine


    Regards Chen V [MCTS SharePoint 2010]

    Tuesday, October 7, 2014 7:54 AM
  • Remoting????


    ¯\_(ツ)_/¯

    Tuesday, October 7, 2014 8:35 AM
  • Remoting????


    ¯\_(ツ)_/¯

    My intension was to ensure access are in place. Sorry I noted it as remoting instead of access on remote mahcines


    Regards Chen V [MCTS SharePoint 2010]

    Tuesday, October 7, 2014 8:52 AM