Skip to content

Conversation

zjalexander
Copy link
Contributor

If you try and use Notepad.exe or Visual Studio to save the psm1 file, you will get an error about insufficient permissions even if you are logged in as Admin.
I worked around this by using ISE as Administrator

If you try and use Notepad.exe  or Visual Studio to save the psm1 file, you will get an error about insufficient permissions even if you are logged in as Admin.
I worked around this by using ISE as Administrator
@msftclas
Copy link

Hi @zjalexander, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!


It looks like you're a Microsoft contributor (Zachary Alexander). If you're full-time, we DON'T require a Contribution License Agreement. If you are a vendor, please DO sign the electronic Contribution License Agreement. It will take 2 minutes and there's no faxing! https://cla.microsoft.com.

TTYL, MSBOT;

@msftclas msftclas added the cla-not-required The contributor doesn't have to sign the CLA (Contributor License Agreement). label Jul 28, 2016
@KarolKaczmarek
Copy link
Contributor

@zjalexander
Thanks for filing this.
Did you hit this issue when installing module from PowerShell Gallery via Install-Module (directly to C:\Program Files)?

That would explain why you were required to provide administrator rights to rename the file. However, when I did that I was able to rename (save as) the file either via notepad.exe (elevated), PowerShell ISE or simply by right clicking and choosing "rename".

When I tried to save it as "ApiTokens.psm1" using non-elevated notepad.exe it didn't work as expected and proposed to save it my user's folder instead.

clarified permissions issues
@zjalexander
Copy link
Contributor Author

Discussed briefly with Karol:

  1. yes, used Install-Module
  2. I didn't think through finding the notepad shortcut and right clicking to run as admin :)
    given that, I slightly changed the wording

@KarolKaczmarek
Copy link
Contributor

Thanks!

@KarolKaczmarek KarolKaczmarek merged commit db622bd into microsoft:master Jul 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-not-required The contributor doesn't have to sign the CLA (Contributor License Agreement).
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants