?

Log in

No account? Create an account
entries friends calendar profile adric.net Previous Previous Next Next
Success?! (Yes, more Windows Scripting crap) - nil.enroll(aetheric_username, quantum_class_id)
yljatlhQo'! QIch lo'laltbebej!
adric
adric
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: , ,
Current Location: NOC
Current Mood: *blinkity*
Current Music: *klikity-klakity*

2 comments or Leave a comment
Comments
From: lafemmedesfemme Date: October 6th, 2007 02:33 am (UTC) (Link)
it's you! your html is thwacking my friendspage! stop that!
adric From: adric Date: October 6th, 2007 04:31 pm (UTC) (Link)
Oopsie!, Let me see if I can fix that then.
2 comments or Leave a comment