About 1,350,000 results
Open links in new tab
  1. Automatically run a script when I log on to Windows

    Jan 7, 2016 · If the current user is a member of one of the three groups defined at the top of the script, then the script maps the user's G: drive to the group shared drive, and sets the user's …

  2. How to Execute Powershell Script AS Powershell 7 from Command …

    May 28, 2020 · When I run that same .PS1 script from command prompt using powershell testscript_writefile.ps1, I get: Name Value ---- ----- PSVersion 5.1.14393.3471 PSEdition …

  3. boot - Run a script on start up on Windows 10 - Super User

    On previous versions of Windows I have used the below technique to run a batch file on Windows startup. Create a shortcut to the batch file. Once the shortcut is created, right-click the shortcut f...

  4. linux - How to execute shell script via crontab? - Super User

    Your script is missing a #! line at the start, which is the magic interpreted by the kernel to say which command interpreter is to be used for the script. Make it look like this: #!/bin/sh notify …

  5. shell script - How to execute .sh files on Windows? - Super User

    Execute your script like in unix. Done! Caution: Many commands won’t work on windows! But still, a lot of the basic stuff will work. If you need that script regularly you may want to create a …

  6. dotnet-script/dotnet-script: Run C# scripts from the .NET CLI.

    In order to execute a script it needs to be compiled first and since that is a CPU and time consuming operation, we make sure that we only compile when the source code has changed. …

  7. Run PowerShell script as a different user and elevated

    Jan 21, 2021 · Then execute the script elevated from that local copy instead. Execute the Start-Process Powershell a little differently than you were executing it for it to take the action of the …

  8. how to run a powershell script as administrator - Super User

    Feb 12, 2010 · I guess you could move the script someone else if you wanted to only have a single icon on your desktop. Create a shortcut to your Powershell script on your desktop; Right …

  9. linux - Running scripts from another directory - Super User

    Nov 25, 2012 · sh /path/to/script will spawn a new shell and run she script independent of your current shell. The source (.) command will call all the commands in the script in the current …

  10. How to enable execution of PowerShell scripts? - Super User

    When I try to execute my PowerShell script I get this error: File C:\Common\Scripts\hello.ps1 cannot be loaded because the execution of scripts is disabled on this system. Please see "get …