PoshCode

My feedback

  1. 17 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    5 comments  ·  PowerShell » Microsoft.PowerShell.* Modules  ·  Flag idea as inappropriate…  ·  Admin →
    PoshCode commented  · 

    I do concur. TCPDump is an awesome and fast tool! Even MacOSX includes tcpdump. I find that installing MS Message ANALyzer is not without its pesky problems (read the release notes...). MS ANALyzer is just an additional layer of bloatware/spyware/MS-PhoneHome rubbish IMHO. Wireshark is decent, when used as tshark.exe on the cmd line.

    I use netsh.exe trace for some of my Windows 'tcpdumping'

    I presume that tcpdump is just too 'UNIXish' to port to Windows directly; although Wireshark is based on tcpdump/ethereal I believe.

    PoshCode supported this idea  · 
  2. 5 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    2 comments  ·  PowerShell » Microsoft.PowerShell.* Modules  ·  Flag idea as inappropriate…  ·  Admin →
    PoshCode supported this idea  · 
    PoshCode commented  · 

    How did you create the file: ??? With which command/application ???

    D:\aaaaaaaaaabbbbbbbbbbccccccccccddddddddddeeeeeeeeeeffffffffffgggggggggghhhhhhhhhhiiiiiiiiiijjjjjjjjjjkkkkkkkkkkllllllllllmmmmmmmmmmnnnnnnnnnnooooooooooppppppppppqqqqqqqqqqrrrrrrrrrrssssssssssttttttttttuuuuuuuuuuvvvvvvvvvvwwwwwwwwwwxxxxxxxxxxyyyyyyyyyyzzzzzzzzzz.txt

    I keep getting ERROR :

    New-Item : The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name
    must be less than 248 characters.

    Notepad.exe -----> SaveAs = Error The PATH too long! Try a shorter PATH!

    Could someone plz lend me a lampe so that I may 'lighten' my PATH... :P

  3. 3 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    3 comments  ·  PowerShell » PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
    PoshCode supported this idea  · 
    PoshCode commented  · 

    -ImagePath <String[]>
    Specifies the path of the VHD or ISO file.

    Required? true
    Position? 1
    Default value
    Accept pipeline input? True (ByValue, ByPropertyName)
    Accept wildcard characters? false

    ************************************************

    -ImagePath accepts a [System.String]

    ************************************************

    Maybe try this: (Works for me in PowerShell 5.1)

    $myiso = Get-Item -Path E:\MyISO.iso | Select -ExpandProperty FullName
    Mount-DiskImage -ImagePath "$myiso" -StorageType ISO -Access ReadOnly

    Perhaps need to use double quotes for variable. Or maybe force cast to [System.String]
    I dunno...

    Cheers!

    -- His wit's as thick as a Tewkesbury mustard. :P

  4. 3 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    1 comment  ·  PowerShell » Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
    PoshCode supported this idea  · 
    PoshCode commented  · 

    Use Clear-DiskStructure in PS module DeployImage. Otherwise use diskpart.exe. (See "clean" command via help)

    If all else fails, use: (On GNU+Linux not Cygwin!)

    # dd if=/dev/zero of=/dev/sdx bs=8b count=128

    or even better...

    [this will write (psudo)random gibberish to disk]
    # dd if=/dev/urandom of=/dev/sdx bs=8b conv=notrunc

    then do:

    [this will zero reset all the bits !] (bs=8b is way too long though for a large disk... so I sometimes use bs=1024)
    # dd if=/dev/zero of=/dev/sdx bs=8b conv=notrunc

    where "/dev/sdx" is your Hard-Disk node (/dev/sda, /dev/sdb, /dev/sdc, etc...Use blkid or dmesg to find your disk node. Carefull! this will wipe your disk!!!).

    # If you're concerned about spies taking the platters out of your hard drive,
    # and scanning them using superconducting quantum-interference detectors,
    # use this script for US Government DoD approved secure hard disk erasure.
    #
    # Source: http://www.linuxquestions.org

    for n in `seq 7`; do dd if=/dev/urandom of=/dev/sdx bs=8b conv=notrunc; done

  5. 1 vote
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  PowerShell » Microsoft.PowerShell.* Modules  ·  Flag idea as inappropriate…  ·  Admin →
    PoshCode shared this idea  · 

Feedback and Knowledge Base