nil.enroll(aetheric_username, quantum_class_id) (adric) wrote,
nil.enroll(aetheric_username, quantum_class_id)

  • Location:
  • Mood:
  • Music:

Success?! (Yes, more Windows Scripting crap)

PS C:\Users\Administrator> Get-WmiObject -namespace "root/WebAdministration" -query "select * from VirtualDirectory" | Select-Object SiteName,PhysicalPath

SiteName PhysicalPath
-------- ------------
Default Web Site %SystemDrive%\inetpub\wwwroot
Default Web Site C:\Perl\eg\PerlEx
longhorn C:\inetpub\wwwroot

Or, with the DotNet assemblies (libraries) loaded in ...
PS C:\scripts> $sm = ( New-Object Microsoft.Web.Administration.ServerManager )
PS C:\scripts> $sm.Sites | Select Id, Name

 Id Name
 -- ----
  1 Default Web Site
  2 longhorn

Tags: powershell, scripting, windows

  • Last post about TouchBook

    I responded thusly in mail to "why did you return it?": Hi, You pretty much have the whole story. In brief from either of two positions: As a…

  • TouchBook unboxing and first impressions

    Google has all the photos I shot here. A box, hooray! Inside the box is a smartbook, a stack of three magnets, a stylus, and a power…

  • TouchBook Community site?

    Hi, Sorry to bug you again, but as the device starts to ship out and I get , er, hungrier for mine *g* I was wondering where the/a community site…

  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded