Mount-VHD
"D:\FILENAME.vhdx"
Assuming D is the
drive letter the VHDX file mounts to:
defrag
d: /x /u /v
defrag
d: /k /l /u /v
defrag
d: /x /u /v
defrag
d: /k /u /v
Dismount-VHD
"D:\FILENAME.vhdx"
Optimize-VHD
"D:\FILENAME.vhdx" -Mode Full
After that the file should be compacted to the smallest size it can be.
--
You received this message because you are subscribed to the Google Groups "ntsysadmin" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ntsysadmin+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ntsysadmin/910acdc7-5871-40b3-8fb8-7a32bc2ef667n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ntsysadmin/CAAfzEuy3dKzcebi5b5e60i_cjmVPs5mbOJ1TJQqLfVx1%3DzyXEw%40mail.gmail.com.
Charlie Sullivan
Principal Windows Systems Administrator
Boston College
197 Foster St. Room 367
Brighton, MA 02135
To view this discussion on the web visit https://groups.google.com/d/msgid/ntsysadmin/ba161573-2e63-482c-8314-ecd65681279an%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ntsysadmin/CAAfzEuyt7FCFgsEYfU6yGYrADOprjj9A%3D%3DwDOkbHVT7oj7XHDw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ntsysadmin/CAGaCHK74iocWGa%3DtR19FdhWiyg-nwaH1LPMb9zPkS5a9SceaWA%40mail.gmail.com.
Not specific to but related: BeyondCompare by www.scootersoftware.com.
RunAsAdmin and it will copy permissions. Now, I don’t know if it will do ReFS to NTFS but it’s worth a shot.
We use it for all of our point to point data migrations because it’s multi-threaded, it tracks changes/errors, and it has a decent GUI.
Philip Elder MCTS
Microsoft High Availability MVP
E-mail: Phili...@mpecsinc.ca
Phone: +1 (780) 458-2028
Web: www.mpecsinc.com
Cloud: www.CanadianCloudWorx.com
Blog: blog.mpecsinc.com
Twitter: Twitter.com/MPECSInc
Skype: MPECSInc.
Please note: Although we may sometimes respond to email, text and phone calls instantly at all hours of the day, our regular business hours are 8:00 AM - 5:00 PM, Monday thru Friday.
From: ntsys...@googlegroups.com <ntsys...@googlegroups.com>
On Behalf Of Adam Marshall
Sent: March 1, 2021 14:30
To: ntsysadmin <ntsys...@googlegroups.com>
Subject: Re: [ntsysadmin] RoboCopy Ownership from ReFS to NTFS
I forgot to mention, I've tried /COPY:DATSOU which is what /COPYALL is equivalent to. Tried again by renaming the folder and running it with
To view this discussion on the web visit https://groups.google.com/d/msgid/ntsysadmin/ba161573-2e63-482c-8314-ecd65681279an%40googlegroups.com.
THANK YOU GUYS!
Phillip, your guidance hit me in the head. I had been running this as an admin account, but NOT elevated. (I'm sure it has to do with setting the permissions locally as I have full rights to the network share)
I right clicked, Run As Admin on my batch script and using
ROBOCOPY %SOURCE% %DESTINATION% /COPYALL /SECFIX /MIR /R:10 /W:10 /NP /Z /mt:96 /LOG+:%LOG%
It works!
It probably works with my original robocopy command (I'll try that too). I'll write some code into the batch that forces running in elevated permission. Normally I self document everything, so I'm not sure how this part was missed.
What a DUH! moment.
--
You received this message because you are subscribed to a topic in the Google Groups "ntsysadmin" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ntsysadmin/H4BroG3xDfU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ntsysadmin+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ntsysadmin/a8ba1eb493a74fed9e7003ed31d8226d%40MPECSInc.Ca.
REM Administrative permissions required. Detecting permissions...
NET SESSION >nul 2>&1
IF %errorLevel% == 0 (
ECHO Success: Administrative permissions confirmed.
) ELSE (
ECHO Failure: Current permissions inadequate.
ECHO PLEASE RUN AS ADMINISTRATOR.
GOTO :SCRIPT_END
)
ECHO RUNNING AS ADMINISTRATOR.
--
You received this message because you are subscribed to the Google Groups "ntsysadmin" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ntsysadmin+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ntsysadmin/CAHBr%2B%2BhhEnv4nH70QHnHwjSZqAdmVnxWZFS4n5QGhmrUj6Fn_g%40mail.gmail.com.
NET SESSION>NUL 2>&1
IF [%ERRORLEVEL%] EQU [0] (
ECHO.
ECHO * You must NOT run this script with Administrator privileges.
ECHO.
PAUSE
GOTO :END
)
To view this discussion on the web visit https://groups.google.com/d/msgid/ntsysadmin/CAPGALdiZih4JtcuYaNJTTQ51M5gTO-fKaTEe001eXeE79h4o4g%40mail.gmail.com.