Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8216043
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T11:59:38+00:00 2026-06-07T11:59:38+00:00

[DBG]: PS C:\Windows\system32>>> echo [uint32]::maxvalue [uint32]::maxvalue and [DBG]: PS C:\Windows\system32>>> $mv = [uint32]::maxvalue [DBG]:

  • 0
[DBG]: PS C:\Windows\system32>>> echo [uint32]::maxvalue
[uint32]::maxvalue

and

[DBG]: PS C:\Windows\system32>>> $mv = [uint32]::maxvalue
[DBG]: PS C:\Windows\system32>>> echo $mv
4294967295

I am sure powershell has some perfectly good reason for doing this :-). Is there someway i can tell it not to do it. I am actually passing and int to a function and sometimes I want to pass maxvalue

I know I can do

$mv = [uint32]::maxvalue
MyFunc $mv

I am wondering if there is something like

MyFunc ([uint32]::maxvalue)
MyFunc `[uint32::maxvalue`

etc

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T11:59:42+00:00Added an answer on June 7, 2026 at 11:59 am

    The reason why is that the echo command is interpreting the argument as a string and not an arbitrary value. Hence in the first example it’s printing out the argument literally vs. interpreting it as a value. In the second case though it’s being interpreted as an expression and being assigned to a value.

    You can reproduce this behavior by creating a function yourself that echos the output to the console.

    function example { 
      param ([string]$arg)
      Write-Output $arg
    }
    
    example [uint]
    > [uint]
    example 42
    > 42
    

    You can also force the echo function to interpret it as a value by using ()s to specify it’s an expression

    echo [uint32]::maxvalue
    > [uint32]::maxvalue
    echo ([uint32]::maxvalue)
    > 4294967295
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

On Windows , a debug library's name has a d as a postfix. But
Is there an equivalent in dbg/cocoa/apple word for the Microsoft public symbol server and
While tracing my modules using dbg, I encountered with the problem how to collect
My installation of Indigo has 'Launch Group' in the debug configuration window. My colleague's
I have this nifty little script that does a nice job of manipulating some
I have been trying to solve some crackmes (from http://crackmes.de ) using WinDbg. Most
Good day! I have strange problem with Xcode 4.3. When I'm trying to run
I am using fstream and got some error. Here is what I have: class
I traced with dbg my system. I used dbg:trace_port(file,{/tmp/trace,wrap,atom_to_list(node()),10000000,20}) now I have couple binary
I thought apt-get install mono-dbg would solve it but i was wrong. How do

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.