- Running ROIScan.vbs and show the error message below
- Running PowerShell script check the serrver hard disk space unable to remote in
Error message :
- ROIScan.vbs : The script appears to run outside administrator context
- PowerShelll : Get-WmiObject : Not found
Solution : copy from here
1. winmgmt /verifyrepository
- Got error Repository inconsistent
2. winmgmt /salvagerepository
- Once successful everything started working fine
/verifyrepository []
Performs a consistency check on the WMI repository. When you add the
/verifyrepository switch without the argument, then the live
repository currently used by WMI is verified. When you specify the path
argument, you can verify any saved copy of the repository. In this
case, the path argument should contain the full path to the saved
repository copy. The saved repository should be a copy of the entire
repository folder.
/salvagerepository
Performs a consistency check on the WMI repository, and if an
inconsistency is detected, rebuilds the repository. The content of the
inconsistent repository is merged into the rebuilt repository, if it
can be read. The salvage operation always works with the repository
that the WMI service is currently using. MOF files that contain the
#pragma autorecover preprocessor statement are restored to the
repository.
1. winmgmt /verifyrepository
- Got error Repository inconsistent
2. winmgmt /salvagerepository
- Once successful everything started working fine
/verifyrepository [
Performs a consistency check on the WMI repository. When you add the
/verifyrepository switch without the
repository currently used by WMI is verified. When you specify the path
argument, you can verify any saved copy of the repository. In this
case, the path argument should contain the full path to the saved
repository copy. The saved repository should be a copy of the entire
repository folder.
/salvagerepository
Performs a consistency check on the WMI repository, and if an
inconsistency is detected, rebuilds the repository. The content of the
inconsistent repository is merged into the rebuilt repository, if it
can be read. The salvage operation always works with the repository
that the WMI service is currently using. MOF files that contain the
#pragma autorecover preprocessor statement are restored to the
repository.
No comments:
Post a Comment