Showing posts with label 2008. Show all posts
Showing posts with label 2008. Show all posts

Monday, 15 September 2014

How to remove Shutdown,restart options from startmenu in windows server 2008.

1. Open run
2.Type gpedit.msc
3.choose User Configuration -> Administrative Templates -> Start menu & Task Bar

Choose Remove and prevent access to the Shut Down, Restart, Sleep, and Hibernate commands

and open it and select enabled.

Then

see whether it is updated or not. If its not updated then open run and type as

gpupdate /force

and now shutdown,restart removed from start menu.


Thursday, 19 June 2014

Mobile redirection with Javascript

Put this in default page that will load and with script tags.

<script>
if( /Android|webOS|iPhone|iPod|BlackBerry|Symbian|IEMobile/i.test(navigator.userAgent) ) {
window.location = "mobile";
}
</script>