Error Creating a folder under Program Files in command prompt or script
When I am looged into a Windows 7 PC as a Domain Administrator, I can create a folder under C:\Program Files using the Windows Explorer interface.
However, when I try and create a folder in a Command prompt under C:\Program Files, I get "Access Denied". I also get an access denied error when creating a folder under C:\Program Files using a Powershell or VB Script.
How do I overcome this problem? I specifically want to be able to create a directory using Powershell
e.g. New-Item "C:\Program Files\BGInfo" -type directory
Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.