Jump to content

Rob Fuller

Member
  • Posts

    2
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United Kingdom

About Rob Fuller

Rob Fuller's Achievements

0

Reputation

  1. Thanks Yzöwl, that bat file works! Only one small problem now, the users I need it to run on only have limited access to the machine and I want to run this as a logon script. But how would I elevate the script to have admin permissions to complete successfully?! Arrr this is driving me mad! But thanks for your help so far!! Rob
  2. Hey, I'm trying to write a script that will add permissions to the HKEY_CURRENT_USER hive to the Interactive User has Full Control, what has happened when we created staff user profiles the profile they were created from had this missing. Meaning when the logged onto a machine it couldn’t write to there personal registry. So to fix this program I’m hoping to write a script which will run at logon to fix this problem. But I’m having trouble getting the script to run and was hoping someone here to help me please! Set wshNetwork = CreateObject("WScript.Network") strUser = wshNetwork.Username strComputer = "." Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2") Set objAccount = objWMIService.Get _ ("Win32_UserAccount.Name="""& strUser &""",Domain=""dnt1""") strSID = objAccount.SID Set objShell = CreateObject("WScript.Shell") objShell.Run "E:\regini\regini '\Registry\User\' & strSID & '\ [1 5 13 17 21]'" I'm not brilliant at scripts to please don’t slaughter me!! lol. Any help would be appreciated!! Rob
×
×
  • Create New...