Mostly the account that you are trying to access pw commands is not part of administrator. Login using an administrator account.
If you are logging in using the administrator account, then UAC might be turned on. Disable UAC.
Another thing you might try is right click and use "Run as administrator" and then try the pw commands.