I migrated my PowerShell script from the 2003-2012 2012 server only.
But when I try my PowerShell script and gives an error in running it:
I can not set the time, I can not set, I access some files I can run the scheduled tasks from the script
But when I click on the rights powers and go in the form of administrators, it works fine.
I am confused because I have all the rights PC and I have also fixed my Porschell execution policy as unrestricted.
Any help is welcome. Thanks!
You need to run PowerShell as an administrator to make changes to your system, because User3325210 has said
Server 2003 did not have UAC, so if you were an administrator, you were always running as an administrator. With the introduction of the UAC, even if you have administrative rights on the machine, even though everything in the windows is safe. That is, if you want to make changes to your system through an app, then you have to do it via PowerShell or a command prompt, you have to launch PowerShell as an Administrator.
This means that right-clicking on PowerShell and clicking 'Run as Administrator', e.g.,
Now, if you are trying to do this through a defined task, As an administrator, this option needs to be used to launch this process, it is listed as 'run weird' Privilege '
Just make sure that you are using an account on which you have administrative rights on the system that establishes this task.
No comments:
Post a Comment