Jump to content

jfmartel

Member
  • Posts

    195
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Canada

Posts posted by jfmartel

  1. Here is your modified file

    so your command should be (if you dont changed the location for user's profile

    REG LOAD "HKLM\User" "C:\Documents and Settings\Default User\NTUSER.DAT"

    REG IMPORT "lock.reg"

    REG UNLOAD "HKLM\User"

    As you'll see in your reg file...i changed HKEY_CURRENT_USER to HKEY_LOCAL_MACHINE\User

    This will allow you to change settings for the default user.....

    Lock.reg

  2. Basicaly it load the NTUSER.DAT (wich is the current_user branch you chose) into the HKEY_LOCAL_MACHINE.

    You can do that the regedit.exe with "file-->load hive" then selecting a name for you loaded branch.....

    Then you can impot registry tweaks as you want....

    But because the change you want to do are in HKEY_LOCAL_MACHINE\User you got to change in your registry file HKEY_CURRENT_USER to HKEY_LOCAL_MACHINE\User

  3. You might want to try Registry Monitor from Sysinternals. This is a very nice freeware to try.

    Consider also trying File Monitor.

    I used also Araxis Merge (you can get a free trials) to track change between my registry file.....

    Basically, export HKCU and HKLM, than make your change to your system. Then export again your HKLM and HKCU... than compare your file in Araxis Merge. Its very easy to see what change have been made

    Hope this help!

  4. I had some problem with one of my system. Dell Precision 370 wich use Broadcom 57x Gigabit Integrated NIC.

    Just after the CIW, Windows setup tells that driver or somewhat is missing.

    On broadcom site you have information about this. Yesterday, update the broadcom driver to newest version and they were not working with the RIS setup (in the i386). I dont think the problem is because RIS doesnt creates your PNF file.

    You might want to try older driver and see broadcom site for more information. You have to edit them to get them working

    Hope this help.

    Since im not an english im not sure that i have understood all corectly. If no, i would like to get more precision on your question

    Thank you!

  5. Use this in your reg tweak file

    ;Enable remote desktop

    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server]

    "fDenyTSConnections"=dword:00000000

    Use this in your winnt.sif file

    [TerminalServices]

    AllowConnections=1

    PermissionsSetting=0

    For your exception

    Add

    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\DomainProfile\GloballyOpenPorts\List] OR

    <EDIT>[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\StandardProfile\GloballyOpenPorts\List]</EDIT>

    "3389:TCP"="3389:TCP:*:Enabled:@xpsp2res.dll,-22009"

    "139:TCP"="139:TCP:LocalSubNet:Disabled:@xpsp2res.dll,-22004"

    "445:TCP"="445:TCP:LocalSubNet:Disabled:@xpsp2res.dll,-22005"

    "137:UDP"="137:UDP:LocalSubNet:Disabled:@xpsp2res.dll,-22001"

    "138:UDP"="138:UDP:LocalSubNet:Disabled:@xpsp2res.dll,-22002"

    In my case it's domain profile (other could be standard profile)

    You should set your tweak in your Windows Firewall control panel.

    Then export your key and add it to your regtweaks file

    Hope this help!

    <EDIT>Sorry for error</EDIT>

  6. Hello all

    In my corporate environment, users have "My Computer" and "My NEtwork Places" displayed in theirs start menu.

    Now that i'm working on RIS, i'd like to know how i get to automated.

    I've tried to copy the "shortcut" but t doesn't work. It seems like some link aren't created with this method.

    This should look like this

    temp.jpg

    [EDIT]After watching with Sysinternals File Monitor, it seems that the "shortcutcut" to one of those link to either "My computer/target.lnk" Opened the file with notepad and it's unreadable....[/EDIT]

    Anyone can help me!

  7. Hello,

    I've got a RIS distrubition setup wich use 2 template (sif file) I'm using in this distrubtion a runonceex.cmd wich add command to run for both template. GuiRunOnce runs specific command for each template. SO can't be run from RunOnceEx

    But i'd like to know wich one runs first? GuiRunOnce or RunOnceEx

    Thank you!

  8. This one of the most annoying default in Windows XP.

    In explorer shell, no status bar!!!

    Well i've searched and tried a lot of time on this one.

    I know this setting is saved in HKCU\Software\Microsoft\Windows\currentVersion\Explorer\Streams

    And i know that i have to set my setting that i want, then export them in a reg then impot to other user. Detailed view is there......but no status bar. IS status bar somewhere else?

    Anyone is using the same settings? (Detail with status bar)

    Thank you!

  9. Thank you. That was a good help

    I've finally managed to get my full answer....

    In our business... the username will be use as Initials for Office.

    What this code do is search the Active Directory for the current username. Then get the Full name (Will be use as Full name within Office) then convert the string to HEX.

    So here the code, executed at the logon

    Set oFSO = CreateObject("Scripting.FileSystemObject")
    Set oShell = CreateObject("Wscript.Shell")

    ' get UserName
    strName = oShell.ExpandEnvironmentStrings("%USERNAME%")

    strContainer = "ou=MyOUInAD"

    On Error Resume Next

    ' Constants for the NameTranslate object.
    Const ADS_NAME_INITTYPE_DOMAIN = 1
    Const ADS_NAME_TYPE_NT4 = 3
    Const ADS_NAME_TYPE_1179 = 1

    Set objNetwork = CreateObject("Wscript.Network")

    ' Determine DNS domain name from RootDSE object.
    Set objRootDSE = GetObject("LDAP://RootDSE")
    strDNSDomain = objRootDSE.Get("defaultNamingContext")

    ' Use the NameTranslate object to find the NetBIOS domain name from the
    ' DNS domain name.
    Set objTrans = CreateObject("NameTranslate")
    objTrans.Init ADS_NAME_TYPE_NT4, strDNSDomain
    objTrans.Set ADS_NAME_TYPE_1179, strDNSDomain
    strNetBIOSDomain = objTrans.Get(ADS_NAME_TYPE_NT4)
    ' Remove trailing backslash.
    strNetBIOSDomain = Left(strNetBIOSDomain, Len(strNetBIOSDomain) - 1)

    ' Use the NameTranslate object to convert the NT user name to the
    ' Distinguished Name required for the LDAP provider.
    objTrans.Init ADS_NAME_INITTYPE_DOMAIN, strNetBIOSDomain
    objTrans.Set ADS_NAME_TYPE_NT4, strNetBIOSDomain & "\" & strName
    strUserDN = objTrans.Get(ADS_NAME_TYPE_1179)

    ' Bind to the user object in Active Directory with the LDAP provider.
    Set objUser = GetObject("LDAP://" & strUserDN)

    'Get Common name
    strUsername= objUser.cn

    'Convert Initials to HEX
    For i = 1 to Len(strName)
     strInitialsHex = strInitialsHex & "," & Hex(Asc(Mid(strName, i, 1))) & ",00"
    Next
    strInitialsHex = Right(strInitialsHex , Len(strInitialsHex ) -1)
    strInitialsHex = strInitialsHex & ",00,00"

    'Convert Username to HEX
    For i = 1 to Len(strUsername)
     strUsernameHex = strUsernameHex & "," & Hex(Asc(Mid(strUsername, i, 1))) & ",00"
    Next
    strUsernameHex = Right(strUsernameHex, Len(strUsernameHex) -1)
    strUsernameHex = strUsernameHex & ",00,00"

    ' Create temporary registry file
    Const OverwriteIfExist = -1
    Const FailIfExist      = 0
    Const OpenAsASCII   =  0
    Const OpenAsUnicode = -1
    Const OpenAsDefault    = -2
    sTmpFile = oShell.ExpandEnvironmentStrings("%TEMP%") & "\UserInfo.reg"
    Set fFile = oFSO.CreateTextFile(sTmpFile, OverwriteIfExist, OpenAsASCII)


    ' Write to the temporary registry file
    fFile.WriteLine "Windows Registry Editor Version 5.00"
    fFile.WriteLine
    fFile.WriteLine "[HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Common\UserInfo]"
    fFile.WriteLine """UserName""=hex:" & strUsernameHex
    fFile.WriteLine """UserInitials""=hex:" & strInitialsHex
    fFile.Close

    ' Import the registry file
    oShell.Run "regedit /s " & sTmpFile, 0, True

    ' Delete the temporary registry file
    oFSO.DeleteFile sTmpFile

    'Connect to network drive
    Set oNetwork = WScript.CreateObject("WScript.Network")
    oNetwork.MapNetworkDrive "z:", "%logonserver%\%username%\home"

    Hope this help for someone else too

    Thank you all for helping me out on this one

×
×
  • Create New...