Browse Forum Posts by Tags

Showing related tags and posts for the Forums application. See all tags in the site
  • how to establish and enter an implicit remote session using runspace in powershell

    Hi, I am trying to establish an implicit session with a remote host from my machine from a C# code. I am using runspace API for that. the code snippet is provided below Runspace runspace = RunspaceFactory.CreateRunspace(); runspace.Open(); //constructing the vmname parameter here vmname = useralias ...
    Posted to Ask Don Jones (Forum) by manishjha on 01-18-2012
    Filed under: Test-Connection, Args, Parameter, scripts, PS Remoting, new-pssession, WMI, Remote PowerShell
  • Monitor & Log Mapped drive/Network shares

    We’ve been asked to monitor if a network/mapped drive is available. I did find I can see drive data using the gwmi & filter for the “DriveType” Gwmi Win32_LogicalDisk -filter "DriveType = 4" The output is: DeviceID : T: DriveType : 4 ProviderName : \\%host%\%sharename...
    Posted to PowerShell and WMI (Forum) by justaguy on 06-06-2012
    Filed under: WMI, Test-Connection, Event, WMI Eventing, Remote PowerShell, get-wmiobject
Page 1 of 1 (2 items)
Copyright 2012 PowerShell.com. All rights reserved.