Creating a Windows Restore Point?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}
So I have this code, and am running into some issues that I haven't so far been able to sort out:
Anywhere there are Parameters, i.e. "CreateRestorePoint", or the inParams params, I get the green squiggly underline that says to use (ex.) "NameOf(CreateRestorePoint) instead of specifying the program element name".
However, whether I do so or leave it, I get the same error:
System.ArgumentOutOfRangeException: 'Specified argument was out of the range of valid values. Parameter name: path'
The code:
Public Function CreateRestorePoint(Description As String, EventType As Integer, RestorePointType As Integer) As Integer
Try
Dim classInstance As New ManagementObject("rootDEFAULT", "SystemRestore", Nothing)
' Obtain [in] parameters for the method
Dim inParams As ManagementBaseObject = classInstance.GetMethodParameters("CreateRestorePoint")
' Add the input parameters
inParams("Description") = Description
inParams("EventType") = EventType
inParams("RestorePointType") = RestorePointType
' Execute the method and obtain the return values
Dim outParams As ManagementBaseObject = classInstance.InvokeMethod("CreateRestorePoint", inParams, Nothing)
' List outParams
Debug.Print("Out parameters: ")
Debug.Print("ReturnValue: {0}", outParams("ReturnValue"))
CreateRestorePoint = 1
Catch err As ManagementException
Debug.Print(String.Format("An error occurred while trying to execute the WMI method: {0}", err.Message))
End Try
Return CreateRestorePoint
End Function
Here's how I'm calling the function:
Dim CRP As New JSEWindowsRestore.WindowsRestoreFunctions
CRP.CreateRestorePoint(String.Format("Test Restore Point: {0}", DateTime.Now), 100, 12)
Anyone spot the problem?
vb.net wmi
add a comment |
So I have this code, and am running into some issues that I haven't so far been able to sort out:
Anywhere there are Parameters, i.e. "CreateRestorePoint", or the inParams params, I get the green squiggly underline that says to use (ex.) "NameOf(CreateRestorePoint) instead of specifying the program element name".
However, whether I do so or leave it, I get the same error:
System.ArgumentOutOfRangeException: 'Specified argument was out of the range of valid values. Parameter name: path'
The code:
Public Function CreateRestorePoint(Description As String, EventType As Integer, RestorePointType As Integer) As Integer
Try
Dim classInstance As New ManagementObject("rootDEFAULT", "SystemRestore", Nothing)
' Obtain [in] parameters for the method
Dim inParams As ManagementBaseObject = classInstance.GetMethodParameters("CreateRestorePoint")
' Add the input parameters
inParams("Description") = Description
inParams("EventType") = EventType
inParams("RestorePointType") = RestorePointType
' Execute the method and obtain the return values
Dim outParams As ManagementBaseObject = classInstance.InvokeMethod("CreateRestorePoint", inParams, Nothing)
' List outParams
Debug.Print("Out parameters: ")
Debug.Print("ReturnValue: {0}", outParams("ReturnValue"))
CreateRestorePoint = 1
Catch err As ManagementException
Debug.Print(String.Format("An error occurred while trying to execute the WMI method: {0}", err.Message))
End Try
Return CreateRestorePoint
End Function
Here's how I'm calling the function:
Dim CRP As New JSEWindowsRestore.WindowsRestoreFunctions
CRP.CreateRestorePoint(String.Format("Test Restore Point: {0}", DateTime.Now), 100, 12)
Anyone spot the problem?
vb.net wmi
Which line does the error happen on?
– Andrew Morton
Nov 24 '18 at 15:35
add a comment |
So I have this code, and am running into some issues that I haven't so far been able to sort out:
Anywhere there are Parameters, i.e. "CreateRestorePoint", or the inParams params, I get the green squiggly underline that says to use (ex.) "NameOf(CreateRestorePoint) instead of specifying the program element name".
However, whether I do so or leave it, I get the same error:
System.ArgumentOutOfRangeException: 'Specified argument was out of the range of valid values. Parameter name: path'
The code:
Public Function CreateRestorePoint(Description As String, EventType As Integer, RestorePointType As Integer) As Integer
Try
Dim classInstance As New ManagementObject("rootDEFAULT", "SystemRestore", Nothing)
' Obtain [in] parameters for the method
Dim inParams As ManagementBaseObject = classInstance.GetMethodParameters("CreateRestorePoint")
' Add the input parameters
inParams("Description") = Description
inParams("EventType") = EventType
inParams("RestorePointType") = RestorePointType
' Execute the method and obtain the return values
Dim outParams As ManagementBaseObject = classInstance.InvokeMethod("CreateRestorePoint", inParams, Nothing)
' List outParams
Debug.Print("Out parameters: ")
Debug.Print("ReturnValue: {0}", outParams("ReturnValue"))
CreateRestorePoint = 1
Catch err As ManagementException
Debug.Print(String.Format("An error occurred while trying to execute the WMI method: {0}", err.Message))
End Try
Return CreateRestorePoint
End Function
Here's how I'm calling the function:
Dim CRP As New JSEWindowsRestore.WindowsRestoreFunctions
CRP.CreateRestorePoint(String.Format("Test Restore Point: {0}", DateTime.Now), 100, 12)
Anyone spot the problem?
vb.net wmi
So I have this code, and am running into some issues that I haven't so far been able to sort out:
Anywhere there are Parameters, i.e. "CreateRestorePoint", or the inParams params, I get the green squiggly underline that says to use (ex.) "NameOf(CreateRestorePoint) instead of specifying the program element name".
However, whether I do so or leave it, I get the same error:
System.ArgumentOutOfRangeException: 'Specified argument was out of the range of valid values. Parameter name: path'
The code:
Public Function CreateRestorePoint(Description As String, EventType As Integer, RestorePointType As Integer) As Integer
Try
Dim classInstance As New ManagementObject("rootDEFAULT", "SystemRestore", Nothing)
' Obtain [in] parameters for the method
Dim inParams As ManagementBaseObject = classInstance.GetMethodParameters("CreateRestorePoint")
' Add the input parameters
inParams("Description") = Description
inParams("EventType") = EventType
inParams("RestorePointType") = RestorePointType
' Execute the method and obtain the return values
Dim outParams As ManagementBaseObject = classInstance.InvokeMethod("CreateRestorePoint", inParams, Nothing)
' List outParams
Debug.Print("Out parameters: ")
Debug.Print("ReturnValue: {0}", outParams("ReturnValue"))
CreateRestorePoint = 1
Catch err As ManagementException
Debug.Print(String.Format("An error occurred while trying to execute the WMI method: {0}", err.Message))
End Try
Return CreateRestorePoint
End Function
Here's how I'm calling the function:
Dim CRP As New JSEWindowsRestore.WindowsRestoreFunctions
CRP.CreateRestorePoint(String.Format("Test Restore Point: {0}", DateTime.Now), 100, 12)
Anyone spot the problem?
vb.net wmi
vb.net wmi
edited Nov 25 '18 at 22:01
J. Scott Elblein
asked Nov 24 '18 at 14:45
J. Scott ElbleinJ. Scott Elblein
1,03932144
1,03932144
Which line does the error happen on?
– Andrew Morton
Nov 24 '18 at 15:35
add a comment |
Which line does the error happen on?
– Andrew Morton
Nov 24 '18 at 15:35
Which line does the error happen on?
– Andrew Morton
Nov 24 '18 at 15:35
Which line does the error happen on?
– Andrew Morton
Nov 24 '18 at 15:35
add a comment |
1 Answer
1
active
oldest
votes
Everything looks pretty good. The only thing that you need to change is ManagementObject in the first couple lines to ManagementClass.
Dim classInstance As New ManagementClass("rootDEFAULT", "SystemRestore", Nothing)
ManagementObject refers to an instance of a class and ManagementClass refers to the class itself. The path error you were receiving was because the code was expecting a path to an instance and not a class itself.
As for the green squiggly lines, they shouldn't prevent you from compiling but its possible Visual Studio will like this syntax better.
inParams.Properties("Description").Value = Description
inParams.Properties("EventType").Value = EventType
inParams.Properties("RestorePointType").Value = RestorePointType
Also, make sure the application has administrator privileges or you'll get an access denied when you try to invoke this method.
1
Why a downvote here? This information is correct. Possibly partial, nonetheless this is the direct problem with the OP's code.
– Jimi
Nov 24 '18 at 17:15
1
It could be added that is possibly necessary to set a ConnectionOptions object, defining the access privileges and the impersonation type. The call will then beDim conOptions As ConnectionOptions = New ConnectionOptions() conOptions.EnablePrivileges = True conOptions.Authentication = Management.AuthenticationLevel.PacketPrivacy Dim classInstance As New ManagementClass("rootDEFAULT", "SystemRestore", New ObjectGetOptions(conOptions.Context))
– Jimi
Nov 24 '18 at 17:22
1
@J. Scott Elblein This usually means that your Volume Shadow Copies (VSS) service and/or Microsoft Software Shadow Copy Provider (swprv) is/are not running or runnable.
– Jimi
Nov 25 '18 at 14:21
1
It wont work which I knew already, theres more to do than the posted solution starting with Win8... I myself have a solution, but figuring out the second part has been a nitemare... It has to do with creating a reg key. The following will apply by default if the key does not exist. If an application calls the CreateRestorePoint method to create a restore point, Windows skips creating this new restore point if any restore points have been created in the last 24 hours. The CreateRestorePoint method returns S_OK. docs.microsoft.com/en-us/windows/desktop/sr/…
– Çöđěxěŕ
Nov 25 '18 at 19:43
1
IMHO theres much info missing, as I mentioned I have a solution that runs, but the second part I havent got down just yet, I want to provide a full solution as you're going to run into it either way... Also to confirm that Volume Shadow Copies (VSS) , is on, manually create a backup, if it works its on...
– Çöđěxěŕ
Nov 25 '18 at 19:47
|
show 6 more comments
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53459308%2fcreating-a-windows-restore-point%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Everything looks pretty good. The only thing that you need to change is ManagementObject in the first couple lines to ManagementClass.
Dim classInstance As New ManagementClass("rootDEFAULT", "SystemRestore", Nothing)
ManagementObject refers to an instance of a class and ManagementClass refers to the class itself. The path error you were receiving was because the code was expecting a path to an instance and not a class itself.
As for the green squiggly lines, they shouldn't prevent you from compiling but its possible Visual Studio will like this syntax better.
inParams.Properties("Description").Value = Description
inParams.Properties("EventType").Value = EventType
inParams.Properties("RestorePointType").Value = RestorePointType
Also, make sure the application has administrator privileges or you'll get an access denied when you try to invoke this method.
1
Why a downvote here? This information is correct. Possibly partial, nonetheless this is the direct problem with the OP's code.
– Jimi
Nov 24 '18 at 17:15
1
It could be added that is possibly necessary to set a ConnectionOptions object, defining the access privileges and the impersonation type. The call will then beDim conOptions As ConnectionOptions = New ConnectionOptions() conOptions.EnablePrivileges = True conOptions.Authentication = Management.AuthenticationLevel.PacketPrivacy Dim classInstance As New ManagementClass("rootDEFAULT", "SystemRestore", New ObjectGetOptions(conOptions.Context))
– Jimi
Nov 24 '18 at 17:22
1
@J. Scott Elblein This usually means that your Volume Shadow Copies (VSS) service and/or Microsoft Software Shadow Copy Provider (swprv) is/are not running or runnable.
– Jimi
Nov 25 '18 at 14:21
1
It wont work which I knew already, theres more to do than the posted solution starting with Win8... I myself have a solution, but figuring out the second part has been a nitemare... It has to do with creating a reg key. The following will apply by default if the key does not exist. If an application calls the CreateRestorePoint method to create a restore point, Windows skips creating this new restore point if any restore points have been created in the last 24 hours. The CreateRestorePoint method returns S_OK. docs.microsoft.com/en-us/windows/desktop/sr/…
– Çöđěxěŕ
Nov 25 '18 at 19:43
1
IMHO theres much info missing, as I mentioned I have a solution that runs, but the second part I havent got down just yet, I want to provide a full solution as you're going to run into it either way... Also to confirm that Volume Shadow Copies (VSS) , is on, manually create a backup, if it works its on...
– Çöđěxěŕ
Nov 25 '18 at 19:47
|
show 6 more comments
Everything looks pretty good. The only thing that you need to change is ManagementObject in the first couple lines to ManagementClass.
Dim classInstance As New ManagementClass("rootDEFAULT", "SystemRestore", Nothing)
ManagementObject refers to an instance of a class and ManagementClass refers to the class itself. The path error you were receiving was because the code was expecting a path to an instance and not a class itself.
As for the green squiggly lines, they shouldn't prevent you from compiling but its possible Visual Studio will like this syntax better.
inParams.Properties("Description").Value = Description
inParams.Properties("EventType").Value = EventType
inParams.Properties("RestorePointType").Value = RestorePointType
Also, make sure the application has administrator privileges or you'll get an access denied when you try to invoke this method.
1
Why a downvote here? This information is correct. Possibly partial, nonetheless this is the direct problem with the OP's code.
– Jimi
Nov 24 '18 at 17:15
1
It could be added that is possibly necessary to set a ConnectionOptions object, defining the access privileges and the impersonation type. The call will then beDim conOptions As ConnectionOptions = New ConnectionOptions() conOptions.EnablePrivileges = True conOptions.Authentication = Management.AuthenticationLevel.PacketPrivacy Dim classInstance As New ManagementClass("rootDEFAULT", "SystemRestore", New ObjectGetOptions(conOptions.Context))
– Jimi
Nov 24 '18 at 17:22
1
@J. Scott Elblein This usually means that your Volume Shadow Copies (VSS) service and/or Microsoft Software Shadow Copy Provider (swprv) is/are not running or runnable.
– Jimi
Nov 25 '18 at 14:21
1
It wont work which I knew already, theres more to do than the posted solution starting with Win8... I myself have a solution, but figuring out the second part has been a nitemare... It has to do with creating a reg key. The following will apply by default if the key does not exist. If an application calls the CreateRestorePoint method to create a restore point, Windows skips creating this new restore point if any restore points have been created in the last 24 hours. The CreateRestorePoint method returns S_OK. docs.microsoft.com/en-us/windows/desktop/sr/…
– Çöđěxěŕ
Nov 25 '18 at 19:43
1
IMHO theres much info missing, as I mentioned I have a solution that runs, but the second part I havent got down just yet, I want to provide a full solution as you're going to run into it either way... Also to confirm that Volume Shadow Copies (VSS) , is on, manually create a backup, if it works its on...
– Çöđěxěŕ
Nov 25 '18 at 19:47
|
show 6 more comments
Everything looks pretty good. The only thing that you need to change is ManagementObject in the first couple lines to ManagementClass.
Dim classInstance As New ManagementClass("rootDEFAULT", "SystemRestore", Nothing)
ManagementObject refers to an instance of a class and ManagementClass refers to the class itself. The path error you were receiving was because the code was expecting a path to an instance and not a class itself.
As for the green squiggly lines, they shouldn't prevent you from compiling but its possible Visual Studio will like this syntax better.
inParams.Properties("Description").Value = Description
inParams.Properties("EventType").Value = EventType
inParams.Properties("RestorePointType").Value = RestorePointType
Also, make sure the application has administrator privileges or you'll get an access denied when you try to invoke this method.
Everything looks pretty good. The only thing that you need to change is ManagementObject in the first couple lines to ManagementClass.
Dim classInstance As New ManagementClass("rootDEFAULT", "SystemRestore", Nothing)
ManagementObject refers to an instance of a class and ManagementClass refers to the class itself. The path error you were receiving was because the code was expecting a path to an instance and not a class itself.
As for the green squiggly lines, they shouldn't prevent you from compiling but its possible Visual Studio will like this syntax better.
inParams.Properties("Description").Value = Description
inParams.Properties("EventType").Value = EventType
inParams.Properties("RestorePointType").Value = RestorePointType
Also, make sure the application has administrator privileges or you'll get an access denied when you try to invoke this method.
edited Nov 24 '18 at 20:02
answered Nov 24 '18 at 16:41
Paul GPaul G
49639
49639
1
Why a downvote here? This information is correct. Possibly partial, nonetheless this is the direct problem with the OP's code.
– Jimi
Nov 24 '18 at 17:15
1
It could be added that is possibly necessary to set a ConnectionOptions object, defining the access privileges and the impersonation type. The call will then beDim conOptions As ConnectionOptions = New ConnectionOptions() conOptions.EnablePrivileges = True conOptions.Authentication = Management.AuthenticationLevel.PacketPrivacy Dim classInstance As New ManagementClass("rootDEFAULT", "SystemRestore", New ObjectGetOptions(conOptions.Context))
– Jimi
Nov 24 '18 at 17:22
1
@J. Scott Elblein This usually means that your Volume Shadow Copies (VSS) service and/or Microsoft Software Shadow Copy Provider (swprv) is/are not running or runnable.
– Jimi
Nov 25 '18 at 14:21
1
It wont work which I knew already, theres more to do than the posted solution starting with Win8... I myself have a solution, but figuring out the second part has been a nitemare... It has to do with creating a reg key. The following will apply by default if the key does not exist. If an application calls the CreateRestorePoint method to create a restore point, Windows skips creating this new restore point if any restore points have been created in the last 24 hours. The CreateRestorePoint method returns S_OK. docs.microsoft.com/en-us/windows/desktop/sr/…
– Çöđěxěŕ
Nov 25 '18 at 19:43
1
IMHO theres much info missing, as I mentioned I have a solution that runs, but the second part I havent got down just yet, I want to provide a full solution as you're going to run into it either way... Also to confirm that Volume Shadow Copies (VSS) , is on, manually create a backup, if it works its on...
– Çöđěxěŕ
Nov 25 '18 at 19:47
|
show 6 more comments
1
Why a downvote here? This information is correct. Possibly partial, nonetheless this is the direct problem with the OP's code.
– Jimi
Nov 24 '18 at 17:15
1
It could be added that is possibly necessary to set a ConnectionOptions object, defining the access privileges and the impersonation type. The call will then beDim conOptions As ConnectionOptions = New ConnectionOptions() conOptions.EnablePrivileges = True conOptions.Authentication = Management.AuthenticationLevel.PacketPrivacy Dim classInstance As New ManagementClass("rootDEFAULT", "SystemRestore", New ObjectGetOptions(conOptions.Context))
– Jimi
Nov 24 '18 at 17:22
1
@J. Scott Elblein This usually means that your Volume Shadow Copies (VSS) service and/or Microsoft Software Shadow Copy Provider (swprv) is/are not running or runnable.
– Jimi
Nov 25 '18 at 14:21
1
It wont work which I knew already, theres more to do than the posted solution starting with Win8... I myself have a solution, but figuring out the second part has been a nitemare... It has to do with creating a reg key. The following will apply by default if the key does not exist. If an application calls the CreateRestorePoint method to create a restore point, Windows skips creating this new restore point if any restore points have been created in the last 24 hours. The CreateRestorePoint method returns S_OK. docs.microsoft.com/en-us/windows/desktop/sr/…
– Çöđěxěŕ
Nov 25 '18 at 19:43
1
IMHO theres much info missing, as I mentioned I have a solution that runs, but the second part I havent got down just yet, I want to provide a full solution as you're going to run into it either way... Also to confirm that Volume Shadow Copies (VSS) , is on, manually create a backup, if it works its on...
– Çöđěxěŕ
Nov 25 '18 at 19:47
1
1
Why a downvote here? This information is correct. Possibly partial, nonetheless this is the direct problem with the OP's code.
– Jimi
Nov 24 '18 at 17:15
Why a downvote here? This information is correct. Possibly partial, nonetheless this is the direct problem with the OP's code.
– Jimi
Nov 24 '18 at 17:15
1
1
It could be added that is possibly necessary to set a ConnectionOptions object, defining the access privileges and the impersonation type. The call will then be
Dim conOptions As ConnectionOptions = New ConnectionOptions() conOptions.EnablePrivileges = True conOptions.Authentication = Management.AuthenticationLevel.PacketPrivacy Dim classInstance As New ManagementClass("rootDEFAULT", "SystemRestore", New ObjectGetOptions(conOptions.Context))– Jimi
Nov 24 '18 at 17:22
It could be added that is possibly necessary to set a ConnectionOptions object, defining the access privileges and the impersonation type. The call will then be
Dim conOptions As ConnectionOptions = New ConnectionOptions() conOptions.EnablePrivileges = True conOptions.Authentication = Management.AuthenticationLevel.PacketPrivacy Dim classInstance As New ManagementClass("rootDEFAULT", "SystemRestore", New ObjectGetOptions(conOptions.Context))– Jimi
Nov 24 '18 at 17:22
1
1
@J. Scott Elblein This usually means that your Volume Shadow Copies (VSS) service and/or Microsoft Software Shadow Copy Provider (swprv) is/are not running or runnable.
– Jimi
Nov 25 '18 at 14:21
@J. Scott Elblein This usually means that your Volume Shadow Copies (VSS) service and/or Microsoft Software Shadow Copy Provider (swprv) is/are not running or runnable.
– Jimi
Nov 25 '18 at 14:21
1
1
It wont work which I knew already, theres more to do than the posted solution starting with Win8... I myself have a solution, but figuring out the second part has been a nitemare... It has to do with creating a reg key. The following will apply by default if the key does not exist. If an application calls the CreateRestorePoint method to create a restore point, Windows skips creating this new restore point if any restore points have been created in the last 24 hours. The CreateRestorePoint method returns S_OK. docs.microsoft.com/en-us/windows/desktop/sr/…
– Çöđěxěŕ
Nov 25 '18 at 19:43
It wont work which I knew already, theres more to do than the posted solution starting with Win8... I myself have a solution, but figuring out the second part has been a nitemare... It has to do with creating a reg key. The following will apply by default if the key does not exist. If an application calls the CreateRestorePoint method to create a restore point, Windows skips creating this new restore point if any restore points have been created in the last 24 hours. The CreateRestorePoint method returns S_OK. docs.microsoft.com/en-us/windows/desktop/sr/…
– Çöđěxěŕ
Nov 25 '18 at 19:43
1
1
IMHO theres much info missing, as I mentioned I have a solution that runs, but the second part I havent got down just yet, I want to provide a full solution as you're going to run into it either way... Also to confirm that Volume Shadow Copies (VSS) , is on, manually create a backup, if it works its on...
– Çöđěxěŕ
Nov 25 '18 at 19:47
IMHO theres much info missing, as I mentioned I have a solution that runs, but the second part I havent got down just yet, I want to provide a full solution as you're going to run into it either way... Also to confirm that Volume Shadow Copies (VSS) , is on, manually create a backup, if it works its on...
– Çöđěxěŕ
Nov 25 '18 at 19:47
|
show 6 more comments
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53459308%2fcreating-a-windows-restore-point%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Which line does the error happen on?
– Andrew Morton
Nov 24 '18 at 15:35