Skip to main content

All Questions

1 vote
2 answers
1k views

Get-CimInstance not working when run from Scheduled Task

I have a Powershell script that exports a list of all the services on my local computer using the following command: Get-CimInstance win32_service | Export-Csv $PSScriptRoot\Local\services.csv It ...
mwolfe02's user avatar
  • 455
1 vote
2 answers
1k views

Running a powershell script at startup

I am writing a script to remove a computer from the domain, rename it, then add it back. It works fine when I set the trigger to AtLogOn but when I switch to AtStartUp I run into some issues. I get ...
RandellK02's user avatar