Dit is mijn loginscript op dit moment
:start
;Welkom scherm
?"U logt nu in op het domein @LDOMAIN op server @LSERVER"
?"Uw machine staat in het domein @DOMAIN"
?"Uw machine heet @WKSTA"
?"Uw IP hostnaam is @HOSTNAME"
?"Uw IP Adres is @IPADDRESS0"
?"Uw Netwerkadres is @ADDRESS"
?
?"Uw paswoord is al @PWAGE dagen niet gewijzigd"
?
? "Uw station wordt nu gereed gemaakt voor gebruik"
?
?"Uitwissel schijf wordt verbonden"
use u: \\server\uitwissel
$ReturnCode = AddKey("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\explorer\Hier wil ik een Dword string toevoegen")
If $ReturnCode = 0
? "Key added...."
er moet een DWORD string aan gemaakt worden die nodrives heet.
en hij moet de waarde 9 bevatten.
------------------------------------------------------------------------------------
Uit de kixtart help file:
AddKey( )
Action: Adds the specified subkey to the registry.
Syntax: ADDKEY ("subkey")
Parameters: Subkey
A string that specifies the name of the subkey you want to add to the registry.
Returns: 0 Subkey added
Error code Function failed
See Also: DelKey( ), DelTree( ), ReadType( ), ReadValue( ), WriteValue( )
Example: $ReturnCode = AddKey("HKEY_CURRENT_USER\EZReg")
If $ReturnCode = 0
? "Key added...."
Endif
WriteValue( )
Action: Assigns a value to a registry entry.
Syntax: WRITEVALUE ("subkey", "entry", "expression", "data type")
Parameters: Subkey
Identifies the subkey where you want to write a value entry.
Entry
The name of the entry. To write to the (default) entry of a key, specify an empty string as the entry name ("").
Expression
The data to store as the value of the entry.
REG_MULTI_SZ (multi-string) variables are returned with the pipe symbol ( | ) used as the separator between strings. If a string contains a pipe symbol character, it is represented by two pipe symbol characters ( || ).
Data type
Identifies the data type of the entry. The following data types are supported:
REG_NONE
REG_SZ
REG_EXPAND_SZ
REG_BINARY
REG_DWORD
REG_DWORD_LITTLE_ENDIAN
REG_DWORD_BIG_ENDIAN
REG_LINK
REG_MULTI_SZ
REG_RESOURCE_LIST
REG_FULL_RESOURCE_DESCRIPTOR
Returns: 0 Value successfully written
Error code Function failed
Example: $RC=WriteValue("EZReg\Test", "A MultiString variable", "Line 1|Line 2|Line 3 with a || in it|" "REG_MULTI_SZ")
If @ERROR = 0
? "Value written to the registry"
Endif
--------------------------------------------------------------------------------
Snapt iemand hoe dat dit moet?
als ik
$ReturnCode = AddKey("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\explorer\REG_DWORD Nodrives")
If $ReturnCode = 0
? "Key added...."
doe dan wordt er een map
REG_DWORD Nodrives aangemaakt

dus tot zover ging het goed. nu nog een specifieke type en ook nog een value kunnen aangeven...