Skip to main content

Overview

Create a new hidden logon session using the LOGON32_LOGON_NEW_CREDENTIALS logon type. This technique establishes a logon session that only affects network authentication while maintaining the current interactive session, enabling credential switching for network operations.

Syntax

Required Parameters

string
required
Program to execute in the new logon session

Credential Parameters

string
Username for the new logon session
string
Domain for the new logon session
string
Password for the new logon session

Optional Parameters

boolean
Show the created process window

Examples

Technical Background

Logon Type Characteristics:
  • Creates new logon session for network authentication only
  • Maintains current interactive session unchanged
  • Network operations use new credentials
  • Local operations use original identity
Use Cases:
  • Cross-domain network access
  • Service account impersonation
  • Credential switching for network operations
  • Stealth authentication context changes

Use Cases

Network Authentication:
  • Access resources with different credentials
  • Impersonate service accounts for network operations
  • Cross-domain resource access
  • Bypass current user’s network limitations
Operational Security:
  • Maintain original interactive session
  • Reduce credential exposure
  • Enable targeted credential use
  • Support compartmentalized operations

Integration Workflows

Complete Workflow:
  • asktgt - Request TGT with credentials
  • ptt - Alternative credential injection method
  • logonsession - Enumerate logon sessions