Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources: Active Threads
Viewing all articles
Browse latest Browse all 8411

Write Output to File and Schedule Script

$
0
0

Hello,

I am brand new to PowerShell and need some help.  I was able to execute the following script to export a list of all roles and features on my Windows Server 2008 R2 server:

 

Import-Module ServerManager

Get-WindowsFeature

 

First, how would I export the output of this script to a text file?

Second, how would I run this script from Windows Task Scheduler?  Is there something similar to .bat files?

Thanks,


Viewing all articles
Browse latest Browse all 8411

Latest Images

Trending Articles



Latest Images