Browse Forum Posts by Tags

Showing related tags and posts for the Forums application. See all tags in the site
  • Help needed in Reading Windows logs

    Hello everyone, I am new to PS and managed to write the following script to get the logs for the last 1 hour. [datetime]$to = Get-Date $from = $to.addhours(-1) Get-EventLog -LogName Application -ComputerName mycomputer -After $from -Before $to | Select-Object timegenerated,Machinename, EntryType,source...
    Posted to PowerShell for Windows (Forum) by Akhil on 12-06-2010
    Filed under: windows
  • Reading Performance counters

    Hey Guys, I have a sample function below that outputs a few values to the pipeline. function Get-WMIInfo { param($serverName) gwmi -ComputerName $serverName -Class Win32_OperatingSystem | Select CSName, Version, ServicePackMajorVersion, SerialNumber, InstallDate } Could someone please help in implementing...
    Posted to PowerShell for Windows (Forum) by Akhil on 12-17-2010
    Filed under: windows
  • VERB name to Sync Offline files folder in Windows 7

    We have code that invokes the "Sync" VERB for a folder that has been made available Offline via Offline Files. We basically achieve this by using Shell32 to programmatically invoke the Sync option available in the right click menu of a folder (context menu). The code is simple and works in...
    Posted to PowerShell for Windows (Forum) by jcTW on 01-11-2011
    Filed under: powershell, powershell Windows-programming, windows, COM
  • Re: Make files available offline with PowerShell

    Any idea how to invoke verbs that are in a sub menus like the Sync for Offline Files in Windows 7 ("Sync > Sync selected offline files")? This option is available once the folder/file has been made Available Offline. For more details about my question see this thread http://powershell.com...
    Posted to PowerShell for Windows (Forum) by jcTW on 01-11-2011
    Filed under: powershell, powershell Windows-programming, windows, COM
  • Confirm website login

    Hi I want to monitor an intranet site and wrote a loginscript. However I need the script to do something and return a value to confirm that the site loaded. The script so far: $username ="xxxx"; $password="yyyy"; $url="http://intranet.company.com"; $ie= new-object -com internetexplorer...
    Posted to PowerShell for Windows (Forum) by Ironbone on 02-10-2011
    Filed under: powershell, windows, COM
  • XML, Powershell and Arrays

    Hello I have an Infopath Doc that is stored as XML on our SP farm, I am trying to access certain information in the infopath form to assign as a variable for use in creating folder structures and websites. That is not too hard when dealing with clearly named elements in the xml doc, however on large...
    Posted to PowerShell for Windows (Forum) by Robert Burke on 02-20-2011
    Filed under: powershell, powershell Windows-programming, Variable, windows, powershell remoting, XML, array
  • Re: XML, Powershell and Arrays

    Hi Tobias, Thank you for the quick response, and I am sorry for not giving enough information. Here is the complete XML doc, you will notice there are 2 sections called Proxy Layer, each layer is associated with a different URL. I am new to PS and I have never dealt with XML but this is alot of fun Thank...
    Posted to PowerShell for Windows (Forum) by Robert Burke on 02-21-2011
    Filed under: Variable, windows, XML, array
  • powershell script run successful in windows 2003 but fail in windows 2008

    It's ok in Windows Server 2003 that running such below script, get-wmiobject -namespace "root\MicrosoftIISv2" -query "SELECT * FROM IIsIPSecuritySetting where Name = 'W3SVC/1/ROOT/test'" However, it will fail in windows 2008 that running such below script. get-wmiobject...
    Posted to PowerShell for Windows (Forum) by wotar on 03-31-2011
    Filed under: powershell, windows
  • Display a list of all the classes on the local system.....

    I want to display a list of all the objects in in powershell. I used the get-wmiobject -class win32_volume, and printer. Using these I got output but I want to see a list of all the classes and their subtrees if possible. I also used get-wmiobject -list but I don't know if this is what I'm looking...
    Posted to PowerShell for Windows (Forum) by jwhite on 04-15-2011
    Filed under: powershell, XP GET-WMIOBJECT, windows, COM, windows system32 grouppolicy machine scripts startup windows 7 powershell
  • Folder and Disk Space utilization report

    I have a portion of a script that creates an excel spreadsheet and populates the drives for remote servers, their size as well as used and percentage. (Found it here I believe) What I need to add to this spreadsheet are all of the directories that are listed under the drives by using the get-content...
    Posted to PowerShell for Windows (Forum) by squeekie on 04-20-2011
    Filed under: powershell, wmi, get-wmiobject Win32_Product MSI Windows Installer, windows, powershell remoting, output, loop, file
Page 1 of 3 (27 items) 1 2 3 Next >
Copyright 2012 PowerShell.com. All rights reserved.