Tag Info

Hot answers tagged

7

It's not ideal, but you could have a separate task that just writes the username to a log file at the same time, and correlate the logs later. For that matter, since the task runs at login, this information is already available in the event logs. If you're really desparate to not correlate these later, you could add code (or a step) to the existing task to ...


3

No, you can't do this. Many of the PowerShell modules rely on OS-specific WMI namespaces. As these are not present in Windows 7, the modules cannot be imported. Powershell MVP Richard Siddaway details this in his blog.


1

The last 2 lines of BackupScript.ps1 are Write-Host "Press any key to close ..." $x = $host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown") Comment these out (or delete them) and scheduled jobs should complete and exit cleanly. If you really want the pause at the end, replace the last line with something like this to wrap a timeout around it (each sleep is 1 ...



Only top voted, non community-wiki answers of a minimum length are eligible