Skip to content

Following instructions gives errors, starting with a scratchdisk error #339

Description

@linuxgurugamer

Instructions say to run the script (after running Set-ExecutionPolicy unrestricted) and that you will be prompted for where the ISO is mounted.
Doing so generates 52 lines of error, the captured output is below:

tiny11maker.log

The output is below, but the formatting is a bit off due to markup:

`The variable cannot be validated because the value D:\users\jbb\Downloads\Tiny-11\tiny11builder-main is not a valid
value for the ScratchDisk variable.
At D:\users\jbb\Downloads\Tiny-11\tiny11builder-main\tiny11maker.ps1:10 char:5

  • $ScratchDisk = $PSScriptRoot -replace '[\\]+$', ''
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : MetadataError: (:) [], ValidationMetadataException
    • FullyQualifiedErrorId : ValidateSetFailure

Scratch disk set to
New-Object : Cannot create type. Only core types are supported in this language mode.
At D:\users\jbb\Downloads\Tiny-11\tiny11builder-main\tiny11maker.ps1:30 char:13

  • $adminSID = New-Object System.Security.Principal.SecurityIdentifier(" ...
  •         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : PermissionDenied: (:) [New-Object], PSNotSupportedException
    • FullyQualifiedErrorId : CannotCreateTypeConstrainedLanguage,Microsoft.PowerShell.Commands.NewObjectCommand

You cannot call a method on a null-valued expression.
At D:\users\jbb\Downloads\Tiny-11\tiny11builder-main\tiny11maker.ps1:31 char:1

  • $adminGroup = $adminSID.Translate([System.Security.Principal.NTAccoun ...
  •   + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
      + FullyQualifiedErrorId : InvokeMethodOnNull
    
    

Cannot invoke method. Method invocation is supported only on core types in this language mode.
At D:\users\jbb\Downloads\Tiny-11\tiny11builder-main\tiny11maker.ps1:32 char:1

  • $myWindowsID=[System.Security.Principal.WindowsIdentity]::GetCurrent( ...
  •   + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
      + FullyQualifiedErrorId : MethodInvocationNotSupportedInConstrainedLanguage
    
    

new-object : Cannot create type. Only core types are supported in this language mode.
At D:\users\jbb\Downloads\Tiny-11\tiny11builder-main\tiny11maker.ps1:33 char:21

  • ... wsPrincipal=new-object System.Security.Principal.WindowsPrincipal($my ...
  •             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : PermissionDenied: (:) [New-Object], PSNotSupportedException
    • FullyQualifiedErrorId : CannotCreateTypeConstrainedLanguage,Microsoft.PowerShell.Commands.NewObjectCommand

You cannot call a method on a null-valued expression.
At D:\users\jbb\Downloads\Tiny-11\tiny11builder-main\tiny11maker.ps1:35 char:5

  • if (! $myWindowsPrincipal.IsInRole($adminRole))
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (:) [], RuntimeException
    • FullyQualifiedErrorId : InvokeMethodOnNull

Transcript started, output file is \tiny11.log
Cannot set property. Property setting is supported only on core types in this language mode.
At D:\users\jbb\Downloads\Tiny-11\tiny11builder-main\tiny11maker.ps1:50 char:1

  • $Host.UI.RawUI.WindowTitle = "Tiny11 image creator"
  •   + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
      + FullyQualifiedErrorId : PropertySetterNotSupportedInConstrainedLanguage
    
    

`

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions