Create Account

Username
Password
Remember me
Email
 
0

Windows PowerShell 1.0

2 comments, 1226 views, posted 8:54 pm 14/11/2006 in Software by Da1King
Da1King has 1260 posts, 585 threads, 0 points
God

Microsoft Windows PowerShell command line shell and scripting language helps IT Professionals achieve greater productivity. Using a new admin-focused scripting language, more than 130 standard command line tools, and consistent syntax and utilities, Windows PowerShell allows IT Professionals to more easily control system administration and accelerate automation. Windows PowerShell is easy to adopt, learn, and use, because it works with your existing IT infrastructure and existing script investments, and because it runs on Windows XP, Windows Vista, Windows Server 2003 and Windows Server “Longhorn”. Exchange Server 2007, System Center Operations Manager 2007, System Center Data Protection Manager V2, and System Center Virtual Machine Manager leverage Windows PowerShell to improve efficiency and productivity.

Windows PowerShell Home-page: Here

English Windows XP Download: Here

Comments

0
1:05 am 15/11/2006

Toymakerii

soo umm, is this like crap windows perl? or crap windows apple script. ok sorry I'm a mac guy and couldnt resist laughing when reading this.

0
3:27 am 15/11/2006

griffin

Ha ha! I'd rather use cygwin...!

Example to backup and clear an event log...

strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate,(Backup)}!\\" & _
strComputer & "\root\cimv2")

Set colLogFiles = objWMIService.ExecQuery _
("Select * from Win32_NTEventLogFile where LogFileName='Application'")

For Each objLogfile in colLogFiles
errBackupLog = objLogFile.BackupEventLog("c:\scripts\application.evt")
If errBackupLog <> 0 Then
Wscript.Echo "The Application event log could not be backed up."
Else
objLogFile.ClearEventLog()
End If
Next

Add Comment

via teoti, or register to add a comment!