Diskpart /s outputs a list of commands


hi,

i'm having strange issues diskpart. i've used before /s option it's been while. i've come use again , it's outputting list of commands.

diskpart script file named "file.txt" , contains:
list disk
... , nothing else. no line breaks.

from command line (which starts in c:\users\username\documents) i've tried:

diskpart /s file.txt
(file in c:\users\username\documents)
copying file.txt l: drive.

diskpart /s l:\file.txt
diskpart /s "l:\file.txt"

i get:
active      - mark selected basic partition active.
add         - add mirror simple volume.
assign      - assign drive letter or mount point selected volume.
attributes  - manipulate volume or disk attributes.
automount   - enable , disable automatic mounting of basic volumes.
break       - break mirror set.
clean       - clear configuration information, or information, off disk.
convert     - convert between different disk formats.
create      - create volume or partition.
delete      - delete object.
detail      - provide details object.
exit        - exit diskpart.
extend      - extend volume.
filesystems - display current , supported file systems on volume.
format      - format volume or partition.
gpt         - assign attributes selected gpt partition.
help        - display list of commands.
import      - import disk group.
inactive    - mark selected basic partition inactive.
list        - display list of objects.
online      - online object marked offline.
offline     - offline object marked online.
recover     - refreshes state of disks in selected pack.
              attempts recovery on disks in invalid pack, and
              resynchronizes mirrored volumes , raid5 volumes
              have stale plex or parity data.
rem         - nothing. used comment scripts.
remove      - remove drive letter or mount point assignment.
repair      - repair raid-5 volume failed member.
rescan      - rescan computer looking disks , volumes.
retain      - place retained partition under simple volume.
san         - display or set san policy booted os.
select      - shift focus object.
setid       - change partition type.
shrink      - reduce size of selected volume.
uniqueid    - displays or sets guid partition table (gpt) identifier or master boot record (mbr) signature of disk.

windows server 2008 x64
diskpart version 6.0.6002

i'm sure worked without issue before. appreciated!

nevermind. have found workaround calling queries diskpart invoke-command.


Windows Server  >  Windows Server General Forum



Comments

Popular posts from this blog

Error: 0x80073701 when trying to add Print Services Role in Windows 2012 Standard

Disconnecting from a Windows Server 2012 R2 file sharing session on a Windows 7,8,10 machine

Event ID 64,77,1008 Certificates Events Windows Server 2008, 2008R2