-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disk (MSFT_Disk): Opens Format Window #171
Comments
Looks like this was a similar issue to: #148
This will still bring up a prompt but allow the actual progress to be "tracked" within the CLI |
I have noticed this during integration tests and should be resolved if possible - although it doesn't seem to cause a failure. It should be easy enough to fix using your suggested code. I've got one PR going through at the moment so I'll include your code after that (unless you want to submit a PR?) . |
(For the PR) - Whatever works easiest for you :) I ran some other tests and noticed that if you set it with the
it will still show you a pop up stating the disk needs to be formatted. I even got it to state there was an error trying to format the drive and I didn't have the privileges to run that command, even though you can see it still running in the background with the The drive seems fine afterwards as well. Not sure if its a |
Using The GUI that pops up, isn't that just the GUI is to quick to find the disk will it still isn't reported as formatted? Isn't it a GUI "bug" and not a problem with running the cmdlets? 🤔 |
I am currently using "Thick" provisioning for my VM's so I think But I'm betting to help those who do not use "Thick" provisioning there should be the option to turn it "on/off"
You can add in the UPDATES:
If you add in a
This also seems to handle it correctly as well:
|
Disk (MSFT_Disk): Opens Format Window - and not in the CLI
Details
When Running the above script the verbose output returns no error messages and finishes cleanly however the "Formatting Disk (E:)" window is opened upon "completion" of the other operations. This forces you to still select formatting options through the GUI instead of remain on the CLI
If you run the below cmdlets it all runs within the CLI.
Verbose Output
Clean output no errors.
Suggested solution to the issue
Adding something like this to the "Default NTFS option"
or this...
The DSC configuration that is used to reproduce the issue (as detailed as possible)
If I look at the source code it shows:
So it should return soimething like this if we "break out" the params from
@volparams
$volume = $partition | Format-Volume -NewFileSystemLabel 'Data' -FileSystem NTFS
But it does not have the
-Force
or-Full
params, which I believe are the options that enforce the process to remain within the CLIThe operating system the target node is running
OsName : Microsoft Windows Server 2016 Datacenter
OsOperatingSystemSKU : DatacenterServerEdition
WindowsBuildLabEx : 14393.0.amd64fre.rs1_release.160715-1616
OsLanguage : en-US
OsMuiLanguages : {en-US}
Version and build of PowerShell the target node is running
PSVersion: 5.1.14393.0
PSEdition: Desktop
PSCompatibleVersions: {1.0, 2.0, 3.0, 4.0...}
BuildVersion: 10.0.14393.0
CLRVersion: 4.0.30319.42000
WSManStackVersion: 3.0
PSRemotingProtocolVersion: 2.3
SerializationVersion: 1.1.0.1
Version of the DSC module that was used ('dev' if using current dev branch)
Master
The text was updated successfully, but these errors were encountered: