Skip to main content
Advice
0 votes
1 replies
82 views

I am trying to replicate a combination of WMI and ADSI, to use just WMI. This is a quick fix whilst we put a case forward for winRM as a replacement. This is something that is new to me, so please ...
Nathan_Sav's user avatar
  • 8,566
0 votes
1 answer
45 views

I have the following WMI query: SELECT PartComponent FROM Win32_GroupUser WHERE GroupComponent = "Win32_Group.Domain='DOMAIN_NAME',Name='Opérateurs d'assistance de contrôle d'accès'" The ...
Manuel K's user avatar
1 vote
1 answer
126 views

I have enabled all needed options using dism Method: public object SetKeyStatus(Dictionary<string, string> request) { if (!request.ContainsKey("Key") || !...
0___________'s user avatar
  • 72.6k
1 vote
1 answer
60 views

I am developing a C++ decoupled WMI provider, but I can only call static methods. Does anyone know how to call a method from an instance? PS: the code is based on Windows-classic-samples: https://...
CodeLamb's user avatar
1 vote
1 answer
58 views

I want to save an output to a variable, but it saves more characters than I want to save. I use: $InstallLocation1 = Get-WmiObject -Class Win32_Product -Filter 'Name like "%FAS%"' | Select ...
Azkaad's user avatar
  • 25
1 vote
0 answers
168 views

Scenario When I run: Get-CimInstance -Namespace "root/subscription" -Query "Select * from __FilterToConsumerBinding" ...It clearly shows this CimInstance exists: Consumer ...
kragovip's user avatar
  • 526
1 vote
0 answers
484 views

I am actually fetching some basic system information for a remote desktop by using powershell but i am facing an error.. $remoteComputer = "IP address of the remote computer" $desktopInfo = ...
Aryaman Sharma's user avatar
1 vote
1 answer
89 views

New to Powershell coding here. Given this means of looking up USB drive letter assignments: $Foo2 = Get-WMIObject win32_diskdrive | ?{$_.interfacetype -eq "USB"} | %{Get-WMIObject -Query &...
Lando's user avatar
  • 99
1 vote
0 answers
242 views

we have "Access Denied" error, when running the PS script from Task Scheduler, but it works fine when running directly from PS shell. Even we are running command with localhost, we ...
jarodas2004's user avatar
0 votes
1 answer
53 views

Hello I try to get this output to a reg key but it only writes the first "$Monitor.ManufacturerName" value if I change the Reg_ADD to Multiline_SZ it would work but it has to be a one line ...
xxstyler20xx's user avatar
0 votes
0 answers
51 views

Unable to fetch SQL services without administrator permissions I tried below script to fetch services Get-Ciminstance -className win32_Service -OperationTimeoutSec 15 -ComputerName ‘xyz’ I got access ...
Maneesh Joshi's user avatar
1 vote
1 answer
4k views

Well, I have a hard task of removing users' folders who have not logged for a specific day in computers, we will be doing that in users that have not logged for more than 90 days. I encountered the ...
adekiller's user avatar
3 votes
0 answers
152 views

Below is the PowerShell check_disk_space.ps1 is used to get remote Windows server drives information but instead I get an error: param ( [string]$passdrives, [string]$connuser, [...
Ashar's user avatar
  • 3,225
0 votes
1 answer
276 views

I am trying to create a PowerShell script that will pull details about specific software on my computer. To accomplish this, I am trying to use Get-WMIObject. I am able to pull the list of all ...
tlm9750's user avatar
0 votes
0 answers
124 views

I'm trying to compare two variables, which store a SHA1 hash. One of the variables is from a WMIC command and the other is from a get-childitem command. The WMIC command in question: (Get-WmiObject -...
gijs007's user avatar
  • 233

15 30 50 per page
1
2 3 4 5
13