liveBook · Manning

General user

As explained in Practical Automation with PowerShell: Effective scripting from the console to the cloud

A standard user is an account operating with ordinary permissions rather than elevated administrative rights.

A general user, also called a standard user, operates with ordinary permissions rather than elevated administrative rights. In automation, the account context determines which files, registries, and system locations a script can access. section 11.4.2

Running a script as the logged-on user supports user-specific settings but may lack elevation. A standard user can typically read Program Files and Program Data, while writes to machine-wide locations may trigger User Access Control prompts or fail. section 11.4.2

Use the standard-user context deliberately when designing and validating automation:

  • Test commands first as an administrator so installation behavior and expected configuration can be verified independently of permission failures. section 11.4.2
  • Run the completed script while logged on with standard user permissions to expose UAC prompts, denied writes, and user-context behavior. section 11.4.2
  • Separate user-specific and machine-wide work when necessary, combining user and system executions rather than assuming one context can perform everything. section 11.4.2
  • Treat remote access separately: membership in Remote Management Users permits remoting with standard-user rights unless additional server permissions apply. section 5.3.2

Testing a Git installation

Install Git and set its system-level and global configuration while elevated, verify the results with `git config --list --show-scope`, then repeat the script as a standard user. The user-context run is expected to encounter UAC prompts or fail when writing system-level configuration; restore the machine and test again under the system context as needed. section 11.4.2

Table 11.3 The different contexts a script can run under and the resources it will be able to access (view table figure)

 

Standard user

Administrator

System

User Profile

Read/Write

Read/Write

N/A

User Registry (HKCU)

Read/Write

Read/Write

N/A

Program Files

Read

Read/Write

Read/Write

Program Data

Read

Read/Write

Read/Write

Machine Registry (HKLM)

Read

Read/Write

Read/Write

Compare standard-user, administrator, and system access across user profiles, user and machine registries, Program Files, and Program Data. section 11.4.2

How Practical Automation with PowerShell: Effective scripting from the console to the cloud covers it

How deep it goes
Explains resource boundaries and a staged testing workflow, but stops short of defining an implementation for resolving every permission conflict.
Examples
Uses Git installation, Chocolatey configuration, scoped Git settings, and a permissions comparison across Windows resource locations.
What it assumes
Assumes familiarity with PowerShell scripts, Windows accounts, and administrative contexts while teaching permission effects through testing.
What you can do after
Diagnose/debug scripts by comparing administrator, standard-user, and system behavior against expected configuration and access requirements.
How it connects
Connects standard users with user profiles, user and machine registries, User Access Control, administrators, system accounts, and PowerShell remoting.

This explainer was generated by Manning's knowledge graph from the text of Practical Automation with PowerShell: Effective scripting from the console to the cloud. The section links point to the parts of the book it draws on.