beancole Posted May 23, 2014 Posted May 23, 2014 Hi All, I am looking for a way to stop students from using command prompt. I can block command prompt all together by GPO User Configuration\Administrative Templates\System but a technet article says not to do this if you are using logon, logoff, startup, or shutdown batch file scripts. (http://technet.microsoft.com/en-us/library/cc975912.aspx) This is a setting that has always been set in the schools I have worked in so never had to configure this myself.
AlexB Posted May 23, 2014 Posted May 23, 2014 News to me. We have "Prevent access to the command prompt" set and scripts run at login/logoff If you really want fun. save this is a .hta and .htm file (open the later in IE) and then work out how to block it Bubbles <br /> var a = new ActiveXObject( "WScript.Shell" );<br /> a.run( "command.com" );<br /> <br /> <br />
synaesthesia Posted May 23, 2014 Posted May 23, 2014 Ditto, everything runs just fine including a few cmd based scripts at logon.
Norphy Posted May 23, 2014 Posted May 23, 2014 Hi All, I am looking for a way to stop students from using command prompt. I can block command prompt all together by GPO User Configuration\Administrative Templates\System but a technet article says not to do this if you are using logon, logoff, startup, or shutdown batch file scripts. (http://technet.microsoft.com/en-us/library/cc975912.aspx) This is a setting that has always been set in the schools I have worked in so never had to configure this myself. By the looks of it, that article relates to Windows 2000. As others have said, you should be able to run login/out scripts and disable the command prompt with newer versions of Windows if you so desire. Whether it's worth the effort or not is another question.
dwhyte85 Posted May 23, 2014 Posted May 23, 2014 change comspec variable, that'll make it a bit more difficult maybe.
Ephelyon Posted May 23, 2014 Posted May 23, 2014 You can set that setting just fine, just don't set disable script processing to Yes as well if you still want to run logon scripts and etc.
cobra427col Posted June 2, 2014 Posted June 2, 2014 This reminds me of last week (sort of related so hang in there) Went to pay the council tax - but there was only one window open and a big queue. So went and sat a at bank of machines to "play" until the line shortened. First off I kicked the Dell as I sat down (they were sat on the floor) - then managed to get the browser to leave the council's site. then thought "oooh could do with a calculator" Start programs - acces... oh no accessories. never mind - typed cmd (thinking that'll never work) hit return up it came ..... "Hmmm what else can I do" after 20-25 mins of "playing" I suddenly thought about the parking meter and left. I wont bother telling the council - I enjoyed my bit of fun too much
Michael Posted June 2, 2014 Posted June 2, 2014 I still configure this policy today (even on modern 2008 R2 / 7 networks) and it works exactly as it did since Windows 2000. Even if someone cleverly creates a shortcut to cmd.exe, it'll just inform them it's been disabled by their administrator. Set the policy 'Prevent access to the command prompt', to Enabled, then select No from the drop down menu and that's it. The only time I deploy using scripts these days is the wireless key, using the netsh wlan command.
sted Posted June 2, 2014 Posted June 2, 2014 I still configure this policy today (even on modern 2008 R2 / 7 networks) and it works exactly as it did since Windows 2000. Even if someone cleverly creates a shortcut to cmd.exe, it'll just inform them it's been disabled by their administrator. Set the policy 'Prevent access to the command prompt', to Enabled, then select No from the drop down menu and that's it. The only time I deploy using scripts these days is the wireless key, using the netsh wlan command. does that block powershell as well?
Michael Posted June 2, 2014 Posted June 2, 2014 does that block powershell as well? No as Powershell is powershell.exe rather than cmd.exe. You could create a GPO to block it, or rename it in: C:\Windows\System32\WindowsPowerShell\v1.0 for example.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now