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

Monday, December 20, 2010

Creating Scheduled Task via GPO fails on Windows Server 2008 or Vista

When creating a Scheduled Task via GPO and applying it on Windows Server 2008 (or Windows Vista), the task will not appear in Administrative Tools -> Task Scheduler on the affected machines. Instead, the following error appears in the Event Log:

The computer 'Compress Logs and Backups' preference item in the 'Scheduled Tasks - Compress Logs and Backups {A76A14CE-5000-4AD7-931C-81D50A768C29}' Group Policy object did not apply because it failed with error code '0x80070057 The parameter is incorrect.' This error was suppressed.

The error is pretty lame, actually a missing 'Start in' parameter in the GPO.


After filling in the Start in: parameter with any value, and doing a gpupdate, the scheduled task suddenly appeared on the servers where the GPO is applied. Yaay :D

Friday, December 18, 2009

Deleting a Windows Account on a TFS

My question was: If I delete a user's Windows Account, will it be automatically removed from TFS, too? Since I couldn't find the answer on Google, I thought I'll just post the answer here.

The answer is: NO YES

You have to remove the user account from all TFS Groups and Projects, otherwise it will show up in the Assigned To field.
The easiest way I know is: in Team Explorer, right click the root of the server -> Team Foundation Server Settings -> Group Membership and search for a group you surely know that the user was part of. Double-click the group, and double-click the person. A window will show up with all the groups the user is member of. Print screen-it to have this info in the clipboard and remove the user from each group.
You must also remove the user manually from the Project Portals. Check again the clipboard to see in which portals might the user be. Open each affected Project Portal, go to Site Actions (on the right), choose Site Settings, People and Groups and delete the guy.
The interesting thing is that from the Reports Sites the user will be removed automatically, no work to do there :-)

UPDATE: Lately I had an email discussion with a developer of the TFS Administration Tool and he revealed me that TFS hourly syncs with the identity stores and if a user GUID cannot be resolved, it will mark it as deleted. That means, it's enough to delete the user from Windows and Sharepoint. From TFS and SQL Reporting the user will be automatically removed. I have not tested this though.