![]() ![]() I need to know how I can include the PowerShell module in a subfolder and load it, in addition to running the command-line mentioned above. PowerShell -Command (Test-PendingReboot -SkipConfigurationManagerClientCheck).IsRebootPending NOTE: I sometimes use a batch file commands for troubleshooting a few lines of code and then I convert the "known good" command into my final AutoIt scripts).Īs I mentioned, I ran the following batch command-line successfully after I had manually loaded the Powershell module via the ISE (the command displays a "True" or "False" in the Windows CMD console - see the attachment) : I loaded the PowerShell module successfully manually via the PowerShell ISE on my test machine, and ran a batch command successfully on it too. ![]() I found a PowerShell module in the TechNet script center that will be useful to me for detecting reboots however, my knowledge of PowerShell is limited and I don't know how to load the a module for use with my AutoIt scripts.
0 Comments
Leave a Reply. |