About 15,100 results
Open links in new tab
  1. Variable Scope within a Start-Job InitializationScript

    Aug 10, 2011 · I don't believe Start-Job has a parameter for passing an input object into the initialization script, so your best bet is probably to drop the path into $env temporarily (it won't stick around when …

  2. start-job argumentlist - social.technet.microsoft.com

    and found the same problem. the args [0] before and after the select work, just fails in the select. I tried running the command locally and the evaluation works out ok..

  3. How to multi-thread moving files from different location simultaneously?

    Jul 31, 2012 · I use a batch file that basically runs the same powershell script over and over providing different source and target locations as arguments to move files. I could run multiple batch files at the …

  4. Calling a CMD Shell variable from PS Shell

    Oct 25, 2013 · And finally, if the PowerShell script launches, but is located in a different directory from the batch file, you'll need to pass the information about the working directory on to the PowerShell …

  5. Terminal Services clipboard: How to schedule restart rdpclip.exe for ...

    Jul 20, 2011 · I am trying to deal with the known issue of the clipboard periodically not working and users not being able to copy and paste between application. I understand a temporary 'fix' is just to restart …

  6. Trying to run powershell with PSEXEC - social.technet.microsoft.com

    PS > powershell.exe -? PowerShell [.exe][-PSConsoleFile <file> | -Version <version>][-NoLogo][-NoExit][-Sta][-NoProfile][-NonInteractive][-InputFormat {Text | XML}][-OutputFormat {Text | XML}][ …

  7. Add routes remotely Via Powershell - social.technet.microsoft.com

    I forgot to add this image yesterday. This shows another example of passing variables to remote computers using Invoke-Command and its parameter -ArgumentList. Note: I know that Test …

  8. Possible Backreference Issues with [regex]::replace

    History: Using Powershell V2.0 on Windows 7 Professional 64-bit SP1, I was trying to write a small script to process multiple files to find and replace various patterns in a directory of source code files (VB6 …

  9. elevated powershell command - social.technet.microsoft.com

    In SCOM 2019 I am trying to create a command channel in notifications to run a powershell script that restarts a service when an alert is generated. The script runs locally on the targeted server however …

  10. get admin right - social.technet.microsoft.com

    Perhaps, but that's not always a good approach because you can't count on that resource being there unless you're willing to write in a way to retrieve it as well, such as with PowerShell or some other …