Enable ActiveSync based on User Group membership

Hi All, I am sharing a script that will enable users for activesync based on  groups & disables activesync for other users.  example script taken from Microsoft script center has been modified to include three groups, logging & email notification. Run the script from :- C:\scripts\EnableActivesync ————————————————————————————————————————————————————————– ###################################################################################### #    Author: Vikas Sukhija #    Date:- 11/15/2012…

Servers uptime script

Hi Readers, Today I am sharing a script that you can us to email you the uptime report of servers in your enviornment. I have found this script on internet but I have modified it to get the report in HTML & email the report. There are two scripts :- 1. uptime.ps1 (thanks to its…

Readonly permissions to all Databses on SQL servers

Hi Readers, There was a requirement for application for readonly access to all databases  on sa SQL server. Also, any new databses should be created with readonly access to that user. (Thats why this user should be included in model database) Here is the code to achieve it. —————————————————————————————————————————— EXEC sp_MSforeachdb ‘ IF ”?” NOT…