Search found 216 matches

by ITEngineer
Thu Mar 23, 2023 5:45 pm
Forum: PowerShell
Topic: Performing Get-Service with failback using Get-WMIObject ?
Replies: 3
Views: 1768

Re: Performing Get-Service with failback using Get-WMIObject ?

jvierra wrote: Thu Mar 23, 2023 5:29 pm You do not have access rights on the services and on WMI. Please ask you server administrator for help with this.
Hi Mr. Vierra,

I am the Domain Admins, my user account is also part of the Enterprise ADministrator group.

So not sure why this is the issue.
by ITEngineer
Thu Mar 23, 2023 7:08 am
Forum: PowerShell
Topic: Performing Get-Service with failback using Get-WMIObject ?
Replies: 3
Views: 1768

Performing Get-Service with failback using Get-WMIObject ?

Hi All, How can I change the script below to make sure the service-checking mechanism first uses Get-Service and then Get-WMIObject as the fallback plan? Because I'm getting the following error when executing the below cmdlet: Get-Service -ComputerName $_.DnsHostName | Where-Object { ($_.Name -like ...
by ITEngineer
Thu Jul 14, 2022 7:23 pm
Forum: PowerShell
Topic: Executing Powershell remotely without installing modules locally ?
Replies: 4
Views: 2511

Re: Executing Powershell remotely without installing modules locally ?

Thank you for the suggestion :-)
I will find out some more information about deploying the server.
by ITEngineer
Thu Jul 14, 2022 7:16 am
Forum: PowerShell
Topic: Executing Powershell remotely without installing modules locally ?
Replies: 4
Views: 2511

Re: Executing Powershell remotely without installing modules locally ?

Hi Mr. Vierra,

Do you mean by using this method http://masteringposh.com/remote-desktop ... s-expanded to publish the script in the RDSH server ?
by ITEngineer
Tue Jul 12, 2022 7:15 am
Forum: PowerShell
Topic: Executing Powershell remotely without installing modules locally ?
Replies: 4
Views: 2511

Executing Powershell remotely without installing modules locally ?

Hi Folks, I need some help and suggestion on how can I execute this code below from my team desktop while the actual PowerShell modules and the Script.PS1 is located on the \\PAWSVR01-VM\Shared\Script1.PS1 ? The goal here is to be able to execute the script while the user double-clicking on the scr...
by ITEngineer
Fri Jun 17, 2022 8:25 am
Forum: PowerShell
Topic: Creating GUI
Topic: Creating GUI
Replies: 1
Views: 1462

Creating GUI

Hi Everyone, Is there any way to use a Web-based GUI form to input and display entries with the Powershell cmdlet? The script is mostly utilizing Read-Host & WriteHost command, rather than using the typical cmd prompt window and also combining the Windows form: Add-Type -AssemblyName 'System.Win...
by ITEngineer
Wed Sep 23, 2020 5:48 pm
Forum: PowerShell
Topic: Get-Service from Remote server returns wrong service list ?
Replies: 3
Views: 3107

Re: Get-Service from Remote server returns wrong service list ?

jvierra wrote: Wed Sep 23, 2020 7:58 am Unfortunately your question is not answerable with the information provided.

To get a list of services just ask for the list.
Get-Service $listOfServices

help get-service -Parameter Name
That's good, thank you for the response. 8-)
by ITEngineer
Wed Sep 23, 2020 5:00 am
Forum: PowerShell
Topic: Get-Service from Remote server returns wrong service list ?
Replies: 3
Views: 3107

Get-Service from Remote server returns wrong service list ?

I wonder how to get the specific services based on the exact specific service name listed on the array of strings on a remote server? These are the below services I wanted to check: Status Name DisplayName ------ ---- ----------- Running DFS DFS Namespace Running DFSR DFS Replication Running DNS DNS...
by ITEngineer
Tue Sep 15, 2020 8:19 pm
Forum: PowerShell
Topic: Resolve Unique IP and Send Email?
Replies: 5
Views: 4115

Re: Resolve Unique IP and Send Email?

jvierra wrote: Tue Sep 15, 2020 5:43 pm Don't make the body HTML and the line breaks will persist.
Yes, that does make sense.

Thank you Mr, Vierra.
by ITEngineer
Tue Sep 15, 2020 4:42 pm
Forum: PowerShell
Topic: How to gather unique directory name and then export as CSV or Out-GridView?
Replies: 3
Views: 3352

Re: How to gather unique directory name and then export as CSV or Out-GridView?

jvierra wrote: Tue Sep 15, 2020 3:46 pm Sorry but it is not possible to understand what you are trying to do.

ACEs do not have file names or paths. You would have to create custom objects for that.
Hi Mr. Vierra,

What I'm trying to do is to gather the lists of broken ACL directories name (unique) into .CSV or OGV when possible.