use Win32::Lanman; Win32::Lanman::GrantPrivilegeToAccount( Win32::NodeName(), SE_SERVICE_LOGON_NAME, ['Guest']);