This causes confusion (“it doesn’t work”). When a user double-clicks on a PowerShell script file (*.ps1) the default action is to open the file in Notepad (or similar) rather than executing it.‘Ordinary users’ are often confronted by PowerShell and baulk at using it (“it looks scary”).There are several good reasons for doing this: When preparing PowerShell code for others to use, it’s a lot easier to wrap it up as a PowerShell script file (*.ps1) and then execute it from a batch file (*.bat). This simple batch file will enable a PowerShell script file (*.ps1) to execute with Administrator permissions in Windows.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |