For Programmers: Free Programming Magazines  


Home > Archive > C# > March 2004 > Changing local group policies with WSH ?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Changing local group policies with WSH ?
Rav

2004-03-28, 10:29 pm

Hi,

I`m not sure if this is the correct group but ...

I`m trying to write an app that creates a user and locks down the
user's profile (ie. desktop etc).

I have figured out that by editing the user's NTUser.dat file using
regedit, I can change all the settings so that when that user logs on,
his desktop etc. is locked down.

The NTUser.dat file is located in "\Documents and Settings\user\"
folder. Therefore I can lockdown any existing user's profile from any
administrator account.

The problem is that when I create a new user, the user`s NTUSER.dat
file is not actually created. In fact the "\Documents and Settings\new
user\" folder is not created until I log on as that new user.

I need to have everything done so that when I log on as the new user,
the profile is locked down ?

I am not using ActiveDirectory.

Can this be done in c# ? Examples ?

Cheers

Gorav
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com