Hi everyone.
I'm having enormous trouble adding a registry key of
type 'REG_DWORD'. The value keeps getting added as a
'REG_SZ' type. Here's my script:
use Win32::TieRegistry( Delimiter=>"#",
qw(REG_DWORD));
$eventlog_name = $ARGV[0];
$retention = $ARGV[1];
$retention = ($retention * 86400);
If I understand you correctly you just want to get the value of
%systemroot%? It is in the environment, so you can use the %ENV hash to
access it, i.e. $searchpath = $ENV{SystemRoot}."\\system";
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, Nov
Something like this:
use Win32::Lanman;
use strict;
my @users;
if(!Win32::Lanman::NetGroupGetUsers("server", "ciit-citrix_users",
\@users))
{
print "Sorry, something went wrong; error: ";
# get the error code
print Win32::Lanman::GetLastError();
exit 1;
}
#open(INFILE, ")
Hi there,
I want to change all users' TerminalServiceProfile on a Windows 2000 Server
(Userpfofilepath, Drivemap, set the checkbox to grant access). I think
someone did this before and might share a snippet... :)
TIA Harry
___
Perl-Win32-Admin mailing
Lars:
Try this reg setting:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SystemRoot
Chris Anderson
___
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Hi,
I want to change a script that I made that looks for some file on a remote
machine. Currently I'm using "C:\WINNT\system\" as searchpath, and I want to
change that to "%WINDIR%\system". Now I've looked in the registry under
HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment for