serverfault.com
Open in
urlscan Pro
104.18.39.38
Public Scan
URL:
https://serverfault.com/questions/904786/permission-dont-work-as-expected-powershell-works-gui-doesnt
Submission: On February 05 via manual from US — Scanned from DE
Submission: On February 05 via manual from US — Scanned from DE
Form analysis
1 forms found in the DOM/search
<form id="search" role="search" action="/search" class="s-topbar--searchbar js-searchbar " autocomplete="off">
<div class="s-topbar--searchbar--input-group">
<input name="q" type="text" role="combobox" placeholder="Search on Server Fault…" value="" autocomplete="off" maxlength="240" class="s-input s-input__search js-search-field " aria-label="Search" aria-controls="top-search"
data-controller="s-popover" data-action="focus->s-popover#show" data-s-popover-placement="bottom-start" aria-expanded="false">
<svg aria-hidden="true" class="s-input-icon s-input-icon__search svg-icon iconSearch" width="18" height="18" viewBox="0 0 18 18">
<path d="m18 16.5-5.14-5.18h-.35a7 7 0 1 0-1.19 1.19v.35L16.5 18l1.5-1.5ZM12 7A5 5 0 1 1 2 7a5 5 0 0 1 10 0Z"></path>
</svg>
<div class="s-popover p0 wmx100 wmn4 sm:wmn-initial js-top-search-popover" id="top-search" role="menu">
<div class="s-popover--arrow"></div>
<div class="js-spinner p24 d-flex ai-center jc-center d-none">
<div class="s-spinner s-spinner__sm fc-orange-400">
<div class="v-visible-sr">Loading…</div>
</div>
</div>
<span class="v-visible-sr js-screen-reader-info"></span>
<div class="js-ac-results overflow-y-auto hmx3 d-none"></div>
<div class="js-search-hints" aria-describedby="Tips for searching"></div>
</div>
</div>
</form>
Text Content
STACK EXCHANGE NETWORK Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers. Visit Stack Exchange Loading… 1. * Tour Start here for a quick overview of the site * Help Center Detailed answers to any questions you might have * Meta Discuss the workings and policies of this site * About Us Learn more about Stack Overflow the company, and our products 2. 3. CURRENT COMMUNITY * Server Fault help chat * Meta Server Fault YOUR COMMUNITIES Sign up or log in to customize your list. MORE STACK EXCHANGE COMMUNITIES company blog 4. 5. Log in 6. Sign up Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up. Sign up to join this community Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top 1. 1. Home 2. Questions 3. Tags 4. 5. Users 6. Companies 7. Unanswered 2. Teams Stack Overflow for Teams – Start collaborating and sharing organizational knowledge. Create a free Team Why Teams? 3. Teams 4. Create free Team Teams Q&A for work Connect and share knowledge within a single location that is structured and easy to search. Learn more about Teams PERMISSION DON'T WORK AS EXPECTED - POWERSHELL WORKS, GUI DOESN'T Ask Question Asked 5 years, 10 months ago Modified 5 years, 10 months ago Viewed 1k times Report this ad This question shows research effort; it is useful and clear 0 This question does not show any research effort; it is unclear or not useful Save this question. Show activity on this post. I'm a software developer and not really into all those server config things... still I have a problem that really confuses me. I'll try to explain it as good as I can: When I log into a server with a specific account, I don't have the permission to access C:\ - Also I don't have permissions to do something in the console. When I try to access C:\ per explorer, I get the following error message: > Accessing the resource 'C:\' has been disallowed. When I open a console (cmd): > The command prompt has been disabled by your administrator. Until here everything is fine. I thought that the account simply doesn't have the permission to do these tasks. Now the weird part: When I create a file on C:\ with a PowerShell Script it works... PS C:\> New-Item -Path "C:\test" -Name "testfile1.cmd" -ItemType "file" -Value "cd\" This works perfectly. When I run the testfile1.cmd via powershell, it also prints me the expected result. Can someone explain me why I can't do all these things trough the GUI, neither have access to the normal console, but can make it work with powershell? As said, I don't know that much about permissions on systems since I come from the software part, so I would really appreciate any help. Thanks! * windows-server-2012-r2 * permissions * powershell * windows-command-prompt * accounts Share Share a link to this question Copy linkCC BY-SA 3.0 Improve this question Follow Follow this question to receive notifications asked Mar 27, 2018 at 12:07 TwinfriendsTwinfriends 11366 bronze badges 2 * Hint - sounds like group policy – dsolimano Mar 27, 2018 at 12:19 * Yes, this is Group Policy. Blocking access to the command prompt adds zero security and is a holdover from the days before access control. IMO it serves no useful purpose anymore. – Bill_Stewart Mar 28, 2018 at 21:42 Add a comment | 2 ANSWERS 2 Sorted by: Reset to default Highest score (default) Date modified (newest first) Date created (oldest first) This answer is useful 1 This answer is not useful Save this answer. Show activity on this post. This is because either a local security policy or group policy object configured “Prevent access to drives from My Computer” to Enabled. https://www.howtogeek.com/howto/8035/how-to-restrict-access-to-drive-in-my-computer-on-windows/ Your second error is because because either a local security policy or group policy object configured “Prevent access to the command prompt” to enabled. These are security policies set by your administrator. You should discuss your questions with your administrator and/or supervisor (whichever combination of people is appropriate for your employer). Share Share a link to this answer Copy linkCC BY-SA 3.0 Improve this answer Follow Follow this answer to receive notifications answered Mar 27, 2018 at 12:29 user5870571user5870571 3,13422 gold badges1313 silver badges3535 bronze badges Add a comment | This answer is useful 0 This answer is not useful Save this answer. Show activity on this post. > This works perfectly. When I run the testfile1.cmd via powershell, it also > prints me the expected result. Can someone explain me why I can't do all these > things trough the GUI, neither have access to the normal console, but can make > it work with powershell? Those restrictions block interactive, but not programmatic, access to those components. Share Share a link to this answer Copy linkCC BY-SA 3.0 Improve this answer Follow Follow this answer to receive notifications answered Mar 27, 2018 at 16:20 joeqwertyjoeqwerty 111k66 gold badges8181 silver badges172172 bronze badges Add a comment | YOU MUST LOG IN TO ANSWER THIS QUESTION. NOT THE ANSWER YOU'RE LOOKING FOR? BROWSE OTHER QUESTIONS TAGGED * WINDOWS-SERVER-2012-R2 * PERMISSIONS * POWERSHELL * WINDOWS-COMMAND-PROMPT * ACCOUNTS . * Featured on Meta * Updates to the Acceptable Use Policy (AUP) – January 2024 * What would you like to change about the moderator election process? Report this ad Report this ad RELATED 280 Useful Command-line Commands on Windows 1 don't have "sufficient right" to my own TFS 2010 3 PowerShell remoting doesn't work if computer name contains dot 7 Evaluating current ACEs on NTFS ACLs with PowerShell 1 PowerShell/ADSI Permission Issue with AD related tasks 0 What permission is needed to use a service account to remote run powershell on a server? 0 System.Security.AccessControl.InheritanceFlags PowerShell Enumeration Equivalent GUI use? 4 System.Security.AccessControl.PropagationFlags Powershell Equivalent GUI use? 4 Powershell script to set AD permissions fails with "Access Denied" despite running account having the correct permissions HOT NETWORK QUESTIONS * Render white noise texture in Cycles * Sufficient conditions for refactoring * Was this image of Cecil Williams drinking from a "white only" fountain digitally manipulated? * Between CLI and desktop * Is it "legal" for a conductor to reduce number of instruments in a piece? * How would radiation inside of the Sun affect a person? * Installing Ubuntu 22.04 Desktop into new desktop nvdia computer * If an airplane is dropped from the sky, what minimum altitude is needed to safely land? * Player conflict - not sure if I’m taking it too personally * Should reducing and simplifying explanations be a core aspect of Philosophical practice? * Why aren't all fighter jets' engine intakes on top instead of forward? * How does the menu categorize apps * My interviewer has a serious legal offense charge, and I'm not sure the company knows. What should I do? * How does El Salvador plan to deal with its huge prison population? * Frequencies are inherently positive physical quantity.... what does it mean? * Uncertainty of transistor hfe/beta values * What's the error in 记得吗,我和你认识的时候,还是个中学生,充满热情,充满理想? * Are all Darboux functions derivatives? * Scaling AI Objects in ID. What am I doing wrong? * A question about non linear sequence? * Button : interactive save as + custom initial path * Find the highest year in a string * How should I interpret categorical with continuous variables in a logistic regression output? * Demonstrate effects of summation order more hot questions Question feed SUBSCRIBE TO RSS Question feed To subscribe to this RSS feed, copy and paste this URL into your RSS reader. lang-perl SERVER FAULT * Tour * Help * Chat * Contact * Feedback COMPANY * Stack Overflow * Teams * Advertising * Collectives * Talent * About * Press * Legal * Privacy Policy * Terms of Service * Cookie Settings * Cookie Policy STACK EXCHANGE NETWORK * Technology * Culture & recreation * Life & arts * Science * Professional * Business * API * Data * Blog * Facebook * Twitter * LinkedIn * Instagram Site design / logo © 2024 Stack Exchange Inc; user contributions licensed under CC BY-SA. rev 2024.2.1.4133 WE CARE ABOUT YOUR PRIVACY We and our 8 partners store and/or access information on a device, such as unique IDs in cookies to process personal data. You may accept or manage your choices by clicking below, including your right to object where legitimate interest is used, or at any time in the privacy policy page. These choices will be signaled to our partners and will not affect browsing data.Cookie Policy WE AND OUR PARTNERS PERFORM THE FOLLOWING BASED ON YOUR SETTINGS: Use precise geolocation data. Actively scan device characteristics for identification. Understand audiences through statistics or combinations of data from different sources. Store and/or access information on a device. Develop and improve services. Create profiles to personalise content. Measure content performance. Use limited data to select content. Measure advertising performance. Use limited data to select advertising. Create profiles for personalised advertising. Use profiles to select personalised advertising. Use profiles to select personalised content. List of Partners (vendors) Accept all cookies Necessary cookies only Customize Settings