How to detect is the PS host 32 or 64-bit?

Is there an easy way to tell in a PS script (or REPL mode) what is the concrete architecture of the host
process (x86, x64, ARM)?   The get-host command unfortunately won't give a clue.
-- pa

Depends on what version of PowerShell you're running.  You can check [Environment]::Is64BitProcess (which I believe requires .NET 4.0 or later, so wouldn't work in PowerShell 2.0.)
For PS 2.0 compatibility, generally people just check [IntPtr]::Size.  This will be 4 in a 32-bit process, and 8 in a 64-bit process.

Similar Messages

  • How indesign detects that the images have been modified

    Hello,
    My problem is that all my images links are seen modified (yellow triangle) while the images don't have been modified.
    The modified dates are the same.
    All my images are on a unix server and indesign is used on Mac.
    How indesign detects that the images have been modified ?

    Thank you for your answer.
    When you say the time stamp you talk about the modification date in the box link info ?
    Because this date is the same on the image and in indesign and when I update the image this date doesn't change.
    the only informations that change when I update the links are the import date and the state (modified become ok)

  • How to detect if the user is using SSL

    I use weblogic 5.1 sp6and NES 4.1. Netscape plug-in connects them together.
    I also install the verisign certificate on the NES 4.1.
    I want my JSP code to detect if the user is using http or https to visit my
    site. However, isSecure() will return false and getSchema will return https
    and getServerPort will return 80, even when the user is using https:// . I
    guess the reason is when the NES forwards the request to the weblogic, it is
    not using https.
    Then how can I detect the protocol the user is using? I use getHeaderNames()
    method to print out all the infomration in the HEADER. However, I find that
    it only includes client header information. Is it true that NES plug-in only
    fowards part of the HEADER information to the weblogic server?
    Thanks

    Comments inline....
    "Lan Jiang" <[email protected]> wrote in message
    news:3a74d511$[email protected]..
    I use weblogic 5.1 sp6and NES 4.1. Netscape plug-in connects themtogether.
    I also install the verisign certificate on the NES 4.1.
    I want my JSP code to detect if the user is using http or https to visitmy
    site. However, isSecure() will return false and getSchema will returnhttps
    and getServerPort will return 80, even when the user is using https:// . I
    guess the reason is when the NES forwards the request to the weblogic, itis
    not using https.getServerPort should return 443. It's a bug. Fixed already in the later
    service packs.
    Workaround: run the server in a port other than 443.
    >
    Then how can I detect the protocol the user is using? I usegetHeaderNames()
    method to print out all the infomration in the HEADER. However, I findthat
    it only includes client header information. Is it true that NES plug-inonly
    fowards part of the HEADER information to the weblogic server?No, it forwards all except the Connection header because it doesn't support
    http 1.1
    Vinod.

  • How to detect if the display pdf in browser is checked for Adobe Acrobat 9

    How to programatically detect if the "Display PDF in browser" option is checked/unchecked in the Adobe Acrobat 9 Pro preferences? In earlier version it was possible to determine with navigator.plugins. Please help.

    Please update to the latest version of Adobe Reader i.e. 10.1.2 and enable the double sided printing as in the below figure:
    Hope this helps.
    Ankit

  • How to detect programmatically the silent mode?

    Hi
    How are you?
    I am iOS developer.
    I need your help.
    I am going to detect programmatically the silent mode in iPhone for iOS7.
    How can I get programmatically it ?
    Please help me.
    I will wait your response.
    Thanks.
    Regards.
    Wang.

    Try the developer forum. You'll find many like minded people there to assist you with questions. Most of the people in this forum are end-users.
    http://developer.apple.com/devforums/

  • In the command line how do I find the etc/host file? is there one?

    I am trying to work remotely and use our lotus notes system (which is from a windows based server) but I have to connect to the mail server and our IT person wants to find the equivalent of the Windows host file or host table . is there such a file? we went here
    http://linux.die.net/man/5/hosts
    hosts(5) - Linux man page
    Name
    hosts - The static table lookup for host names
    Synopsis
    /etc/hosts
    thanks

    Since you're using a Macintosh, quit reviewing linux stuff. These, when entered in the Terminal app (inside /Applications/Utilities/) should point you in the right direction:
    *cat /etc/hosts*
    details in:
    *man hosts*
    FWIW, you should search the Unix forum (or post your query there) under OS X Technologies.

  • Using OSX 10.5 with DynDNS...how do I get the silly host info from ISP out

    Hi There,
    As I said, running an OSX server from home. Connects using DHCP so it pulls all the host info from the ISP. I'm using DynDNS for a domain I have registered. I can access the server from internet using my domain but how do I get all the host info from the ISP out of the system and just use the domain I have setup.
    Thanks in Advance,
    Jeremiah

    The following is from this Apple document, iCloud: Photo Stream FAQ, and will help you understand how Photo Stream works:
    My Photo Stream
    When you take photos on an iOS device, or import photos from your digital camera to your computer, My Photo Stream can automatically upload your new photos to iCloud and push them to all of your other devices. 
    When do photos upload to My Photo Stream?
    How long are My Photo Stream photos stored in iCloud?
    The photos you upload to My Photo Stream are stored in iCloud for 30 days to give your devices plenty of time to connect and download them.
    How many photos are stored in My Photo Stream on my devices and computers?
    iCloud pushes all your photos to the My Photo Stream album on your devices and computers, and manages them efficiently, so you don’t run out of storage space.
    Your iOS devices keep a rolling collection of your last 1000 photos in the My Photo Stream album. From there, you can browse your recent photos or move the ones you like to your Camera Roll or another album to keep them on your device forever.
    Since your Mac and PC have more storage than your iOS devices, you can choose to have all of your My Photo Stream photos automatically downloaded. In iPhoto or Aperture preferences on your Mac, be sure to select Photo Stream > My Photo Stream > Automatic Import. All of your photo stream photos will be imported into your Events, Projects, Photos, Faces, and Places folders in iPhoto or Aperture. On your PC with Photo Stream enabled in the Control Panel, all of your photos will be imported into C:\Users\<user name>\Pictures\Photo Stream\My Photo Stream.
    OT

  • How to detect whether the request is from Desktop or Mobile and redirect accordingly.

    Hi,
    I have 2 pages with alomost data, one(for mobile devices) page having only important highlights. I want to redirect to mobile devices page when the request is from mobile devices and to regular webpage when request is from desktop...
    How can I achieve this?
    Regards, Shreyas R S

    Hi Shreyas,
    Actually you know that this forum is to discuss the VS IDE usage, it seems that it is not the VS IDE issue.
    To help you find useful information or provide a
    more appropriate
    forum, would you mind letting us know more information about this issue? Which kind of app did you develop? Is it related to the Windows Phone development
    or others?
    If it is related to the windows Phone, this forum would be better.
    https://social.msdn.microsoft.com/forums/windowsapps/en-us/home?category=windowsapps
    If not, please let us know more information about the real issue.
    Best Regards,
    Jack
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How can I remove the Facebook Exporter Plugin (32-bit) designed for AP2?

    Now that I have A3 which has native ability to export to Facebook, I wanted to delete this plugin I have used and downloaded from the plugin page.
    This plugin does not create/provide a plugin that is supposed to reside in the Library/Application Support/Aperture/Plug-ins instead there is a package file and an installer; the developer who created this (and who according to post on his site) no longer is actively developing it.
    So it isn't an easy case of just removing the plugin from that directory.
    For those who use this plugin does anyone know how to remove it?

    Yes, it's stil in the export menu. I also had the flickr exporter that was developed by another developer and initially that was in the export menu as well in Aperture 3. I went to the plugins folder and removed the plugin then when I restarted Aperture the flickr plugin was removed (as expected).
    But this Facebook plugin never created a "plugin" per se (a spotlight search indicated some files with the extension ".h" in the Library/Frameworks folder but I'm not sure what that means...).
    Consequently there never was a plugin in the Plugin folder to delete, hence my dilemma.

  • How to know whether the installed Oracle is 32 bits(or 64 bits)?

    I have installed Oracle 8.1.6 on HP-UX 11(64 bits OS ), But I dont know whether the oracle is 64 bits.
    How can I get to know it?
    Thanks!
    null

    Hi, This is late though, but to let you know that Oracle 8.1.6 is 64-bits
    Duronke
    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by zhihui zu ([email protected]):
    I have installed Oracle 8.1.6 on HP-UX 11(64 bits OS ), But I dont know whether the oracle is 64 bits.
    How can I get to know it?
    Thanks!
    <HR></BLOCKQUOTE>
    null

  • How do I get the most of my 24 bit audio?

    We recently shot a project where all our audio was sent to digital recorders at 24 bit, 48k... when I import the files to Premiere there doesn't seem to be any issues, but I can't find settings when creating a new sequence that allows for 24 bit audio (just 12 and 16 bit). If anyone could help me understand the following I would greatly appreciate it:
    1. Are there settings for using 24 bit audio in a sequence? If so, where?
    2. If there are no 24 bit settings, does that mean my project refers to the original high quality file even though the sequence is set at 16 bit? Or is my 24 bit audio being modified to 16 bit when I drop it into the sequence?
    3. I guess the main question is: is it worth it for me to use 24 bit audio in my Premiere projects?
    Thank you for the help.
    Avery

    Hi,
    When working with *24bits in a *32 bits floating-point internal environment you have *8 extra bits (these are *wordlengths and have nothing to do with the sample frequency as stated above!) and gives you virtually a endless headroom ( even above 0 db on individual channels).
    But at the end (after the master and out of your soundcard that is ***16 or 24 bits) the wordlength gets changed (shortened from 32 to 24 or *** 16 bits)  and the sample frequency sampled down eventually as well,  the master output has to stay a *little under 0 db *depending of the type of sound.
    To answer your question: "It makes perfect sense to work with larger wordlenghts, because no matter you go down to 16 bits at the end, you have a much better sound quality and bigger headroom during mixing and at the end even when it's downsized  to 16 bits."
    ***16 bits in Premiere Pro
    David

  • How do I download the iTunes for Window 32-Bit version?

    My Computer is under Window 7 32-Bit version. I cannot found the latest 32-Bit version iTunes for my computer. Please somebody told me that the link for the 32-Bit version. THx

    Welcome to the Apple Support Communities
    http://www.apple.com/itunes/download

  • Detecting When a Non-Blocking Socket Is Closed by the Remote Host

    Hi,
    Using NIO non blocked sockets how do I detect when a Non-Blocking Socket Is Closed by the Remote Host?
    What I have read is:
    The only way to detect that the remote host has closed the connection is to attempt to read or write from the connection. If the remote host properly closed the connection, read() will return -1. If the connection was not terminated normally, read() and write() will throw an exception.
    I have written a server test program using NIO and an applet connecting to the server program via sockets.
    When I after a successful connection shuts down the browser following happens: The code below comes in an endless loop though mySelector.select returns 0 every time. (The selector is registered for OP_READ). size = 1.
    while (true) {
    int n = mySelector.select();
    int size = mySelector.keys().size();
    if (n == 0) continue;
    Is this an expected result?
    How do I get to know what client has lost connection?
    My environment:
    W2000
    java 1.4.1 build 1.4.1_01-b01
    Browser used: IE 5.0
    Many thanks for your help on this matter!
    Regards Magnus Wistr�m

    What you're doing looks OK to me.
    I wonder whether your thread is being interrupted by Thread.intterupt() somewhere. Try putting a Thread.interrupted() before the select call.
    Sylvia.

  • How to find the target host

    Hi All,
    I need to configure ADS for that I am following steps given in 'ADS configuration guide', according to 5.3.2 step 6 I need to enter the target host ( j2ee engine that runs adobe document services) and  service no. I am not able to find it.
    Can someone tell me how can we find the target host and service no.

    Hi All,
    I need to configure ADS for that I am following steps given in 'ADS configuration guide', according to 5.3.2 step 6 I need to enter the target host ( j2ee engine that runs adobe document services) and  service no. I am not able to find it.
    Can someone tell me how can we find the target host and service no.

  • How to detect the serial cable been unplugged

    Hi all,
    I wrote a small application using the javax.comm api to talk to an external device. I would like to know how to detect if the cable is unplugged. Right now, if I run the application with cable not connected, if i start communicate with the device, the program will hang.
    The program works fine with connection is there.
    Please help me.

    there are ways that do what he wants to do (though not what he says he wants to do), but they need to be implemented in hardware.
    You could monitor the voltage on some of the pins on the serial connection for example, which tells you whether there's a signal on the line.
    That of course would not detect whether the cable is there, as it has preconditions. It detects whether there's a signal on the cable, which requires that the systems on both ends of the cable are powered up and that the cable itself is not faulty.

Maybe you are looking for

  • Directory Listing in a JSP

    Hello, I try to list a directory in a JSP file, but I get this when I try it: "[Ljava.lang.String;@8e4805" My code is: <%  String userPath=request.getRealPath("users/"); File f = new File(userPath); String[] files = f.list(); for(int i=0; i<files.len

  • Format of flat file to load to ODS

    Good morning Please give me guidance in the following? 1) I will received this from the user and need to develop the ODS and thereafter use the target and payout % with sales figures in reporting:      Target                    <80%         =>80%    

  • Sub totals based off the value of a dimension

    Hi, I have a requirement to apply sub totals to a dimension at certain levels of a hierarchy. From what we've implemented, the typical Level-Based Hierarchy has been replaced by a Flat Hierarchy, so instead of accounts appearing at different levels a

  • HT204053 how can i lock my mac book computer if it is stolen

    I tried to locate my mac book computer on my icloud, but i have to registered the device it said open my mac book. how can i open that it was lost. I have my ipad but I cannot do my device. Please help us what to do.

  • Why do i have to pay for os x 10.8.4 update

    Just got new mac mini os x 10.8.3 software, gone online to update and had to pay for os x 10.8.4! Why