Prakash Jha

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • in reply to: Want to delete specific range of characters from a file name #193012
    Participant
    Topics: 2
    Replies: 4
    Points: 50
    Rank: Member

    Does this serve your purpose ?

    ($string.Replace(“20191110_”,””)).Replace(“20191210″,””)

    FTMR_2019121_20190112

    in reply to: WMI: Get default printer information #171889
    Participant
    Topics: 2
    Replies: 4
    Points: 50
    Rank: Member

    Hi,

    It may be possible that there is no default printer set on the Remote computer, that is why it is returning all FALSE.

    You can use a filter to only return printer where the DEFAULT attribute is set to TRUE.

    Get-CimInstance -ClassName Win32_Printer -Filter “Default=True”

    in reply to: Incorrect Output Format #74407
    Participant
    Topics: 2
    Replies: 4
    Points: 50
    Rank: Member

    Thank you Olaf! I had forgotten about ordered dictionary.

    @ Don : Great explanation. While ordered dictionary will take care of my short term requirement, I will work on Option A/Option B as the long term solution.

    in reply to: Incorrect Output Format #74218
    Participant
    Topics: 2
    Replies: 4
    Points: 50
    Rank: Member

    Aah… The Don himself. 🙂
    I want it to appear in the way i defined my Hash table, beginning with Cluster name and Cluster domain name.
    Why are the rows/objects being moved around arbitrarily?

Viewing 4 posts - 1 through 4 (of 4 total)