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

  • 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
</pre>


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

ala: http://blogs.iis.net/tobintitus/archive/2006/11/30/powershell-and-microsoft-web-administration.aspx
Tags: powershell, scripting, windows
Subscribe

  • 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

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 2 comments